Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Ping Ultrasonic Sensor LED Continuously On


  • Please log in to reply
1 reply to this topic

#1 ddoodm

ddoodm

    New Member

  • Members
  • Pip
  • 8 posts
  • LocationSydney, Australia.

Posted 24 August 2010 - 08:04 AM

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!

#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 24 August 2010 - 07:04 PM

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

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.