rtlopez / esp-fc

Flight controller software for hobbyist
MIT License
251 stars 58 forks source link
drone esp32 flight-controller hobby rc rp2350

ESP-FC Flight Controller

The mini, DIY, Low cost, ESP32 based, high performance flight controller for hobbyists.

Features

Requirements

Hardware:

Software:

Flashing

  1. Download and unzip selected firmware from Releases Page
  2. Visit ESP Tool Website
  3. Click "Connect" and choose device port in dialog
  4. Add firmware file and set Flash Address to 0x00
  5. Click "Program"
  6. After success power cycle board

Note: only ESP32 and ESP8266 can be flashed in this way.

ESP-FC Flashing

Setup

After flashing you need to configure few things first:

  1. Configure pinout according to your wiring, especially pin functions, you can find more information in CLI Reference
  2. Connect to Betaflight Configurator and setup to your preferences,
  3. Test motors without propellers
  4. Have fun ;)

[!NOTE] Not all functions displayed in configurator are avalable in firmware. The rule of thumb is if you cannot change specific option in Betaflight Configurator, that means it is not supported. It usually rolls back to previous value after save.

Here are more details about how to setup.

Wiring diagrams

ESP-FC example wiring diagrams

Supported chips

Supported Interfaces

Interface ESP8266 ESP32 RP2040
UART Yes Yes Yes
I2C Yes Yes Yes
SPI - Yes Yes

Supported Receiver Protocols

Protocol ESP8266 ESP32 RP2040
PPM Yes Yes Yes
SBUS Yes Yes Yes
CRSF (ELRS) Yes Yes Yes

Supported Motor Protocols

Protocol ESP8266 ESP32 RP2040
PWM Yes Yes Yes
BRUSHED Yes Yes Yes
ONESHOT125 Yes Yes Yes
ONESHOT42 - Yes Yes
MULTISHOT - Yes Yes
DSHOT150 Yes Yes Yes
DSHOT300 Yes Yes Yes
DSHOT600 - Yes Yes

Other Protocols

Protocol ESP8266 ESP32 RP2040
MSP Yes Yes Yes
CLI Yes Yes Yes
BLACKBOX Yes Yes Yes
ESPNOW Yes Yes -

Supported Gyro devices

Device ESP8266 ESP32 RP2040
MPU6050 Yes Yes Yes
MPU6000 - Yes Yes
MPU6500 Yes Yes Yes
MPU9250 Yes Yes Yes
ICM20602 Yes Yes Yes
BMI160 Yes Yes Yes

Supported Baro devices

Device ESP8266 ESP32 RP2040
BMP180 Yes Yes Yes
BMP280 Yes Yes Yes
SPL06 Yes Yes Yes

Supported Compass devices

Device ESP8266 ESP32 RP2040
HMC5883 Yes Yes Yes
QMC5883 Yes Yes Yes
AK8963 Yes Yes Yes

Issues

You can report issues using Github tracker You can also join to our Discord Channel

Development

Todo

Licence

This project is distributed under MIT Licence. Bear in mind that:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Donations

If you like this project and you want it to be still developed, you can support me a little.