Do I have enough input pins?

I am currently working on my senior design project and am new to using C++ and arduino software. I have decided to use an arduino uno R3, arduino motor drive shield and an ultrasonic sensor HC-SR04 to create an autonomous cart. My question is will I have enough input pins avalaible to connect the drive shield and the sensors to the arduino uno board? or should I upgrade to the arduino mega board?

You have 20 I/O lines so count them up and see. You can always add a port expander chip or shift register to give you more if you need.

Yes, buy a Mega. We can tell you're itching to. Get it out of your system. They are almost irresistible to beginners!

PaulRB:
Yes, buy a Mega. We can tell you’re itching to. Get it out of your system. They are almost irresistible to beginners!

Paul__B:

True though.
Bigger is always better.

Wawa:
True though.
Bigger is always better.

Well, yes, the bit about “almost irresistible to beginners” certainly is. :roll_eyes:

It follows the natural logic: “My blink sketch is not working/ compiling; I must need a more powerful processor.” :grinning: