Quad copter Arduino NANO : Test and Calibration ESC

https://en.wikipedia.org/wiki/Aircraft_principal_axes

 

https://en.wikipedia.org/wiki/Quadcopter

 

Remote control FlySky   FS-I6C  TX , FS-IA6B RX

 

500px-FlySky_IA6B_pinout-f89eed4f

https://www.dronetrest.com/t/connecting-a-matek-f405-ctr-to-fs-ia6b-receiver/7081

Flysky FS-I6 TX   remote control manual

https://drive.google.com/file/d/1pOiHj9m0HxIeDRs6IpjiTVY0ntMojYiw/view?usp=sharing

 

reference

http://www.electronoobs.com/eng_robotica_tut5_3.php

 

 

Test ESC and MOTOR and Direction

 

 

 

/*
        Arduino Brushless Motor Control
     by Dejan, https://howtomechatronics.com

and Modify by A-Arduino  :    www.a-arduino.com

*/
#include <Servo.h>
Servo ESC1;     // create servo object to control the 4 ESC
Servo ESC2;
Servo ESC3;
Servo ESC4;
int potValue;  // value from the analog pin
void setup() {
  // Attach the ESC on pin 9
  ESC1.attach(A1,1000,2000); // (pin A1, min pulse width, max pulse width in microseconds) 
  ESC2.attach(A2,1000,2000); // (pin A2, min pulse width, max pulse width in microseconds) 
  ESC3.attach(A3,1000,2000); // (pin A3, min pulse width, max pulse width in microseconds) 
  ESC4.attach(A4,1000,2000); // (pin A4, min pulse width, max pulse width in microseconds) 
}
void loop() {
  potValue = analogRead(A0);   // reads the value of the potentiometer (value between 0 and 1023)
  potValue = map(potValue, 0, 1023, 0, 180);   // scale it to use it with the servo library (value between 0 and 180)
  ESC1.write(potValue);    // Send the signal to the ESC
  ESC2.write(potValue);    // Send the signal to the ESC
  ESC3.write(potValue);    // Send the signal to the ESC
  ESC4.write(potValue);    // Send the signal to the ESC
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *