Building a mini drone use ESP32

@Leon90 i think that is my device that not work.

Wich other ESP32 can work fine with Ardupilot ?

@skimans It looks like we use the same esp32 module, this is the module I use on my firefly board:


Another way, you can catch some print log from the serial port, I can help you to check the problem, it is easy to find out the problem from the printout info.

@Leon90 i send to you printout info using serial port

i have install install choosing ESP32 device and Develop option before start flash:

thanks for help

@skimans
The baudrate is not 921600, it is 115200, you first try 115200, it should be connect to missionplanner correctly;
1.Not the printout log of the missionplanner, you should use a serial port monitor software, it can catch and show the string direct from the serial port of esp32 at the begin of power on(baudrate:115200), it looks like this:


2.Your install step looks correctly.

the baudrate ae OK 115200 for install firmware and in MP.

This printlog:

Rebooting…
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
WiFi Failed!
Guru Meditation Error: Core 1 panic’ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d2ac6 PS : 0x00060430 A0 : 0x800d3099 A1 : 0x3ffb1ec0
A2 : 0x3ffb1eec A3 : 0x00000064 A4 : 0x3ffc6e10 A5 : 0x00000000
A6 : 0x00060a23 A7 : 0x00000000 A8 : 0x800d2d9c A9 : 0x3ffb1eb0
A10 : 0x3ffafed4 A11 : 0x3f400164 A12 : 0x00000006 A13 : 0x3ffafeda
A14 : 0x0000006f A15 : 0x00000021 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000068 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0xffffffff

ELF file SHA256: 0000000000000000

Backtrace: 0x400d2ac6:0x3ffb1ec0 0x400d3096:0x3ffb1ee0 0x400d39ec:0x3ffb1f10 0x400d9821:0x3ffb1f30 0x400d9f46:0x3ffb1f50 0x400da069:0x3ffb1f70 0x400d0b4d:0x3ffb1f90 0x400dad35:0x3ffb1fb0 0x400897fa:0x3ffb1fd0

@skimans It looks like your module can not startup corectly, there a WIFI Failed happen at the begining of the startup, I haven’t seem this before, I think you should check that if your module is the same with mine, you can compare the string of the module with the pic in the reply i push before.

Or you can try to do a erase before install the firmware.

@Leon90 you can indicate to me one link for test best and fine my board ESP32 ?
becouse the strings of before was in Arduino.
You can tell me another way for test my board ?

thanks

@Leon90 using Esp Tools Web i obtain:

esptool.js
Serial port WebSerial VendorID 0x10c4 ProductID 0xea60
Connecting…
Detecting chip type… ESP32
Chip is ESP32-D0WDQ6 (revision 1)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
WARNING: Unsupported crystal in use
Crystal is 40MHz
MAC: 24:0a:c4:ee:89:f0
Uploading stub…
Running stub…
Stub running…
Changing baudrate to 921600
Changed

@skimans On the Arduino IDE, there many example demo for ESP32, it looks like a WIFI failed on your board before, so you should try some demo about wifi to check if it is good on your module.

@skimans Look at this info, it can confirm that we are using the same module, I look the datasheet of my module(esp32 wroom 32), and the chip is ESP32-D0WDQ6 too, and it is look so good that when you install the firmware from ESP Tools Web:
One more thing you can try is that: use the ESP Tools Web to install the ardupilot firmware and use a serial port monitor software to catch some printout info when it startup, the printout will tell everything.

You can use this: ESPWebTool (huhn.me)

And this is a serial port monitor software: Spacehuhn Serial Terminal

hello, How can I check the task execution status in the first picture?

@Leon90 i think it’s a problem of board.
Infact after install firmware and enter in Terminal…after few seconds exits the terminal automatically

@talking-toaster You need to add some print funtion in scheduler module.

@skimans OK, Don’t spend too much time on it, find another board to do the testting.

1 Like

@Leon90 one question…wich version do you use of Mission Planner ?

@skimans It is 1.3.77

Would it be possible for you to share your code branch so I can take a look? I’d like to learn from it.

@Leon90 last question:

it’s posible use GPS module ?

thanks

@talking-toaster This is the source code file, you can use it in you project.
AP_Scheduler.cpp (19.7 KB)

@skimans Yes, I am trying a new firefly with a mini GPS module:

2 Likes