View Single Post
  #1   Spotlight this post!  
Unread 01-03-2011, 13:22
jrz126 jrz126 is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Erie, PA
Posts: 12
jrz126 is an unknown quantity at this point
Ultrasonic help (interrupts and analog triggers)

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?
Attached Thumbnails
Click image for larger version

Name:	ultrasonicinterrupt2.JPG
Views:	41
Size:	90.4 KB
ID:	10308  Click image for larger version

Name:	ultrasonicoverview.JPG
Views:	18
Size:	29.5 KB
ID:	10309  
Attached Files
File Type: vi PING Ultrasonic.vi (25.5 KB, 5 views)
Reply With Quote