|
Re: Still don't understand how to wire IR?
We too had some issues with using the Digital IO for the IR PCB. The Digital IO lines have pull up resistors internal to the Robot controller. They will always look like a '1' to your code, unless a signal can pull them down.
We chose to use the Analog inputs for the IR outputs. This way we trigger on a '1' signal and are not looking for the Digital pins to go low. Choose a value somewhere between 0 and 1023 for a triggered value. The IR PCB puts out a 100ms pulse. between 0 and 5V. The grounding through IR pins 3 and 4 should be sufficient.
We strongly recommend using the 12V supplied from a fuse panel to power the IR PCB. Using 7.2V from a PWM output will drain your backup battery. The backup battery is the sole source of power for your RC communications between the Robot and the Operator interface. Unless you intend to build the on-board charging circuit, you may have spotty IR links late in in the match.
Hope this helps.
__________________
Team MARS = 1.523 AU from the SUN!
Jim E.
|