Go to Post Why not go the safer route? Use the robots to play Magic the Gathering. - kamocat [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 27-01-2011, 03:07
kubibaba123 kubibaba123 is offline
Registered User
FRC #2905
 
Join Date: Jan 2011
Location: GOP
Posts: 2
kubibaba123 is an unknown quantity at this point
Question How to program a tracking line sensor on Labview?

In the autonomus period the only thing bots may do is tracking line and hanging ubertubes. Line tracking sensor would help much. Can you please help me programming our bot for the autonomous period ?



Kubilay Elmaci
Team 2905
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2011, 03:41
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: How to program a tracking line sensor on Labview?

Try looking at and understanding the given autonomous vi (if you're using labview).

The way I'd do it with skid steer is to drive both motors full power if the middle sensor sees the line, and turn in the corresponding direction if one of the other sensors sees it. If all three see the line, you're at the T, so stop (or you're at the Y.. I'd say use an encoder to give the robot an idea of where you should be.. ie if the robot has gone for 8 seconds, it's probably at the Y and if it's 10 seconds it's probably at the T.)

I actually don't see an advantage of using 3 sensors over 2,.. although I guess lining up with the post could be easier.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2011, 00:55
tagayoff's Avatar
tagayoff tagayoff is offline
Registered User
FRC #3512
 
Join Date: Jan 2011
Location: Santa Maria,CA
Posts: 40
tagayoff is a jewel in the roughtagayoff is a jewel in the roughtagayoff is a jewel in the roughtagayoff is a jewel in the rough
Re: How to program a tracking line sensor on Labview?

Check the following Post:
http://www.chiefdelphi.com/forums/sh...ad.php?t=89760

Then Post:
http://www.chiefdelphi.com/forums/sh...ad.php?t=90311

Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2011, 17:21
Scimor5 Scimor5 is offline
Registered User
AKA: Brett
FRC #4520 (Misfit Toys)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Post Falls
Posts: 11
Scimor5 is an unknown quantity at this point
Re: How to program a tracking line sensor on Labview?

Basically you want to make a truth table for when the sensors are on the line. If the middle sensor is on it would be FTF, assuming you have all 3 sensors on the robot. if you make a Boolean array of the sensors, and convert it to binary (use the "Boolean array to #" from the Boolean pallet). it will take all the segments of the array and make then a 1 or a 0 in a binary number, so FTF become 010. 010 in binary is 2 in our base 10 system. Google how to convert binary if you don't know. then create a truth table for all the different numbers (0 - 7), and set the motor outputs depending on what it sees.

By the way, you may need to reverse data from the sensors (negate) depending which wire you used from the sensors, true on black or true on white.

Hope it helps. good luck from team 2865.
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 08:25.

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