Driving a brushless motor with an ESC from a ESP32

markxr
Posts: 15
Joined: Sun Aug 16, 2020 7:32 pm

Re: Driving a brushless motor with an ESC from a ESP32

Postby markxr » Thu Apr 29, 2021 7:01 pm

If you can get the configuration program working, then you can program the ESC to go permanently into 3d mode.

Otherwise, it should work. I'm also using blheli-32 35A ESCs. ("HAKRC 35A").

joelmate
Posts: 1
Joined: Fri Apr 01, 2022 7:41 am

Re: Driving a brushless motor with an ESC from a ESP32

Postby joelmate » Fri Apr 01, 2022 8:20 am

Hi Jack, I´ve implemented your code but my motor is 4300KV and 60A and something goes wrong (the ESC that I´d used is the Gool RC WATERPROOF, 2-3S lipo BEC 5.8V/3A (60A)). I don´t know if I should change some parameters such as the Max_speed and Min_speed and the arm value of the ESC myESC (...,...,...,500). However, what did you took as reference to select the values that I´ve mentioned (Max_speed and Min_speed, Arm value). Apart from this, I would like to know about de for that appears before the void loop. Why have you decide tu put that 'i' has to incremente till 350, and why this "(MIN_SPEED-200+i)". Thanks for your time.

Wingerspinner
Posts: 2
Joined: Sat Feb 10, 2024 3:00 am

Re: Driving a brushless motor with an ESC from a ESP32

Postby Wingerspinner » Sun Sep 22, 2024 8:02 pm

This is a very useful thread. Thanks!

One note based on having used various ESCs in both helicopters and drones. Try to find an ESC specifically for drones. In a helicopter there is never a need (in fact it's completely undesirable) to reverse the motor during flight. In a helicopter RPM is held relatively constant and the direction and volume of thrust is controlled by changing the blade angle (the collective control) and upside down flight is just a negative blade angle with the motor and blades always turning the same direction. Common drones have fixed propeller blades and to fly upside down the motor direction must be reversed near instantaneously while in flight and the amount of thrust is purely based on motor/propeller RPM.

Cheap drone ESCs will not have all the restrictions of an ESC designed specifically for helicopters. As well, I've worked with an open source ESC called "VESC" which is very flexible and is specifically designed to control 3 phase brushless motors for generalized motor control http://vedder.se/2015/01/vesc-open-source-esc/
Here's a search link for Amazon https://www.amazon.com/s?k=vesc+control ... -doa-p_6_4

The VESC based units tend to be more expensive but are very robustly designed if you need that.


Ron (Wingspinner)

Who is online

Users browsing this forum: Baidu [Spider], neospice and 31 guests