- Sat Dec 23, 2017 11:41 am
#197299
My grandson and myself are having the following problems with controlling 2 dc motors with a Arduino Uno R3 and a L298 with a simple motor sketch.
We followed the instructions for hooking up the L298 and the Arduino and down loaded the motor sketch . This is what happens.
We plug the 9 volt battery into the Arduino and the green led lights up and L1 and L2 flashes on the L298 but the motors don't turn (motors have there own power supply )
If we unplug the 9 volt battery from the Arduino and put the jumper on the 5v_EN then the 5v and L1-L2-L3-L4 on the L298 all light up. But the motors don't turn.
If we plug in the 9 volt battery into the Arduino and put the jumper on 5v_EN the 5v and L1 and L3 led lights up and the motors turns.
I know this can't be right if you have to plug in the Arduino and keep putting the jumper off and on each time.
He spent 3 hours looking on you tube and there some people said that we had to hook up a ground wire from either the Arduino or the L298 but the instructions never said any thing about this.
Can some one give us a helping hand?
We followed the instructions for hooking up the L298 and the Arduino and down loaded the motor sketch . This is what happens.
We plug the 9 volt battery into the Arduino and the green led lights up and L1 and L2 flashes on the L298 but the motors don't turn (motors have there own power supply )
If we unplug the 9 volt battery from the Arduino and put the jumper on the 5v_EN then the 5v and L1-L2-L3-L4 on the L298 all light up. But the motors don't turn.
If we plug in the 9 volt battery into the Arduino and put the jumper on 5v_EN the 5v and L1 and L3 led lights up and the motors turns.
I know this can't be right if you have to plug in the Arduino and keep putting the jumper off and on each time.
He spent 3 hours looking on you tube and there some people said that we had to hook up a ground wire from either the Arduino or the L298 but the instructions never said any thing about this.
Can some one give us a helping hand?