Log in

View Full Version : Ultrasonic help (interrupts and analog triggers)


jrz126
01-03-2011, 13:22
I'm trying to use the Parallax PING module.
http://www.parallax.com/dl/docs/prod/acc/28015-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?

jrz126
03-03-2011, 12:55
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