![]() |
Ultrasonic help (interrupts and analog triggers)
3 Attachment(s)
I'm trying to use the Parallax PING module.
http://www.parallax.com/dl/docs/prod...-PING-v1.3.pdf I came up with my own way of doing it, (see the second picture). The diodes keep the Digital output and PING module from fighting each other when the sonar is outputting the pulse width. I added a second diode so I could maybe keep the digital output from causing an interrupt. It kinda works, but it only triggers the interrupt maybe 50% of the time. I get timeouts the other times. Anyone familar with the analog triggers/interrupts? or thoughts on a better way to do it? |
Re: Ultrasonic help (interrupts and analog triggers)
1 Attachment(s)
Figured out how to use it. Had to modify the ultrasonic example code to use an analog port instead of the digital port. I used 3 diodes in series like the picture above
|
| All times are GMT -5. The time now is 09:34. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi