|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
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
|
|
#3
|
||||
|
||||
|
Re: Question about the IR sensor
Awesome, thanks a lot!
|
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Question about the bumpers. | Brad Voracek | Technical Discussion | 16 | 16-01-2007 07:28 |
| Quick question regarding the gear tooth sensor... | Brad Voracek | Electrical | 3 | 12-01-2007 01:07 |
| Question about the LabView | itsme | LabView and Data Acquisition | 2 | 07-01-2007 20:16 |
| question about the code | naor52 | Programming | 1 | 10-01-2006 16:42 |
| Question about the playfield | Big H | General Forum | 2 | 19-02-2004 07:57 |