0

I have 2 motors connected to a dual H-Bridge motor driver and the H-bridge connected to an arduino uno, It was working fine at first but now my motors are spinning very slow and the car bearly moves, I have changed the batteries but still moves slow and with no power, please help

  • What motors? What driver? What batteries? Try to give a bit more detail. – Nick Gammon Oct 29 '15 at 6:50
2

You can try to bisect the problem.

Remove the Arduino and drive the motors with wires: replace the input for the pwm signal with a +Vcc and you will get the same as if the Arduino was outputting a PWM with 100% duty cycle.

This should allow you to diagnose if there is a problem with the driver/motors.

If that shows no problem and the wheels spin as expected, then you have some issue (either sw or electrical with the Arduino).

But at least you can halve the complexity of the problem.

  • My motor has 2 wires and to run it through the H-bridge i use 3 wires, IN1,IN2 and ENB(PWM),so are u saying I should remove the H-bridge completely or leave the motor connected to the H-bridge just remove the wire connected to ENB and connect it to +Vcc? – Shane Oct 29 '15 at 7:26
  • (IN1,IN2) work like this: when they have different values, they make the motor rotate left or right., when they are the same value they erither let the motor free and unpowered or locked and powered. You can use wires to test the 4 combinations. the En/PWM can be set and left at high value (probably 5V in your case). So yes, I'd say you could drive manually IN1, IN2, EN. If that still shows problem, then you can consider breaking down that block. – Igor Stoppa Oct 29 '15 at 7:49
  • I have EN connected to +Vcc and I have IN1 and IN2 connected to D5 and D6, one set at high and the other set at Low and nothing is happening – Shane Oct 29 '15 at 8:19
  • My point was that you do not need to connect IN1 and IN2 to the Arduino: just wire them to Vcc/GND and see if the motors move. – Igor Stoppa Oct 29 '15 at 8:20
  • oh k, yeah the motor works and I have actually resolved that issue, now I need help with the ublox neo-6, I get 2812989, -2591969 and it keeps going up and down, how do i configure it to give me a fixed value, I am using TinyGPS library – Shane Oct 29 '15 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.