Maker Pro
Maker Pro

BLDC control using RPI Pico W

lovrinho

Apr 5, 2023
12
Joined
Apr 5, 2023
Messages
12
Hi, I'm having trouble controlling a BLDC motor using a RPI Pico W and an ESC. When I run my code, the motor doesn't run but beeps and nudges itself a bit at a constant rate of 1 Hz.

The battery I use (3S-Lipo ) is full, measured with a multimeter and shows cca 12 V.

I also measured the voltage between the PWM pin and the GND pin. It shows 3.3 V for the code attached below (duty cycle = 100%). Is that right in this case?

The connections are also attached below. The ESC is connected to the PWM pin (1st pin on the left side) and the GND pin (3rd pin on the right side) on the board. The board is connected to my PC via USB micro cable.

I don't know what should the PWM frequency be but I tried to setting it to 1000 Hz, 10000 Hz, 100000 Hz, 1000000 Hz and 125000000 Hz (max for the board) but nothing changed regardless.

Is there a problem in my code, my connections or is my hardware incompatible?

I don't know if there are any other things I should mention so here are links to my hardware (all ordered from AliExpress so unfortunately, I didn't have any luck finding data sheets):

- ESC (10 A)
- Motor (980 kV)
- Battery (1800 mAh, 3S, 30C)

I am grateful for any info that gets me to closer to solving this problem.
Thank you in advance :)

1688936199413.png

1688936111701.jpeg
 

Bluejets

Oct 5, 2014
6,583
Joined
Oct 5, 2014
Messages
6,583
ESC's require an "initiation" when first turned on.
Look for the esc specs and it will tell you.
Basically the sequence is ...turn on at low throttle setting.......advance to full throttle setting......then retard back to low setting.
esc will cause mortor to "beep" showing the number of cells in the pack.
Reason for the above is to stop motors from starting up initially on rc turn on when in aircraft or whatever which could cause a lot of damage.
Programming of the esc may also be required.
Best approach would be to set up the esc with a standard rc system and go from there.
 

bidrohini

Feb 1, 2023
152
Joined
Feb 1, 2023
Messages
152
This video also shows how to control a BLDC motor with a Raspberry Pi Pico:
 
Top