I am a hobbyist & know little about electronics.
I am making a robot arm, like this one. For which I will need 2 stepper motors (for elbow & shoulder joint) & 4 simple DC motors.
Which means I will need to allocate a lot of pins on my board (Uno).
So I was just reading about I2C & then eventually SPI. My question is:
- Is it possible to control 6 motors (or atleast 2 steppers) with I2C or SPI (assuming the motors are powered by seperate source), if so can you point me to someone's example code.
- If not possible, how do I overcome the shortage of pins, because I have already dedicated them to many sensors.