Arduino sketch doesn't work, pins don't output anything

I have an Arduino Uno and am trying to control my s107g rc helicopter. This code was available for download along with several Youtube videos demonstrating its tests. Therefore, when I tried it with an IR indicator, it did not work.

I tested it using regular LEDs, I checked pins 8 and 13 with my multimeter (pins are used), but the pins do not output anything. I believe that I am using the code correctly. I open the serial console and it displays the information as it should when I type the command, and the light on the Arduino flash (TX and RX) and the light L remain on.

The code will be below. I am pretty sure that I am using it correctly, so if you can help me, it would be well appreciated. I am new to this. He also says to connect an IR signal to pin 8. I'm not sure if I am doing this correctly. (I connected the positive side to pin 8 and negative to ground)

LINK TO THE SITE: Helicopter S107G control via Arduino

CODE

+4
source share
1 answer

The code seems to be working fine. In my arduino, instead of IR, I tried using a regular LED and changed the delays in the delayMicroseconds() function to a few large values ​​(so that the blinking could be visible to my eyes), and I could see that the LED is blinking. I could also see the desired outputs on the serial monitor. I am not sure what the problem is. Some simple codes, for example, just blink LEDs that work perfectly with your arduin?

+3
source

All Articles