This schematic I built to controlling my RC brushless DC motor with arduino and toggle switch via arduino servo library (servo.h)

How to controlling BLDC with arduino and toggle switch :

1) Arduino uno R3

2) Toggle-Switch

3) R 220ohm

4) ESC (electronic speed controller)

5) BLDC

 

I'm using this project to determine transfer function of my BLDC motor