Hi everyone,
I use L298 for driving a Rover 5. However I experience an unwanted move from the left motor at start. It's a short movement but don't want this to happen anyway. I used pins 13 and 12 of UNO as the digital outputs for controlling the left motor. Can it be happen because of the pin 13 and it's onboard LED circuit? I'll be glad if you help me.
Thank in advance,
-Ali
Well when you first power up a uno board or have a reset condition, the bootloader code runs first to see if the IDE wants to download a new sketch or not, and it blinks pin 13 three times then if no new upload it finally jumps to any prior sketch that was loaded into the chip. So sure if you have something wired to pin 13 as an output pin then it will output three short pulses before it starts to run your sketch.
Possible solutions?
Move to a different output pin.
Or
Load the sketch with a hardware programmer via the ISP pins, which will erase the bootloader and load your sketch so it will start immediately upon power up or reset.
Lefty