Go Down

Topic: Unwanted Rotation from the Motor (Read 951 times) previous topic - next topic

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
-Ali

LarryD

#1
Jan 26, 2013, 06:53 am Last Edit: Jan 26, 2013, 06:56 am by LarryD Reason: 1
Quote
Can it be happen because of the pin 13 and it's onboard LED circuit?

No
I stand corrected.

Show us your code/sketch/drawing and/or schematic
The way you have it in your schematic isn't the same as how you have it wired up!

retrolefty


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

I forgot mentioning that the motor pulses for three time and I was adding it to my reply with a simple forward moving code and schematic of the driver circuit until I see you reply :)  So the problem is happening from the reason you told. Changing the pin 13 with another one seems simpler than the second solution = ) Thank you both for you interests.

-Ali 
-Ali

Go Up