I'm not clear on what your exact problem is. Can you express yourself with more clarity?Hello,
I am doing a MEGA 2560 controlled Robot, which used 5 stepper motors (4 pins each) and 5 ultrasonic sensors and many switches, basically used up all pins on MEGA. any solution how to wiring that easy?
Thanks
Adam
Thanks.I'm not clear on what your exact problem is. Can you express yourself with more clarity?
I still do not understand the nature of your question. The way to do it is neither easy or hard. What is your major malfunction?Thanks.
I need wiring up 4 stepper motors, 5 sensors, 6 switches to MEGA 2561, how to do it easy?
Best
The Mega2560 has over 50 GPIO pins, so that shouldn’t be your problem.Thanks.
I need wiring up 4 stepper motors, 5 sensors, 6 switches to MEGA 2561, how to do it easy?
Best
There’s a motor shield that drives 4 motors or two steppers. You’d need two shields for four steppers, each with their own I2C address. The shield includes jumpers to set unique addresses.Sensors and switches obviously direct connect. 4 motors sound like a simple motor control shield with external power for the motors? DJ should be able to point you in the right direction.
Thanks.Sensors and switches obviously direct connect. 4 motors sound like a simple motor control shield with external power for the motors? DJ should be able to point you in the right direction.
Thanks.You could use an I2C port expander board. 16 extra I/O per board. And up to 8 boards at a time.
Here is one example...
View attachment 208901
https://www.ebay.com.au/itm/I2C-int...m4441134073:g:hFkAAOSwK-1dKCtY&frcectupt=true
Thanks.Let’s do a count of the required pins.
The total is 35 pins. The Mega 2560 has 54 GPIO pins. Plenty of room for expansion without IO extender boards.
- 5 sensors requires 5 pins
- 5 stepper motors @ 4 pins each requires 20 pins.
- 8-10 switches requires 10 pins
The thing is that particular board won’t work for a Mega without additional components and wiring. The additional GPIO pins on a Mega are outside of the Uno footprint.
by Aaron Carman
by Robert Keim
by Duane Benson
by Jeff Child