Run out of pins for my project

My arduino pins are full and I need to connect 2 servo motors. What should I do? can you help me please

You can use shift registers or port expanders for more I/O pins. Or a bigger controller like the Mega with about 70 I/O pins.

I wrote a series of tutorials recently for adding digital I/O to your Arduino board. You might want to check them out. Adding Digital I/O To Your Arduino

My arduino pins are full and I need to connect 2 servo motors. What should I do? can you help me please

Buy a bigger Arduino, or tell us what you have connected and where, we MAY be able to offer a suggestion then.

I did a smart car park for my project homework because I use arduino uno, my pins are full. I want to control the two servo motors that I will connect with ldr. My D0, D1 and D7 pins are empty and my other pins are full. LCD, obstacle sensor, buzeer and 2 servo motors are connected on my full pins.

OK - now answer the question properly

WHAT is connected WHERE! An I2C LCD, an I2CServo controller and a Buzzer take 3 pins!

@halil16, do not cross-post. Threads merged.

1 Like

Can jump to an Atmega1284P, very similar to 328P but with 32 IO, DIP package still available. Very simple to breadboard too: 16 or 20 MHz crystal, 22pF caps, 0.1uF caps on Vcc, Avcc, Aref, 10K pullup resistor.
Easy to add MightyCore to the IDE (thru 1.8.13, haven't tried in 2.0 yet)

Here's an example of board I offer that use the '1284P with Uno type footprint.

Try this........

https://www.youtube.com/watch?v=kQZU8kE3ksU

The analog pins also can be used as digital ones.

To get more output pins, for about £1 you can buy a 74HC595. This can increase the number of output pins. It needs 2 or 3 pins to work, but is has 8 outputs.
Plus, you can also daisy chain these together. So the 2/3 pins on the arduino can give you 8, 16, 24, etc output pins. You simply use the shiftOut() function to drive the chain.
As a totally outside idea, you could use TWO arduinos, using 2 pins to communicate between them.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.