I'm trying to control a BLHeli ESC (link) controlling a Gemfan motor (Gemfan RT-2205 2300KV - 3-4S - 425W - 1160g) with a Raspberry Pi 3B with a python program which I've written two days ago:
from time import sleep import pigpio GPIO.setmode(GPIO.BCM) pi = pigpio.pi() ESC_GPIO = 13 pi.set_servo_pulsewidth(ESC_GPIO, 2000) # Maximum throttle. sleep(2) pi.set_servo_pulsewidth(ESC_GPIO, 1000) # Minimum throttle. sleep(2) while 1: pi.set_servo_pulsewidth(ESC_GPIO, 2000)
Two days ago the program was working fine, the esc was starting with full throttle. But yesterday it suddenly stopped working - the esc only beeps correctly with the configuration (first max throttle and then min throttle) and then just stays silent, doesn't move. Also if i try to move it with the pigs command via bash, it doesn't work.
I also tried several tutorials & forum advice I found on the internet (such as the RPI.GPIo library), but with no effect.
The funny thing is that the ESC still works well with a simple program on Arduino Uno rev. 3 using the arduino built-in Servo library. What can be wrong?