Go to Post We're not behind, the rest of the world is ahead! Yeah. Thats it. - Curtis Williams [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2011, 21:17
Derschatten Derschatten is offline
Registered User
FRC #1203 (Pandemonium)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2003
Location: West Babylon
Posts: 31
Derschatten is an unknown quantity at this point
How to connect Parallax Ping))) sensor

I have a Ping))) sensor what i gather from reading on the fourm the best way to use this sensor with cRIO is to take two I/O and connect it to the SIG pin on sensor. I was wondering if a diode and/or resistor(s) is needed?
  #2   Spotlight this post!  
Unread 18-01-2011, 07:57
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: How to connect Parallax Ping))) sensor

Der,
From a quick look at the description page, it appears that one pin on the module is a trigger and the other is the output from the sensor. You will need to write code to initiate a pulse and measure the time it takes for a return echo on the output pin. You then have to perform a calculation to determine distance based on the acoustic transit time at whatever altitude and humidity the sensor is being used in. To interface, you would use a digital output to trigger the output pulse and a digital input to listen for the echo. The description says it is TTL compatible.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 18-01-2011, 12:07
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: How to connect Parallax Ping))) sensor

Actually the Ping Sensor from Parallax has the Trigger and Echo lines on the same pin. To use this with the Sidecar, wire 2 PWM cables to form a Y and connect to 2 Sidecar Digital Input/Output pins. If you are using Labview (not sure with WindRiver), there is a WPI Library for these specific ultrasonic sensors.
__________________
  #4   Spotlight this post!  
Unread 11-02-2011, 23:47
Sirius0 Sirius0 is offline
Registered User
AKA: Tomas Zukowski
FRC #2486 (The CocoNuts)
Team Role: Programmer
 
Join Date: Apr 2010
Rookie Year: 2007
Location: Flagstaff, Arizona
Posts: 1
Sirius0 is an unknown quantity at this point
Re: How to connect Parallax Ping))) sensor

I got the ultrasonic sensor hooked up as a Y to two Digital Input/Ouput slots, but I am still having trouble getting a live reading from the ultrasonic sensor. Every time I begin the code, I get a single value that does not change (I'm using Labview). I searched on the National Instruments website and found an example, but it is using DAQmx VIs. Is this the right code? If so, how do I get the required VIs (i.e. "DAQmx Create Channel.vi", "DAQmx Read.vi", "DAQmx Timing.vi", etc) If not, could you point me in the right direction?
  #5   Spotlight this post!  
Unread 11-02-2011, 23:51
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: How to connect Parallax Ping))) sensor

Your problem may also relate to the way the digital sidecar is hooked up internally. My team's read of the Ultrasound class/VI in WPILib indicates it is written for a "raw" ultrasound sensor, where you send a sound pulse, then count for the echo time. The Ping))) sensor, however, operates on a single line. You send a trigger or "ask" pulse, then wait for a return pulse, and count the duration of the return pulse to get a distance measurement. These are different algorithms.

Electrically, even if you make the Y cable, there are still pull up resistors on the DSC, which you can't change. In order to make a Ping))) work, we've found you need to build some extra buffer circuitry, consisting primarily of a PNP transistor and a NOT gate. That will allow the line to the Ping))) to float instead of being pulled up to 5V by the DSC's internal resistors.

Basically, you use the PNP transistor to pull the line up for the "ask" pulse, then use a NOT gate to detect the return pulse, and time its duration using your code. Not all that simple to do.

If you would consider an alternative, Maxbotix makes an analog ultrasound sensor that is a bit easier to use with FRC hardware.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000

Last edited by jee7s : 12-02-2011 at 00:04. Reason: Clarification
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi