Go to Post We need to start building FIRST competition arenas and leasing them in the off-season to the sports teams and conventions ;) - protoserge [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 23-01-2003, 15:34
EricEnsor EricEnsor is offline
Registered User
None #0497 (MRSA)
 
Join Date: Jan 2003
Rookie Year: 2003
Location: MRSA
Posts: 1
EricEnsor is an unknown quantity at this point
Send a message via AIM to EricEnsor
Post Tips for Sensor Programming and Testing

Would anyone have any tips for sensor programming and testing? We're trying to find the Optical sensor line tracking. Would anyone know to do this?
__________________
  #2   Spotlight this post!  
Unread 23-01-2003, 16:01
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
The optical sensors are digital (On/Off) devices. Wire them up to Robot Controller and sent the output to the Operator Interface LED

example:
out8 = rc_sw1 'optical sensor 1 wired to switch 1
out9 = rc_sw2 'optical sensor 2 wired to switch 2

Now you can see what the robot is seeing

Tim Tedrow
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #3   Spotlight this post!  
Unread 24-01-2003, 07:54
rust710's Avatar
Happy Birthday! rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
Line tracking is very simple. I can do it with one sensor and 5 lines of user code added to the default code. I hooked the white wire to rc_sw1(port one on the Digital Inputs) and used this code.

Code:
if rc_sw1 = 0 then
PWM1 = 137
PWM2 = 90
else
PWM1 = 90
PWM2 = 137
endif
This is the simplest way I can think of to do line tracking. The only problem is it is slow and it can lose the line with a bump or the sensor not reading right. I would recommend using at least two sensors to follow each side of the line.

Hope this helps.
  #4   Spotlight this post!  
Unread 24-01-2003, 11:28
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
make sure there is contrast between the floor and the tape (or whatever you're tracking). i've tried a simple program, but it doesn't work because of that reason. i think i've found a floor that works now though .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
Testing Autonomous at Competition Yan Wang Programming 9 21-02-2003 19:17
Image Discuss: Team 356: Drive base ramp testing CD47-Bot Robot Showcase 5 14-02-2003 19:44
testing (EOM) archiver 2001 0 24-06-2002 04:08
testing archiver 2001 0 24-06-2002 00:58
testing team222badbrad Chit-Chat 5 15-01-2002 09:49


All times are GMT -5. The time now is 04:30.

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