Skip to content

HeRCLab/Droneproj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69,566 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ESP32 Drone Project - ArduPilot Implementation

Project Overview

This project demonstrates a successful implementation of ArduPilot firmware on an ESP32-S3 WROOM-1 N16R8 development board. The board has been successfully flashed with ArduCopter firmware and can communicate via both WiFi and USB serial connections with ground control stations like MAVProxy and Mission Planner.

Hardware

  • Board: ESP32-S3 WROOM-1 N16R8 (Custom Board)
  • Status: Firmware flashed and fully operational
  • Features: WiFi telemetry, UART GPS support, RC outputs configured

Build Results

Successful Build: ArduCopter firmware compiled and flashed without errors
WiFi Connectivity: Creates "ardupilot-esp32" access point
Telemetry: 885 parameters loaded successfully
Ground Control: Compatible with MAVProxy and Mission Planner

Successful MAVProxy Connection

Building and Flashing

Prerequisites

  1. Install Build Dependencies (Ubuntu/Pop!_OS):

    Tools/environment_install/install-prereqs-ubuntu.sh -y
    # Re-open shell to pick up environment changes
  2. Install ESP32 Tools:

    pip3 install esptool

Build Process

  1. Configure for ESP32-S3:

    ./waf configure --board esp32s3
  2. Build ArduCopter:

    ./waf copter
  3. Flash to ESP32 (put board in bootloader mode):

    esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 build/esp32s3/bin/arducopter.bin

Build Output Location

  • Firmware: build/esp32s3/bin/arducopter.bin
  • Size: ~2.7MB binary
  • Flash Memory: Uses 16MB ESP32-S3 flash

Ground Control Station Connection

Method 1: WiFi Connection (Recommended)

  1. Connect to ESP32 WiFi Network:

    nmcli dev wifi connect "ardupilot-esp32" password "ardupilot-esp32"
  2. Launch MAVProxy:

    mavproxy.py --master=tcp:192.168.4.1:5760 --console --map
  3. Verify Connection:

    • Look for "Detected vehicle" message
    • Confirm parameter loading (885 parameters)
    • Map view should display telemetry data

Method 2: USB Serial Connection

  1. Check Serial Port:

    ls /dev/ttyACM*
  2. Connect via MAVProxy:

    mavproxy.py --master=/dev/ttyACM0 --baudrate 115200 --console --map
  3. Alternative Serial Monitoring:

    timeout 10 python3 -m serial.tools.miniterm /dev/ttyACM0 115200

Method 3: Mission Planner (Windows/Wine)

  1. Launch Mission Planner:

    mono MissionPlanner.exe
  2. Connection Options:

    • WiFi: Use TCP connection to 192.168.4.1:5760
    • USB: Select COM port and 115200 baud rate

Troubleshooting

WiFi Connection Issues:

  • Scan for available ports: nmap -Pn -p 5760,14550 192.168.4.1
  • Check if connected to ESP32 network: ifconfig wlo1

USB Serial Issues:

  • Check device permissions: sudo chmod 666 /dev/ttyACM0
  • Verify ESP32 output: timeout 5 cat /dev/ttyACM0
  • Check kernel messages: dmesg | grep -i "esp32\|ttyACM"

MAVProxy Not Starting:

  • Install dependencies: pip3 install MAVProxy pymavlink
  • Check Python path issues with matplotlib warnings (non-critical)

Expected Results

  • Flight Mode: STABILIZE (default)
  • Parameters: 885 parameters loaded
  • Telemetry: Loop rate ~192Hz (expected 400Hz)
  • Map: Live GPS coordinate display
  • Status: Vehicle detected as system ID 1

Original ArduPilot Project

Discord

Test Copter Test Plane Test Rover Test Sub Test Tracker

Test AP_Periph Test Chibios Test Linux SBC Test Replay

Test Unit Teststest size

Test Environment Setup

Cygwin Build Macos Build

Coverity Scan Build Status

Test Coverage

Autotest Status

ArduPilot is the most advanced, full-featured, and reliable open source autopilot software available. It has been under development since 2010 by a diverse team of professional engineers, computer scientists, and community contributors. Our autopilot software is capable of controlling almost any vehicle system imaginable, from conventional airplanes, quad planes, multi-rotors, and helicopters to rovers, boats, balance bots, and even submarines. It is continually being expanded to provide support for new emerging vehicle types.

The ArduPilot project is made up of:

User Support & Discussion Forums

Developer Information

Top Contributors

How To Get Involved

License

The ArduPilot project is licensed under the GNU General Public License, version 3.

Maintainers

ArduPilot is comprised of several parts, vehicles and boards. The list below contains the people that regularly contribute to the project and are responsible for reviewing patches on their specific area.

About

Drone Project with esp32 for Comp Engineer Capstone

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors