Connecting multiple sensor to Arduino

Hi,

Very new to arduino here. I am trying to set up an installation that uses both ultrasonic sensor and pulse sensor which then sends data to different touchdesigner projects from one pc. I was wondering if I should use two arduino boards or a 8:1 serial port expander since I'll be sending different codes to the arduino board?

thank you!

Which "Arduino" are You thinking about?
How many I/O do You need? The Mega has 54, an UNO has 14 useful pins.

You should be able to use one arduino to send data from two sensors to a computer.

Here's an example of using an arduino to do several things at the same time:

If you want to add more things, such as reading independent sensors and printing data to the serial port, you would add additional functions for each independent sensor, something like the readButton() function.

you can use CD4067 multiplexer to connect 16 sensors to 1 arduino pin

1 Like

Thank you! will check out the CD4067 multiplexer

I have the Uno R3, with one ultrasonic sensor and one pulse sensor I should only need 3 input... will check out the Mega as well. Thank you!!

so it can all be done through code? Thank you so much for the helpful information! I'm going to study your wokwi project :pray:

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