I am currently doing a project that involves stepper motors. I have arduino uno board with 2 stepper motors (28BYJ-48) connected. Both work perfectly. Unfortunately, the plan changed, and I now need 4 of those motors to be connected and work and I don't think it is possible with arduino uno as it only has 14 digital pins and each stepper motor needs 4. I'm thinking about buying Arduino Mega board and connecting them to it. I can't find anywhere if that will work. Should I buy it? Will it work?
The 6 analog inputs are really digital pins with analog input as a special function. Discounting pins 0 and 1 (hardware serial) there are 18 pins available for digital I/O on an Uno.
groundFungus:
The 6 analog inputs are really digital pins with analog input as a special function. Discounting pins 0 and 1 (hardware serial) there are 18 pins available for digital I/O on an Uno.
Yes, a Mega will work.
Thank you! I am just begging with arduino, so I don't know a lot
I think we figured out that the 28BYJ-48 (or in fact two of them) can be controlled by a single TPIC6B595 rather than the obsolete ULN2[08]03, so that many motors can be driven by just three pins on the more practical Nano.