Hey guys!
I'm just trying to set up a wireless serial communication via IR. I generate a 38kHz signal on pin 9. The IR-LED is connected to pin 9 with it's anode and the kathode of the LED is connected to the TX pin of the Arduino.
Now the problem is that the Arduino doesn't seem to be sending data if I power it from batteries. It only sends serial data when I connect it to the computer and open up a terminal. I'm not quite sure why because I don't use something like this:
<code>
if(Serial.available()){
yada yada
}
</code>
So I'd expect it sending data regardless of having a USB connection to the computer. Does anybody know why it doesn't send data when it's disconnected from the computer?
Thanks