Pages: [1]   Go Down
Author Topic: Get Aruino Started !  (Read 1157 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
Karma: 0
Posts: 61
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Seattle, WA USA
Online Online
Brattain Member
Karma: 614
Posts: 49359
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Pages: [1]   Go Up
Jump to: