Poll
Question: HOW CAN I DO LIKE, EACH TIME MY PING))) SENSOR GOES TO A MIDDLE OF TWO NUMBER, THE LED WILL TURN ON
SHOULD I ADD SOMETHING? - 0 (0%)
SHOULD I CHANGE THE CODE? - 0 (0%)
Total Voters: 0

Pages: 1 [2]   Go Down
Author Topic: SENSOR PING))) QUESTION  (Read 1492 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Shannon Member
****
Karma: 131
Posts: 10468
:(){:|:&};:
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well if ( pingPin,_______________ ) i don't know what does, but your arduino can read the ms of the ping, and can translate this time in cm/inches

with the first code (that was working, right?) you can read in the serial monitor the output (distance in inch and cm), take a look if this data is good.
Logged

sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Offline Offline
Full Member
***
Karma: 0
Posts: 111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yeah your right, smiley-grin
but can you send and example of it, a little bit modified, so i will understand it clearly  smiley-slim
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26274
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
if ( pingPin,_______________ )
I don't understand what this is meant to signify. It doesn't look like C.

Please will you go back over your earlier posts, highlight the code, then click on the # icon. Then click "save".
Get rid of any "quote" tags, except where quotes are intended.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Full Member
***
Karma: 0
Posts: 111
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

THANK YOU LESTO,
my PING))) SENSOR worked like a charm.  smiley  smiley-grin smiley-grin smiley-grin smiley-grin smiley-grin
Logged

Pages: 1 [2]   Go Up
Jump to: