Giter Site home page Giter Site logo

pedrojlsilva / esc-calibration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lobodol/esc-calibration

0.0 0.0 0.0 23 KB

Arduino sketch to calibrate ESC (Electrical Speed Controllers)

Home Page: https://www.firediy.fr/article/calibrer-ses-esc-avec-un-arduino-drone-ch-3

License: MIT License

C++ 100.00%

esc-calibration's Introduction

Build Status

1. Introduction

This project provides an Arduino sketch to calibrate up to 4 Electrical Speed Controllers (ESC) at the same time. Feel free to update this sketch if you need to calibrate more than 4 ESCs.

ESC are used to control brushless motors. This sketch is based on the Servo library that allows controling servo-motors sending them a 50Hz servo-control signal (a particular kind of PWM). Generated pulses length are about 1000µs to 2000µs. Feel free to edit pulses length according to your needs.

This sketch was written according to the HobbyKing ESC documentation

A detailed tutorial is available here (in french).

2. Cabling

2.1 Motor to ESC

Connect each motor (3 wires) to its ESC. The way of wiring doesn't matter : brushless motors are like 3-phased motors, thus it only affects the direction of rotation. For calibration step, direction of rotation is not important.

⚠️ Do NOT place propellers on motors if you care about your fingers !

2.2 Arduino to ESCs

Connect each ESC's ground to the Arduino's ground to make all having common ground. Most of the time, ESC's command wire is white, then connect them as following :

  • ESC1 to Arduino's digital pin #4
  • ESC2 to Arduino's digital pin #5
  • ESC3 to Arduino's digital pin #6
  • ESC4 to Arduino's digital pin #7

ℹ️ If you don't want to calibrate all ESCs at the time, you're free to connect them one by one and run the Arduino sketch, it doesn't make any difference. ESC cabling

⚠️ The Arduino will be powered by USB cable. Do not power the Arduino with the BEC output of an ESC to prevent any damage.

3. Usage

After having uploaded sketch on your Arduino and having ESCs not powered up yet :

  1. Plug your Arduino to your computer with USB cable, open terminal, then type 1️⃣. This will send max throttle to each ESC in order to make them enter programming mode.
  2. Power up your ESCs. You must hear "beep1 beep2 beep3" tones meaning the power supply is OK.
  3. After 2sec, "beep beep" tone emits, meaning the throttle highest point has been correctly confirmed.
  4. Then, type 0️⃣ to send 0 throttle. This will set the lowest throttle level for each ESC.
  5. Several "beep" tones emits, wich means the quantity of the lithium battery cells (3 beeps for a 3 cells LiPo).
  6. A long beep tone emits meaning the throttle lowest point has been correctly confirmed. Your ESC's are now well calibrated and ready for test.
  7. Type 2️⃣ to launch test function. This will send 0 to max throttle to ESCs : you must see your motors starting to run with increasing speed, then stop when maximum speed is reached.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.