This article is included in the ISTEM 2023 Series.
Download the STL file for the Bengal Head – HERE.
- Disconnect the wall power from the Breadboard Power Supply.
- Connect the circuit as seen in the above schematic leaving the Stepper Driver 5v and GND disconnected.
- Because the motor will draw more current than our previous circuits, we will disconnect the Driver IC power when programming in order to protect our USB port.
Challenge!: Write code that will produce a four-bit Ring Counter output.
- Is the stepper rotating clockwise or counterclockwise?
Challenge!: Using code, make the stepper rotate clockwise.
Challenge!: Declare a new variable const int variable called PauseDelay and set it to equal 1 second. Modify the code so that it rotates the stepper clockwise for one revolution then pauses for 1 second and then rotates counterclockwise for one revolution. Then repeat the sequence indefinately.