Pages: [1]   Go Down
Author Topic: Ping))) Sensor  (Read 602 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 96
There are two ways to write error-free programs; only the third one works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just got my first Ping Sensor today, and was wondering about this issue... when running the sample "ping" code, the serial reads a "144 in, 368 cm" occasionally throughout the readout. Also, the code at
http://alandtech.blogspot.com/2007/12/arduino-theremin.html
gives a chopped up sound, reflecting that its output is choppy. Is this just how these act, or is something wrong?
Logged

"#define QUESTION ((bb) || !(bb))  - Shakespeare."

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 5557
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please post your schematic (your schematic - let us see how you hooked it up, not a schematic from somewhere else) and code that you used.

BTW - how do you have it hooked up power-wise; are you using a separate power source from the Arduino? If not, you should.

 smiley
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 96
There are two ways to write error-free programs; only the third one works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For the serial reading, I've got it exactly hooked up according to the ping example. 5V to 5V, GND to GND, Signal to Digital 7. Is it necessary to use a separate power source even if it's the only thing running?
Logged

"#define QUESTION ((bb) || !(bb))  - Shakespeare."

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 96
There are two ways to write error-free programs; only the third one works.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm going to try plugging the arduino into the wall wart instead of a battery pack to give it full power, in case the battery's low, and if that doesn't work, what sort of sensor power supply would you recommend?
Logged

"#define QUESTION ((bb) || !(bb))  - Shakespeare."

Pages: [1]   Go Up
Jump to: