Coder Social home page Coder Social logo

luisllamasbinaburo / arduino-bts7960 Goto Github PK

View Code? Open in Web Editor NEW
28.0 4.0 19.0 11 KB

Arduino library to control the BTS7960 Dual H-Bridge, that can drive DC-Motor up to 43A

Home Page: https://github.com/luisllamasbinaburo/Arduino-BTS7960

License: Apache License 2.0

C++ 100.00%

arduino-bts7960's Issues

low pwm

The PWM is too low causing noise and excessive heating .If you can add a PWM regulation or just put it straight to 20KHz

Feature Request: Ability to set Arduino Timer frequency to prevent motor whine

The default Arduino PWM frequency is quite low, causing motor whine in DC motors at lower duty cycles. This can be avoided if the PWM frequency is increased (to e.g. around 20kHz), and can be done on some Arduino boards by changing the related timer frequency of the used PWM pins.
There are already existing libraries (e.g. https://github.com/terryjmyers/PWM) that can do this, but it seems fit that this library can set the frequency as well.

current sense

How can I use current alarm and can u provide example code for "(is) KEYWORD2" please.

Right channel pwm spike

At least on Arduino DUE I've tried, loading the library and creating the motor object, creates a continuos 1KHz (standard pwm freq. on DUE) spike in idle on the right pwm channel. When the motor has to be driven it behave correctly.

I've found this part of the library causing what I guess is a problem:
void BTS7960::Stop(){
analogWrite(_L_PWM, LOW);
analogWrite(_R_PWM, HIGH);
}

Modifying to:
void BTS7960::Stop(){
analogWrite(_L_PWM, 0);
analogWrite(_R_PWM, 0);
}
solves the problem.

Is this intentional or it's a real issue? If it's intentional what is the pourpose?

           Thanks, Mauro

QUESTION

Not an issue. Why does the TurnRight and TurnLeft methods include a line that writes 0 to the output, and the microsecond delay? Won't that slow the motor down on repeated calls to change the speed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.