I'm quiete new to arduino and I'm working with it to get some of my artpieces into motion.
Now, I'm stuck because I've got a new driver "BTS7960" for a larger motor and I've no clue how to connect it.
There's some info on the net, but unfortunately only for complex functions and what i need is very basic, maybe somebody can help?
I' like the wiper motor to move only in one direction, and code a (eg. PMWA) stop-go- rhythm. No turning directions or increasing speed.
Does anybody know how to connect them and what the code must look like then? :o
I really appreciate any suggestions. Any questions please let me know.
Greets from Berlin,
Lisa
hey Mark
yes you're right. sorry and thanks for replying.
i attached to images. I think the sketch I found there might work.
It is quiet a simple setup that i think I can try out. and then see it it works with my standard code ?
const int DIRA = 12;
const int PWMA = 3;
const int BRAKEA = 9;
The BTS7960 is a half-H-bridge chip. It takes an input (which is the PWM input as marked on the module)
and an enable input. There's also an analog current sense output.
So for H-bridge operation you need to have both enables high, and either PWM the Lpwm or Rprm for
controlling each direction. Setting the rpms both low will be a brake mode, there's no separate
brake pin.
With the enables low the motor will be undriven and will coast to a stop.
By pwm'ing the enable pin instead of the PWM pin you can probably do slow decay-mode
Hey Mark,
yes. exactly- I connected everything and my code didnt work. (:
But what you're writing I understand. i'll go from there and try again.Thanks a lot
What is the code of the driver? We are also using this driver but got no idea how to start it in arduino. I search the net but has only basic functions. What we want in our code is for the motor to forward, backward, stop. Thanks.