Hi , I am trying to connecting BLDC MOTOR DRIVER BLD-300B with arduino
I found the attached video :How to use controller to reverse and stop the BLDC motor. - YouTube
I follow it but connected pind with arduino UNO pin but it is not working .
,so how i can connect it with arduino ?
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for advice on (nor for problems with) your project See About the Installation & Troubleshooting category .
1 Like
Please post a link to the datasheet of the driver and schematics. Most helpers don't spend time on videos.
User manual:
Looks like you connect eight wires to your motor and five to your Arduino. The "SV" pin goes to a PWM pin on the Arduino to control speed (analogWrite 0 to 255 for slow to fast). The "EN", "BRK", and "F/R" pins go to Arduino digital outputs. LOW is active so set "EN" to LOW to enable the driver, set "F/R" to Forward or Reverse, and set "BRK" to LOW to brake. The "COM" goes to Arduino ground.
1 Like
when I connect it as u said I still face a problem that the motor not react as expected program
int FR=D5;
int en=D2;
int sv=D1;
int br=D3;
void setup() {
// put your setup code here, to run once:
pinMode(FR,OUTPUT);
pinMode(sv,OUTPUT);
pinMode(en,OUTPUT);
pinMode(br,OUTPUT);
Serial.begin(9600);
}
void wheelStop(){
digitalWrite(en,LOW);
}
void wheelMoveForward(){
digitalWrite(en,LOW);
delay(1000);
digitalWrite(FR,LOW);
delay(1000);
digitalWrite(en,HIGH);
}
void wheelMoveBackward(){
digitalWrite(en,LOW);
delay(1000);
digitalWrite(FR,HIGH);
delay(1000);
digitalWrite(en,HIGH);
}
void loop(){
wheelMoveBackward();
wheelStop();
wheelMoveForward();
}
The robot move always in forward direction
I don't see where you set the speed or release the brakes. Try adding these to the end of setup():
digitalWrite(en, HIGH); // Disable the driver
digitalWrite(sv, HIGH); // Full Speed
digitalWrite(be, HIGH); // Release the brake
Are you sure you have all eight wires to the motor wired correctly?
I adjust the speed by using the internal potentiometer
johnwasser:
digitalWrite(en, HIGH); // Disable the driver
digitalWrite(sv, HIGH); // Full Speed
digitalWrite(be, HIGH); // Release the brake
I almost do some change here in my code and it is work properly right now , thanks alot for your help
1 Like
system
Closed
April 1, 2023, 2:37pm
10
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.