Go to Post Maybe Dave's just bananas for FVC? - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2014, 19:19
TPackard TPackard is offline
Registered User
FRC #0008
 
Join Date: Feb 2014
Location: Palo Alto
Posts: 4
TPackard is an unknown quantity at this point
How do you turn off Analog Ultrasonic Sensors?

Our team is using two analog ultrasonic sensors and we are having problems since they interfere with each other. Our team wants to disable them when we don't need them so that we can run them at different times, but we don't know how. We are using analog channels for our sensors, and we have tested them both individually and they work fine.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2014, 20:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How do you turn off Analog Ultrasonic Sensors?

What kind of sensor are you using? What is the part number?

If it's an LV-MaxSonar-EZ part, I think you can pull the RX pin low in order to inhibit it.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2014, 23:45
TPackard TPackard is offline
Registered User
FRC #0008
 
Join Date: Feb 2014
Location: Palo Alto
Posts: 4
TPackard is an unknown quantity at this point
Re: How do you turn off Analog Ultrasonic Sensors?

Yes, we figured that out, but we don't know how to send a signal from the code. Do we use Analog Channels?
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2014, 00:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: How do you turn off Analog Ultrasonic Sensors?

There are very few opportunities in FRC to use a Digital Output. This is one of them. Connect the sensor's RX input to the SIG (signal) pin of one of the DIO ports on the Digital Sidecar. Use the DigitalOutput's Set() method. If I'm reading the sensor's datasheet properly, False will turn off the ranging; True will turn it on.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2014, 09:45
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: How do you turn off Analog Ultrasonic Sensors?

If you read the Maxbotix data sheets, you'll find there is a pin that can be used to trigger the ultrasonic on a different ping rate. With this pin being used, you can set the ultrasonics up at different ping rates so they don't interfere with each other nor with other ultrasonics from other bots.

HTH,

Mike
Reply With Quote
Reply


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 05:04.

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