Re: Arduino Uno IR Battle System
Posted: Wed Mar 29, 2017 12:55 pm
Just checked that I have the latest IDE, I do.
Downloaded the new zip.
Loaded the Sketch into two versions of Arduino, 1.0.6 and 1.8.
1.0.6 generates only one error, unfortunately it is servo related.
The error aborts compiling or upload.
I did a quick video with the previous sketch to demonstrate what happens with the servo.
Only the servo is connected.
It is running off the USB, not the RX18.
Fire button is a momentary switch on D4/GND.
No response on servo.
The onboard led flashes to indicate that the switch has activated the circuit.
I tried hooking things up via the RX18.
Using the D4/GND switch the IR LED works perfectly.
This narrows the power issue down to the RX18 IR+ pin. I have removed all other circuits, just have the A0/GND pins and voltage divider. The IR LED remains inactive when the gun is fired.
One thing that did cross my mind. I seem to recall that when I was looking at the Uno last year, I set up a voltage measuring sketch that monitored the two IR pins on the RX18. The pins pulsed at 5v, but took a while to drop back to 0v. Most of the time they were fluctuating between 0v-3v when inactive. If the sketch is looking for high/low, and there is always voltage going through would that mean that the sketch would never reach a point where the high/low differential was detected, and therefore always remain inactive?
Downloaded the new zip.
Loaded the Sketch into two versions of Arduino, 1.0.6 and 1.8.
1.0.6 generates only one error, unfortunately it is servo related.

The error aborts compiling or upload.
I did a quick video with the previous sketch to demonstrate what happens with the servo.
Only the servo is connected.
It is running off the USB, not the RX18.
Fire button is a momentary switch on D4/GND.
No response on servo.
The onboard led flashes to indicate that the switch has activated the circuit.
I tried hooking things up via the RX18.
Using the D4/GND switch the IR LED works perfectly.
This narrows the power issue down to the RX18 IR+ pin. I have removed all other circuits, just have the A0/GND pins and voltage divider. The IR LED remains inactive when the gun is fired.
One thing that did cross my mind. I seem to recall that when I was looking at the Uno last year, I set up a voltage measuring sketch that monitored the two IR pins on the RX18. The pins pulsed at 5v, but took a while to drop back to 0v. Most of the time they were fluctuating between 0v-3v when inactive. If the sketch is looking for high/low, and there is always voltage going through would that mean that the sketch would never reach a point where the high/low differential was detected, and therefore always remain inactive?