Repository navigation
PWM
Mark Sherstan edited this page Dec 25, 2019
·
2 revisions
Pulse Width Modulation or PWM is a common digital control technique.
UAV's or "Drones" use multiple motors which are controlled by Electronic Speed Controllers (ESC's). To ensure that all ESC's are calibrated to the same range a calibration is required which is easily achieved with the given script. Open the .ino and read the pinout and modify the min and max range as specified in your ESC data sheet (typically 1000 and 2000 respectively.).
It is important to note the following:
- The ESC's and Arduino must all share a common ground (the ESC's cannot be powered by the Arduino; use a power source or LiPo battery with the correct number of cells).
- DISCONNECT YOUR PROPELLERS BEFORE CALIBRATING!
To find the endpoints and PWM range of a servo simply attach a servo and write values to the serial port. It is recommended to power the servos with a secondary power source with a shared ground to the Arduino.