Pages: [1]   Go Down
Author Topic: Get Aruino Started !  (Read 1034 times)
0 Members and 1 Guest are viewing this topic.
0
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
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46090
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.
Logged

Pages: [1]   Go Up
Jump to: