Go Down

Topic: Ping))) Sensor (Read 667 times) previous topic - next topic

alexhb

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?
"#define QUESTION ((bb) || !(bb))  - Shakespeare."

cr0sh

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.

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

alexhb

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?
"#define QUESTION ((bb) || !(bb))  - Shakespeare."

alexhb

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?
"#define QUESTION ((bb) || !(bb))  - Shakespeare."

Go Up