Loading...
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 681 times)
0 Members and 1 Guest are viewing this topic.
0
Online Online
Tesla Member
***
Karma: 83
Posts: 8241
:(){:|:&};:
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

my Arduino code: https://github.com/lestofante/arduinoSketch
sei nuovo? non sai da dove partire? leggi qui: http://playground.arduino.cc/Italiano/Newbie

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 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: 138
Posts: 19067
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.

Chateauguay
Offline Offline
Full Member
***
Karma: 0
Posts: 110
-8 years old: LEGO BLOKS 8 to 9 years old: little cards magician 9 to 12 years old : meccano 13 years old: Arduino Uno!!!! Usually my real dream was to make little gadjets and that sort of stuff =)
View Profile
WWW
 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
Print
 
Jump to: