Pedal test
HTML-код
- Опубликовано: 2 окт 2024
- Motor control test using two Hall Effect sensor foot pedals going through an Arduino to a DBH-12V 30A dual motor control. One of the actual motors I'll be using is on the bench behind the test setup. Excuse the shaking hands, I have a condition known as essential tremor.
Looking good 👍
Hi Jerry, good job, I spent several hours (too many) try to reach this result but still didn't succeed. Could you share your code and wiring diagram ? Thanks a lot.
I have some information I can email you. Send your email address to jerry_hanna@hotmail.com, thanks!
hey, this looks awsome, im trying to build a setup very similar to this as im an arm amputee, this is exactly what id need to continue with mechanicing and using motors/machines to help with my work. would you mind sharing the build please. im very interested in a solo setup, cheers!
I can email you some information, I just need an email address
@@jerryhanna7869 How about for the rest of us?
Do you know if I can use this motor controller with a pwm rc receiver?
It's a PWM controller so it's possible depending on how the RC receiver sends its command signals, stuff like forward/reverse enable. I'd get a copy of the controller datasheet and compare it to the receiver outputs, good luck!
I need you help
this is awesome ... do you release the build plans for these?
I have a wiring diagram and the Arduino code I can send you, I just need your email address.
Can you send me the files, please? I'm interested in that driver. Thanks
@@williammartinezsoltero2287
#include
#include
L29x motor1(13,12,11);
L29x motor2(8,9,10);
int revSw1 = 4; // switch pin motor 1
int revSw2 = 5; // switch pin motor 2
int revLed1 = 7; // LED pin motor 1
int revLed2 = 6; // LED pin motor 2
int APP_pin1 = A0; // Assigns Analog Pin for APP sensor input
int APP_pin2 = A1; // Assigns Analog Pin for APP sensor input
int APP_val = 0; // Variable to store APP sensor value
int PWM_val = 0; // Variable to store PWM output value
int APP_min = 190; // Minimum useable value from APP sensor
int APP_max = 850; // Maximum useable value from APP sensor
int revState1 = 0; // switch 1 status
int revState2 = 0; // switch 2 status
void setup() {
pinMode(APP_pin1,INPUT);
pinMode(APP_pin2,INPUT);
pinMode(revLed1, OUTPUT);
pinMode(revLed2, OUTPUT);
pinMode(revSw1, INPUT_PULLUP);
pinMode(revSw2, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
// ------------------- motor 1 --------------------
APP_val = analogRead(APP_pin1); //Read value from APP sensor
PWM_val = map(APP_val, APP_min, APP_max, 0, 200);
if (APP_val < APP_min)
PWM_val = 0; //Set PWM output to Lowest Output
if (APP_val > APP_max)
PWM_val = 200; //Set PWM output to Highest Output
revState1 = digitalRead(revSw1);
if (revState1 == HIGH)
{
digitalWrite(revLed1, LOW);
Serial.print ("Forward APP_val 1 ");
Serial.print (APP_val);
Serial.print (" ");
Serial.print ("PWM_val 1 ");
Serial.print (PWM_val);
Serial.print (" ");
motor1.fwd(PWM_val);
delay(100);
}
else
{
digitalWrite(revLed1, HIGH);
Serial.print ("Reverse APP_val 1 ");
Serial.print (APP_val);
Serial.print (" ");
Serial.print ("PWM_val 1 ");
Serial.print (PWM_val);
Serial.print (" ");
motor1.bwd(PWM_val);
delay(100);
}
// ------------------- motor 2 --------------------
APP_val = analogRead(APP_pin2); //Read value from APP sensor
PWM_val = map(APP_val, APP_min, APP_max, 0, 200);
if (APP_val < APP_min)
PWM_val = 0; //Set PWM output to Lowest Output
if (APP_val > APP_max)
PWM_val = 200; //Set PWM output to Highest Output
revState2 = digitalRead(revSw2);
if (revState2 == HIGH)
{
digitalWrite(revLed2, LOW);
Serial.print ("Forward APP_val 2 ");
Serial.print (APP_val);
Serial.print (" ");
Serial.print ("PWM_val 2 ");
Serial.println (PWM_val);
motor1.fwd(PWM_val);
delay(100);
}
else
{
digitalWrite(revLed2, HIGH);
Serial.print ("Reverse APP_val 2 ");
Serial.print (APP_val);
Serial.print (" ");
Serial.print ("PWM_val 2 ");
Serial.println (PWM_val);
motor1.bwd(PWM_val);
delay(100);
}
}
🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
Good!!!! How much is the DBH-12v output??
It's rated for 30A
Buen día un favor me podrían decirme de favor como se llama el motor bendiciones y muchas gracias
www.sciplus.com/car-seat-12vdc-gear-motor-49248-p
What is the name of this motor?
www.sciplus.com/car-seat-12vdc-gear-motor-49248-p