AVR Code

Micro Steps

Micro Steps

This code allowed me to move the stepper in full steps and micro steps, with the micro steps being up to an eighth of a step.

The code is written in C using the avrlibc library and ISP was done using avrdude and a USBTinyISP.

Stepper Control

Stepper Control

This little bit of code is used to control the speed and direction of a stepper motor via switches and a knob/potentiometer. I made it for my dad so he could test out the assembly before handing it over to me. It's not the neatest or most elegant piece of code that I have ever written as it was written at around 5am. Also this code uses a standard L293D stepper driver so it only does full steps.

Dual Stepper Control

Dual Stepper Control

Here I am using two 8 bit timers to individually control two steppers. I also wrote a small oF app to send the serial data, this is written in C++ and uses scanf() to do all the body work, this is included as well.