Can Arduino connect different sensor and each sensor show different output?

Hi i am new to Arduino, I do a research online and found out Arduino can connect to serveral sensor at the same time.

But my question is can Arduino do like when there is a LDR sensor and when is dark the Arduino will light up the led. And other than LDR the Arduino board also connect to a ultrasonic sensor. When there is obstacle infront and the ultrasonic sensor will trigger the buzzer.

And when is dark and have obstacle infront the led will light up and buzzer will function at the same time.

Just using only 1 Arduino board

Sure! All possible individually and together with an Arduino and a power supply.

Because I found out online they say Aduino cannot run multiple function at once. So this not consider as multiple function?

The Arduino runs multiple functions, one after the other. So each measurement is taken at a slightly different time.

Yes, everything you mentioned and more.

The Arduino will do as jremington mentions, one thing at a rime but when each takes u or m seconds things get done pretty quick for the most part. Some of it takes longer because the sensors used may take time to get stable readings. Figure it this way, a measurement plane is only as fast as its slowest component.

Ron

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