The connections to the Arduino are;
• the servo control wire of the ESC is connected to digital pin D3 (which is suitable for PWM)
• the red LED connects to analogue pin A1
• the green LED connects to analogue pin A2
• the LCD shield occupies digital pins 8, 9, 4, 5, 6, 7, and 10
• power is supplied to the Arduino from a computer or USB supply.
The Process
Once the sketch is loaded into the Arduino and an ESC is connected as shown above the LCD screen will
signal the user to connect the battery (if it isn't already connected) switch on the ESC while holding down the
SET button on the ESC. The ESC will start flashing its on-board red LED and beeping. Release the SET
key as soon as the ESC starts beeping (holding it too long will cause the ESC to go into programming mode)
After a few seconds, the Arduino will signal that it is going to set the throttle to the neutral position. It will
flash its own red LED for 10 seconds and then send the servo signal for a neutral throttle position to the
ESC. The LCD screen will tell the user to “Press SET Button”. The sketch allows 10 seconds for the user to
do this. When they press the button the ESC should signal the fact by flashing its on-board green LED once
and beeping once.
After a few seconds, the Arduino will signal that it is going to set the throttle to the maximum forward speed
position. It will flash its own red LED for 10 seconds and then send the servo signal for a maximum forward
throttle position to the ESC. The LCD screen will tell the user to “Press SET Button”. The sketch allows 10
seconds for the user to do this. When they press the button the ESC should signal the fact by flashing its on-
board green LED twice and beeping twice.
After a few seconds, the Arduino will signal that it is going to set the throttle to the maximum reverse speed
position. It will flash its own red LED for 10 seconds and then send the servo signal for a maximum reverse
throttle position to the ESC. The LCD screen will tell the user to “Press SET Button”. The sketch allows 10
seconds for the user to do this. When they press the button the ESC should signal the fact by flashing its on-
board green LED three times and beeping three times.