![]() |
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?
|
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 |
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 thenHope this helps. |
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 :).
|
| All times are GMT -5. The time now is 04:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi