EDITED:
I have attached my code, what you will most likely want to look at is the armMotor() function, but I figured I’d include it all incase something was wrong.
My signal wire for the ESC is connected to pin 9 so the esc/motor is named m1.
I am using a 4S battery attached to a relay that supplies power to the ESC(see picture).
I have also attached an image of my setup, and the manual for the ESCs. Any help is appreciated, thanks!
The other functions and stuff is just sensor/radio setup and its still a it of a mess since I’ve been trying to set everything up.
Hi I’m pretty new to Arduino and in the process of making a drone, but I’ve come across a problem.
I bought some 30 amp ESCs and have been working on controlling my motor with them. After awhile I was able to get them armed by using the servo motor library, but once it’s running I can’t write new speeds to it…such as
ESC.writeMicroseconds(1200); etc
It stays at a constant speed no matter what values I feed it.
There’s a throttle calibration section in the manual for the ESCs but it isn’t very specific and is based off of BHeli Suite, which I have no idea what that is. I’m trying to do everything through Arduino code.
From all the tutorials I’ve seen they just feed in different data and it works, any ideas why mine stays at a constant speed? Thanks
Drone_Code.ino (15.4 KB)
ESC_Manual.pdf (771 KB)