Saeterncj / MX1508

Arduino library for MX1508 dual DC motor driver
MIT License
35 stars 15 forks source link

add "brakeMotor" from MX1508 truth table #10

Open hugopatin opened 11 months ago

hugopatin commented 11 months ago

Hello! The braking feature of the MX1508 doesn't seem to be implemented by the library which could be useful in many projects. According to the truth table of the datasheet both pins 1 and 2 must be set at HIGH to do so. image I'll propose a pull request soon.

hugopatin commented 11 months ago

The ESP32 version already implements it btw: https://github.com/ElectroMagus/ESP32MX1508

fanfanlatulipe26 commented 6 months ago

I ported the library on ESP8266 and also made some test with the BRAKE function. I also tried it on a UNO. No results for me: same time to stop with both inputs to 0 or to 1 . Did you manage to use ? Forget this comment: error in the test. Brake is rather efficient: divide by 4 or 5 the stopt ime in my example.