loading

hi , hello I am gone show you , How to control BLDC motor using esc

PARTS

  • BLDC motor
  • ESC for BLDC
  • 2 Arduino board(it may be an Arduino nano or uno)
  • 2 NRF24lo1
  • joystick(or pot)
  • jumper wire
  • battery for esc

Step 1: Connection

connect the nrf24 as like in circuit diagram

connect the esc replacing servo

simple

after finishing the connection upload the code to the Arduino

remember that we have to upload two code in the Arduino board

one code for transmitter side other on the receiver side

project is completed

we can use this for building an airplane so simple is it

by adding 2 servo moto to the wings

by changing some small modification in the code

The plane is ready:):):):):):)

Step 2: Tx and Rx

carefully connect the connection properly

after connecting upload the code for tx and rx

code for tx::

#include
#include "RF24.h" int msg[1]; //SCK -> 13//MISO -> 12//MOSI -> 11//CSN -> 7//CE -> 8

RF24 radio(8,7);

const uint64_t pipe = 0xE8E8F0F0E1LL;

int potpin = 0;

int val;

void setup(void)

{

radio.begin();

radio.openWritingPipe(pipe);

}

void loop(void)

{

val = analogRead(potpin);

val = map(val, 0, 1023, 0, 179);

msg[0] = val; radio.write(msg, 1);

}

simple code easily can be understood

RX::

#include
#include

#include "RF24.h"

Servo myservo; //SCK -> 13//MISO -> 12//MOSI -> 11//CSN -> 7//CE -> 8

RF24 radio(8,7);

const uint64_t pipe = 0xE8E8F0F0E1LL;

int msg[1];

void setup()

{

myservo.attach(9);

radio.begin();

radio.openReadingPipe(1,pipe);

radio.startListening();

}

void loop()

{

if (radio.available())

{

bool done = false;

while (!done)

{

radio.read(msg, 1);

myservo.write (msg[0]);

}

}

}

Step 3: Replace

by replacing servo with

by adding esc

control over BLDC with nrf24

LATER I WILL PUBLISH MY

NRF24 PLANE WITH VIDEO

HAVE FUN THANK YOU:):):):):):):):)

About This Instructable

704views

12favorites

License:

Bio: AWESOME PERSON
More by dhakshinmoorthy:NRF24lo1 and BLDC ESP8266 
Add instructable to: