Windshield Wiper Motor Servo with Arduino & BTS7960 driver
HTML-код
- Опубликовано: 16 сен 2024
- In this video I convert a windshield wiper motor into a servo that is controlled with an Arduino, BTS7960 driver board and a Potentiometer .
Sketch file;
drive.google.c...
Gbu
Cool project! I almost have it working. There seems to be a lot of jitter. When I touch the motor pot wires at the base where the wire is exposed, it works a lot better. Is that a grounding issue? Any ideas how I can fix it other than having my finger on it? Hehe thanks!
Maybe a bad connection ? Do you have grounds connected between the Motor driver & Arduino?
@@refab2262 yes, they are sharing a ground.
I looked at my original sketch, it worked on mine as is, but I didn't declare the pot pins as inputs under setup. It may be worth trying.
@@refab2262 I will try that. Thanks for the replies! Once I get that working I am going to replace the pot with a second Arduino and use the Servo.write and other Servo commands to control it. Would the code you wrote work directly for that or do I need to modify it in some way to accept input from the other Arduino Servo commands. Thanks again!
I got it working! Turns out the pot was bad. I still could use some help with controlling it using Servo commands from another Arduino.
is it possible to make it work with 2 push button
with the Arduino I'd say yes, without the Arduino I don't know. I'm relatively new to coding, and am figuring it out as I go
@@refab2262 OK THANK YOU
How to operate this without potentiometer.
Using as a servo it needs to know the position, the potentiometer is the easiest. If your'e not using as a servo refer to the example sketch
@@refab2262 yes I am using 1 potentiometer for feedback but I don't want to use another potentiometer to control the motor in place of that I want to control the motor with code( like normal servo motor.)
Bonjour, est il possible d'avoir le code svp ?
can anybody translate ?
@@refab2262 can you give the code please
i added it to the description.
@@refab2262 thank you