11 | output devices



 add an output device to a microcontroller board and program it to do something

Stepper Board





Terminal Commands:
   1. cd /path to folder
   2. make -f hello.stepper.44.full.make
   3. sudo make -f hello.stepper.44.full.make program-usbtiny


Code Anatomy

Setting the ports

Set the PMW Pulses for the magnets

Clockwise and counter clockwise step rotation is defined using the PMW definitions. Clock and mosfet pins are initialized in the main function.

Control of motor rotation is in the main loop. Next time, serial input.

Next Time