Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Question about the IR sensor (http://www.chiefdelphi.com/forums/showthread.php?t=61085)

DemonYawgmoth 08-01-2008 17:38

Question about the IR sensor
 
From what I gathered from the manual and forum posts and stuff, we can connect the pins on the sensor board (I can't remember which ones, it doesn't really matter though) to Digital Inputs on the RC and just test in the code to see if those inputs have been triggered? Is this true or am I missing something?

tseres 08-01-2008 18:44

Re: Question about the IR sensor
 
ya, just put the approprate pins to digital in.out pins on the rc and it should work fine

DemonYawgmoth 08-01-2008 21:17

Re: Question about the IR sensor
 
Awesome, thanks a lot!

Binome 08-01-2008 21:43

Re: Question about the IR sensor
 
Right now i've started to program the IR sensor in easyC. A real easy way to get input to the robot from these things is interupts! easyC makes interupts EXTREMELY EASY! Dragging interupt blocks in, initializing them, and having 4 if statements to get it to send different values to the motors worked very well. I did start to run into what could be a killer later. The IR recciver is fairly directional. Multiple vishay reccivers, and an IR floodlight will probably be required to get a long distance, omnidirectional control system with IR.

tseres 08-01-2008 22:26

Re: Question about the IR sensor
 
interrupts? honestly, i think that's a bit overkill for the ir sensor....just do an if statement in the regular autonomous code.


All times are GMT -5. The time now is 11:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi