Go to Post Mentor: How is that held in place? CAD Lead: Go to the hardware store and buy a bag of constraints and put the constraints on the robot. - Kenyow [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 08-07-2008, 01:24
Browzilla Browzilla is offline
Fearless Leader
AKA: David Vriezen
FRC #2530 (Team Inconceivable)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rochester, MN
Posts: 57
Browzilla is on a distinguished road
Send a message via AIM to Browzilla Send a message via MSN to Browzilla
Help with rangefinder sensor (RobotC)

Now that we're heading into our second year, we're attempting to implement some sensors into our robot. Better now, than during next season see, because then we know what we're doing. Moreso, anyway. Anyway, we have a Parallax Ping)))), and it's wired up to Digital IO 1 and 2. But we can't seen to get it to work in the code. It shows values between 0 and 1 in debug.

Anyone have any ideas or experience in this area?
  #2   Spotlight this post!  
Unread 08-07-2008, 02:41
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Help with rangefinder sensor (RobotC)

The Ping))) outputs a measured distance by outputting a pulse of a certain time. With our controller, finding this time and converting it back to a distance will be pretty hard.

We're trying out some Maxbotix Ultrasonic sensors, and they seem to work well, and they're easy to connect and program. We're using the analog out on the Maxbotix ones, and it gives a clear, steady signal. I highly recommend them to any team because of my experience so far.

If you still want to try the Ping))), search Chief Delphi for it. I know there have been teams that has used this sensor before, and you can possibly find some code to get it running. Here is the instruction manual for the Ping))).
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 08-07-2008 at 02:50.
  #3   Spotlight this post!  
Unread 08-07-2008, 09:22
Browzilla Browzilla is offline
Fearless Leader
AKA: David Vriezen
FRC #2530 (Team Inconceivable)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rochester, MN
Posts: 57
Browzilla is on a distinguished road
Send a message via AIM to Browzilla Send a message via MSN to Browzilla
Re: Help with rangefinder sensor (RobotC)

We've already found some code for it in MPLab and EasyC, but couldn't port it over to RobotC.

To be honest, we're really only using the Ping because it was what our local RadioShack had.

Anyway though, we've seen the sample codes, read the manuals, and it still doesn't seem to work.
  #4   Spotlight this post!  
Unread 08-07-2008, 10:17
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Help with rangefinder sensor (RobotC)

I haven't used RobotC, but it appears they support a "Sonar" sensor, which probably works the same as your ultrasonic sensor.
  #5   Spotlight this post!  
Unread 09-07-2008, 01:57
Browzilla Browzilla is offline
Fearless Leader
AKA: David Vriezen
FRC #2530 (Team Inconceivable)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Rochester, MN
Posts: 57
Browzilla is on a distinguished road
Send a message via AIM to Browzilla Send a message via MSN to Browzilla
Re: Help with rangefinder sensor (RobotC)

Yep. It didn't seem to work.

It seems RobotC may be easier to get of the ground with, but possibly less functional overall. Or harder to implement more advanced features, or something.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ROBOTC help Shivang1923 Programming 3 09-02-2008 13:19
Help with Gear Tooth Sensor RedOctober Electrical 3 27-01-2006 18:38
Help with Gear Tooth Sensor RedOctober Technical Discussion 0 26-01-2006 20:22
Help with sonar sensor supertw Electrical 3 24-01-2006 23:41
Need help with Sensor Hop_of_752 Programming 5 06-02-2004 23:43


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

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