razor7877 / SpectroPi

A project about creating a cheap and simple UV-VIS spectrophotometer using a Raspberry Pi
0 stars 0 forks source link

Get a stepper motor working with the Arduino Mega 2560 #9

Closed razor7877 closed 5 months ago

razor7877 commented 5 months ago
razor7877 commented 5 months ago

A 28BYJ-48 stepper motor was used with a ULN2003 driver module. It is powered with a 5V source. The 4 input pins are connected to pins 8-11 of the Arduino board, and the stepper.h Arduino library is used to get it running.

razor7877 commented 5 months ago

The following tutorial was used as a starting point: https://lastminuteengineers.com/28byj48-stepper-motor-arduino-tutorial/

razor7877 commented 5 months ago

Working stepper motor code in ebb2553b90aa04a79e62d53587f5fe1c0dc1a224 Triggering rotation manually with a number of steps in 1ef388971aaacab558e340d33d4f5f9f5c1d590d