CONTROL BLDC MOTER WITH ARDUINO UNO R3
दोस्तों आज हम जानेंगे की कैसे एक BLDC MOTER को Arduino uno r3 से control किया जा सकता है आपको इसके लिए चाहिए होगा एक bldc moter, esc, lipo battery potentiometer कुछ wire और Arduino board आप Arduino को computer software और या फिर Android apk से भी program कर सकते हो Android phone के लिए आपको Arduino Droid App download करना होगा
ArduinoDroid App
download here:- https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2&hl=en_IN
simply download:-
https://apkpure.com/arduinodroid-arduino-ide/name.antonsmirnov.android.arduinodroid2
दोस्तों इसके लिए आपको निचे दिया गया Program Code Copy करके Arduino software या app में paste करके Arduino में upload करना होगा
#include<Servo.h> //using servo library to control ESC
Servo esc; //Creating a servo class with name as esc
void setup()
{
esc.attach(8); //Sepcify the esc signal pin,Here as D8
esc.writeMicroseconds(1000); //initialize the signal to 1000
Serial.begin(9600);
}
void loop()
{
int val; //Creating a variable val
val= analogRead(A0); //Read input from analog pin a0 and store in val
val= map(val, 0, 1023, 1000, 2000); //mapping the val to minimum and maximum input
esc.writeMicroseconds(val); //using val as the signal to esc
}
Guide (connection in Arduino)
दोस्तों अब आपको electronic speed controller( ESC) pins से connect करना होगा और आपको तीन बार बीप-बीप बीप सुनाई देगी इसका means ये है की सब circuit ready है अब moter चलने के लिए ready है potentiometer की knob increase करने से moter run होने लगेगी
ArduinoDroid App
download here:- https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2&hl=en_IN
simply download:-
https://apkpure.com/arduinodroid-arduino-ide/name.antonsmirnov.android.arduinodroid2
दोस्तों इसके लिए आपको निचे दिया गया Program Code Copy करके Arduino software या app में paste करके Arduino में upload करना होगा
#include<Servo.h> //using servo library to control ESC
Servo esc; //Creating a servo class with name as esc
void setup()
{
esc.attach(8); //Sepcify the esc signal pin,Here as D8
esc.writeMicroseconds(1000); //initialize the signal to 1000
Serial.begin(9600);
}
void loop()
{
int val; //Creating a variable val
val= analogRead(A0); //Read input from analog pin a0 and store in val
val= map(val, 0, 1023, 1000, 2000); //mapping the val to minimum and maximum input
esc.writeMicroseconds(val); //using val as the signal to esc
}
Guide (connection in Arduino)
दोस्तों अब आपको electronic speed controller( ESC) pins से connect करना होगा और आपको तीन बार बीप-बीप बीप सुनाई देगी इसका means ये है की सब circuit ready है अब moter चलने के लिए ready है potentiometer की knob increase करने से moter run होने लगेगी
दोस्तों सबसे पहले bldc moter के तीन terminals को esc के तीन terminals से connect करे moter को एक स्थाई ब्लॉक पर adjust करे ताकि moter high rpm speed पर stable रहे दोस्तों esc की signal wire को Arduino की किसी भी pwm pins से connect करे मैंने इसे digital pin 8 से जोड़ा है esc की signal wire का color पीला या सफ़ेद हो सकता है
और A0 pin से potentiometer का तीसरा terminal connect करे
आप अपने esc में bsc (Battery Eliminator Circuit) का use करके Arduino को power दे सकते है bsc का use करने के लिए bsc की red wire को arduino 5v pin vin से जोड़े अब moter चलने के लिए ready है potentiometer की knob increase करने से moter run होने लगेगी
No comments: