Go Down

Topic: Get Aruino Started ! (Read 1 time) previous topic - next topic

Silverdeva

i have connecter ping sensors to arduino uno, and want to know if after i Uploaded the schetch for ping sensors in my arduino, can he not run the program until the sensors have read a specific distance ? like the program is uploaded and arduino will not run it until 1 specific sensor read 3cm ? Thank you

PaulS

As soon as the sketch is uploaded, the Arduino starts running. If it didn't, it could not know whether the sensor had detected the required value.

As for doing something specific only when the output from the sensor has been determined to exceed some value, yes that is possible. You need to define what is to happen when the sensor output exceeds/drops below some value, and what that value is.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy