All Projects → DroneBridge → ESP32

DroneBridge / ESP32

Licence: Apache-2.0 license
DroneBridge for ESP32. A short range wifi based telemetry link. Support for MAVLink, MSP & LTM (iNAV).

Programming Languages

c
50402 projects - #5 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ESP32

Px4 Autopilot
PX4 Autopilot Software
Stars: ✭ 5,090 (+2681.42%)
Mutual labels:  uav, drone, pixhawk, mavlink, multicopter, qgroundcontrol
Qgroundcontrol
Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
Stars: ✭ 2,026 (+1007.1%)
Mutual labels:  uav, drone, pixhawk, mavlink, ardupilot
FMT-Firmware
FMT Autopilot Embedded System
Stars: ✭ 207 (+13.11%)
Mutual labels:  uav, drone, pixhawk, mavlink, multicopter
mwptools
ground station, mission planner and tools for inav and multiwii-nav
Stars: ✭ 147 (-19.67%)
Mutual labels:  inav, msp, multiwii, ltm
Ardupilot
ArduPlane, ArduCopter, ArduRover, ArduSub source
Stars: ✭ 6,637 (+3526.78%)
Mutual labels:  uav, drone, mavlink, ardupilot
YAMSPy
Yet Another Multiwii Serial Protocol Python Interface... for Betaflight, iNAV, etc...
Stars: ✭ 47 (-74.32%)
Mutual labels:  uav, inav, msp, multiwii
iq gnc
ROS package for GNC of Ardupilot drones
Stars: ✭ 28 (-84.7%)
Mutual labels:  drone, mavlink, ardupilot
QGISFMV
QGIS Full Motion Video (FMV)
Stars: ✭ 104 (-43.17%)
Mutual labels:  uav, drone, telemetry
Gymfc
A universal flight control tuning framework
Stars: ✭ 210 (+14.75%)
Mutual labels:  uav, drone
Luatelemetry
FrSky SmartPort(S.Port), D-series, F.Port and TBS Crossfire telemetry on all Taranis and Horus transmitters
Stars: ✭ 206 (+12.57%)
Mutual labels:  uav, telemetry
Onboard Sdk
DJI Onboard SDK Official Repository
Stars: ✭ 669 (+265.57%)
Mutual labels:  uav, drone
Quadrotor
Quadrotor control, path planning and trajectory optimization
Stars: ✭ 331 (+80.87%)
Mutual labels:  uav, drone
M4Depth
Official implementation of the network presented in the paper "M4Depth: A motion-based approach for monocular depth estimation on video sequences"
Stars: ✭ 62 (-66.12%)
Mutual labels:  uav, drone
grvc-ual
An abstraction layer for unmanned aerial vehicles
Stars: ✭ 35 (-80.87%)
Mutual labels:  uav, drone
Mavigator
Virtual cockpit for UAVs
Stars: ✭ 8 (-95.63%)
Mutual labels:  uav, drone
Mrs uav system
The entry point to the MRS UAV system.
Stars: ✭ 64 (-65.03%)
Mutual labels:  uav, drone
Mavgcl
In-Flight Analysis for PX4
Stars: ✭ 96 (-47.54%)
Mutual labels:  uav, drone
olympe
Python controller library for Parrot Drones
Stars: ✭ 62 (-66.12%)
Mutual labels:  uav, drone
Faster
3D Trajectory Planner in Unknown Environments
Stars: ✭ 246 (+34.43%)
Mutual labels:  uav, drone
Gaas
Generalized Aviation: Open source autonomous aviation software platform, designed for fully autonomous drones and flying cars.
Stars: ✭ 1,377 (+652.46%)
Mutual labels:  uav, drone

DroneBridge logo

DroneBridge for ESP32

A DroneBridge enabled firmware for the popular ESP32 modules from Espressif Systems. Probably the cheapest way to communicate with your drone, UAV, UAS, ground based vehicle or whatever you may call them.

It also allows for a fully transparent serial to wifi pass through link with variable packet size (Continuous stream of data required).

DroneBridge for ESP32 is a telemetry/low data rate only solution. There is no support for cameras connected to the ESP32 since it does not support video encoding.

DroneBridge for ESP32 concept

Features

  • Bi-directional link: MAVLink, MSP & LTM
  • Affordable: ~7€
  • Up to 150m range
  • Weight: <10 g
  • Supported by: DroneBridge for Android (app), mwptools, QGroundControl, impload etc.
  • Easy to set up: Power connection + UART connection to flight controller
  • Fully configurable through easy to use web interface
  • Parsing of LTM & MSPv2 for more reliable connection and less packet loss
  • Fully transparent telemetry downlink option for continuous streams like MAVLink or and other protocol
  • Reliable, low latency, light weight
  • Upload mission etc.

ESP32 module with VCP

DroneBridge for ESP32 block diagram blackbox

Blackbox concept. UDP & TCP connections possible. Automatic UDP uni-cast of messages to port 14550 to all connected devices/stations. Allows additional clients to register for UDP. Client must send a packet with length > 0 to UDP port of ESP32.

Hardware

