Arduino UNO and sensors

I was tasked on a project, and I was wondering if there is a way to fit 3 Ultrasonic Sensor, A switch, A vibrating motor and 1 buzzer on an Arduino Uno, I'm still new to this and just don't see how it would fit on an Uno, also if not is there a board that is also easy to use like Uno that would fir the said parts?

if using the hc-sr04 ultrasonic sensor each sensor requires two GPIO ports for TRIG and ECHO
add a GPIO port each for the switch and buzzer and the UNO should be capable of implementing the project - have a look at HC-SR04 library
Consider the ESP32 which has a much more powerful processor, large flash and SRAM, onboard WiFi, Bluetooth Classic 2.0 and BLE

True, but not as easy to use as per OP's request.

1 Like

How about the VCC and GND do I have to connect them to each of the sensor to the board? I did one project where I only used 1 ultrasonic sensor and I need to connect them for it to work but the UNO does not have enough GND and 5V for three sensors, btw I'm using jumper wires, because I'm not yet used at soldering

most boards have several ground pins, e.g. the UNO has 3 - power tends to be more of a problem
you can get breakout boards with screw connectors for the UNO, MEGA, ESP32, etc, e.g.ESP32 version which makes connections much more robust
you can get two or three wires into the connectors - any more could be a problem

Hello retzelio
Keep it simple and stupid firstly.
Run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.
Have a nice day and enjoy coding in C++.

1 Like

I'm sorry, I don't quite understand, so are you saying that connecting three VCC, TRIG, ECHO and GND (plus the switch and buzzer) to Arduino Uno is not possible without breakout boards?
PS. I forgot to add the vibrating motor that I also need to add

the three trig and echos would all be seperate pins
three grounds should be OK on a UNO
but the uno only has one 5V connector - you could use a breadboard/solderless-breadboard
you then have the switch and buzzer

1 Like

A breadboard yes! Thank you!

Two other +5V pins are available on the six-pin connectors.

1 Like

Thank you! will definitely use it, didn't know they were 5V

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