Hi Everybody,
I'm having troubles with making the sonar sensors work. I used both Parallax Ping and HC-SR04, but neither of those worked well.
The problem with HC-SR04 is that I'm always getting -1 as result. The code is from this library: http://forums.netdui...ic-rangefinder/
Tried connecting to different digital pins but it didnt work either. Powering from 5V pin of the netduino. Is there anything I'm missing?
The Parallax Ping works "sometimes". If it works i get correct distance result. The trouble with this one is that sometimes it gets stuck in following loop:
while (lineState)lineState = _port.Read();
Using this code:
http://forums.netdui...rasonic-sensor/
Are those sensors sensitive to the power source? Running from USB.
Any help is highly appreciated.
Thansk,
Ruben
P.S. I use Netduino Plus 2 with latest firmware 4.2.2.