All ESP32 development boards will work. No additional PSRAM required. You will need a USB to serial adapter if for flashing the firmware, if your ESP32 board does not come with one. Follow the instructions of the board manufacturer when it comes to wiring the power supply lines. Some modules do not like an external 5V power input connected in addition to an USB at the same time.

Examples for boards that will work:

DroneBridge for ESP32 is tested with an DOIT ESP32 development board.

Installation/Flashing using precompiled binaries

First download the latest release from this repository. You can find them here.

There are many multiple ways on how to flash the firmware. The easy ones are explained below.

Erase the flash before flashing a new release!

All platforms: Use Espressif firmware flashing tool

Recommended

  1. Download the esp-idf for windows or linux or install via pip install esptool
  2. Connect via USB/Serial. Find out the serial port via dmesg on linux or using the device manager on windows. In this example the serial connection to the ESP32 is on COM4 (in Linux e.g. /dev/ttyUSB0).
  3. esptool.py -p COM4 erase_flash
  4. esptool.py -p COM4 -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0x10000 db_esp32.bin 0x110000 www.bin
    You might need to press the boot button on your ESP to start the upload/flash process.

Look here for more detailed information

Windows only: Use flash download tools

  1. Get it here
  2. Erase the flash of the ESP32 befor flashing a new release
    ESP32 erase flash with flash download tools
  3. Select the firmware, bootloader & partition table and set everything as below
     0x8000 partition_table/partition-table.bin
     0x1000 bootloader/bootloader.bin
     0x10000 db_esp32.bin
     0x110000 www.bin
    ESP download tool configuration
  4. Hit Start and power cycle your ESP32 after flashing

Wiring

  1. Connect the UART of the ESP32 to a 3.3V UART of your flight controller.
  2. Set the flight controller port to the desired protocol.

(Power the ESP32 module with a stable 3.3-5V power source) Check out manufacturer datasheet! Only some modules can take more than 3.3V. Follow the recommendations by the ESP32 boards manufacturer for powering the device

Defaults: UART2 (RX2, TX2 on GPIO 16, 17)

Example wiring adafruit ESP32 DevBoard

Configuration

  1. Connect to the wifi DroneBridge ESP32 with password dronebridge
  2. In your browser type: dronebridge.local (Chrome: http://dronebridge.local) or 192.168.2.1 into the address bar. You might need to disable the cellular connection to force the browser to use the wifi connection
  3. Configure as you please and hit save

DroneBridge for ESP32 web interface

Configuration Options:

  • Wifi SSID: Up to 31 character long
  • Wifi password: Up to 63 character long
  • UART baud rate: Same as you configured on your flight controller
  • GPIO TX PIN Number & GPIO RX PIN Number: The pins you want to use for TX & RX (UART). See pin out of manufacturer of your ESP32 device Flight controller UART must be 3.3V or use an inverter.
  • UART serial protocol: MultiWii based or MAVLink based - configures the parser
  • Transparent packet size: Only used with 'serial protocol' set to transparent. Length of UDP packets
  • LTM frames per packet: Buffer the specified number of packets and send them at once in one packet
  • Gateway IP address: IPv4 address you want the ESP32 access point to have

Most options require a restart/reset of ESP32 module

Use with DroneBridge for Android or QGroundControl

DroneBridge for Android app screenshot

  • Use the Android app to display live telemetry data. Mission planning capabilities for MAVLink will follow.
  • The ESP will auto broadcast messages to all connected devices via UDP to port 14550. QGroundControl should auto connect
  • Connect via TCP on port 5760 or UDP on port 14550 to the ESP32 to send & receive data with a GCS of your choice. In case of a UDP connection the GCS must send at least one packet (e.g. MAVLink heart beat etc.) to the UDP port of the ESP32 to register as an end point.

Developers

Compile

You will need the Espressif SDK: esp-idf + toolchain. Check out their website for more info and on how to set it up. The code is written in pure C using the esp-idf (no arduino libs).

This project uses the v4.3 branch of ESP-IDF

Compile and flash by running: idf.py build, idf.py flash

API

The webinterface communicates with a REST:API on the ESP32. You can use that API to set configurations not selectable via the web-interface (e.g. baud rate). It also allows you to easily integrate DroneBridge for ESP32.

To request the settings

http://dronebridge.local/api/settings/request

To request stats

http://dronebridge.local/api/system/stats

Trigger a reboot

http://dronebridge.local/api/system/reboot

Trigger a settings change: Send a valid JSON

{
  "wifi_ssid": "DroneBridge ESP32",
  "wifi_pass": "dronebridge",
  "ap_channel": 6,
  "tx_pin": 17,
  "rx_pin": 16,
  "telem_proto": 4,
  "baud": 115200,
  "msp_ltm_port": 0,
  "ltm_pp": 2,
  "trans_pack_size": 64,
  "ap_ip": "192.168.2.1"
}

to

http://dronebridge.local/api/settings/change

Testing

To test the frontend without the ESP32 run

npm install -g json-server
json-server db.json --routes routes.json

Set const ROOT_URL = "http://localhost:3000/" inside frontend/db_settings.js

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].