Hey guys!
Sorry for the new topic. Seems my other one didn't move up when I posted a reply to it. Unfortunately, I'm having problems with the Ping))) Ultrasonic sensor. I'm using CW2's code that was posted on my Netduino and Ping))) Ultrasonic Sensor topic.. The LED on the Ping Ultrasonic Sensor just stays green, and after placing a few breakpoints, I noticed it never reaches the interrupt function. I think you need to send 'true' or 'on' to the Ping for 5 microseconds before reading values from it. But I can't find any way to delay in microseconds.
Thanks for your help again if possible!
Ping Ultrasonic Sensor LED Continuously On
Started by ddoodm, Aug 24 2010 08:04 AM
1 reply to this topic
#1
Posted 24 August 2010 - 08:04 AM
#2
Posted 24 August 2010 - 07:04 PM
I am sorry my code did not work, but it was just to answer the original question - how to implement pulseIn() function. To send start pulse, you need something like instantiate an OutputPort and then Write(true), Write(false). Unfortunately, .NET Micro Framework cannot handle microsecond delays, but IMHO Write() method is slow enough to output ~15 usec pulse required by the sensor.I'm using CW2's code that was posted on my Netduino and Ping))) Ultrasonic Sensor topic.. The LED on the Ping Ultrasonic Sensor just stays green
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users