1. 程式人生 > 其它 >DIY 2.4G Expreless PWM 5通道迷你接收機

DIY 2.4G Expreless PWM 5通道迷你接收機

1.硬體的話網上有資料,這裡著重研究軟體,怎麼去燒錄

首先只要Python執行命令安裝PIO外掛,不用VS開發環境

2.串列埠升級,接收機進入升機模式

把接收機當高頻頭用    pio run -e DIY_2400_TX_ESP8285_SX1280_via_UART -t upload

[env:DIY_2400_TX_ESP8285_SX1280_via_UART]
upload_port = com27
monitor_port = com27
monitor_speed = 115200

 

5通道刷機命令    pio run -e DIY_2400_RX_PWMP_via_UART -t upload

[env:DIY_2400_RX_PWMP_via_UART]
upload_port = com27
monitor_port = com27
monitor_speed = 115200

 

刷機日誌:

 

Compiling .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\FrameworkArduino\umm_malloc\umm_poison.c.o
C:\Users\Administrator\.platformio\packages\framework-arduinoespressif8266\cores\esp8266\mmu_iram.cpp:26:34: note: '#pragma message: ICACHE size 16K'
26 | #pragma message("ICACHE size 16K")
| ^
Archiving .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\libFrameworkArduino.a
Linking .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.elf
Retrieving maximum program size .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.elf
Checking size .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [===== ] 45.2% (used 37016 bytes from 81920 bytes)
Flash: [==== ] 37.7% (used 386128 bytes from 1023984 bytes)
Building .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.bin
Creating BIN file ".pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.bin" using "C:\Users\Administrator\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.elf"
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Use manually specified: com27
Uploading .pio\build\DIY_2400_TX_ESP8285_SX1280_via_UART\firmware.bin
esptool.py v3.0
Serial port com27
Connecting....
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 70:03:9f:1d:00:9b
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Compressed 390288 bytes to 282354...
Writing at 0x00000000... (5 %)
Writing at 0x00004000... (11 %)
Writing at 0x00008000... (16 %)
Writing at 0x0000c000... (22 %)
Writing at 0x00010000... (27 %)
Writing at 0x00014000... (33 %)
Writing at 0x00018000... (38 %)
Writing at 0x0001c000... (44 %)
Writing at 0x00020000... (50 %)
Writing at 0x00024000... (55 %)
Writing at 0x00028000... (61 %)
Writing at 0x0002c000... (66 %)
Writing at 0x00030000... (72 %)
Writing at 0x00034000... (77 %)
Writing at 0x00038000... (83 %)
Writing at 0x0003c000... (88 %)
Writing at 0x00040000... (94 %)
Writing at 0x00044000... (100 %)
Wrote 390288 bytes (282354 compressed) at 0x00000000 in 3.9 seconds (effective 793.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
=============================================================== [SUCCESS] Took 21.83 seconds ===============================================================

Environment Status Duration
----------------------------------- -------- ------------
DIY_2400_TX_ESP8285_SX1280_via_UART SUCCESS 00:00:21.835
================================================================ 1 succeeded in 00:00:21.835 ====

 

Compiling .pio\build\DIY_2400_RX_PWMP_via_UART\FrameworkArduino\umm_malloc\umm_malloc.cpp.o
Compiling .pio\build\DIY_2400_RX_PWMP_via_UART\FrameworkArduino\umm_malloc\umm_poison.c.o
C:\Users\Administrator\.platformio\packages\framework-arduinoespressif8266\cores\esp8266\mmu_iram.cpp:26:34: note: '#pragma message: ICACHE size 16K'
26 | #pragma message("ICACHE size 16K")
| ^
Archiving .pio\build\DIY_2400_RX_PWMP_via_UART\libFrameworkArduino.a
Linking .pio\build\DIY_2400_RX_PWMP_via_UART\firmware.elf
Retrieving maximum program size .pio\build\DIY_2400_RX_PWMP_via_UART\firmware.elf
Checking size .pio\build\DIY_2400_RX_PWMP_via_UART\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [===== ] 48.2% (used 39476 bytes from 81920 bytes)
Flash: [==== ] 37.5% (used 384144 bytes from 1023984 bytes)
Building .pio\build\DIY_2400_RX_PWMP_via_UART\firmware.bin
Creating BIN file ".pio\build\DIY_2400_RX_PWMP_via_UART\firmware.bin" using "C:\Users\Administrator\.platformio\packages\framework-arduinoespressif8266\bootloaders\eboot\eboot.elf" and ".pio\build\DIY_2400_RX_PWMP_via_UART\firmware.elf"
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Use manually specified: com27
Uploading .pio\build\DIY_2400_RX_PWMP_via_UART\firmware.bin
esptool.py v3.0
Serial port com27
Connecting....
Chip is ESP8285
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: 70:03:9f:1d:0a:36
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 388304 bytes to 281883...
Writing at 0x00000000... (5 %)
Writing at 0x00004000... (11 %)
Writing at 0x00008000... (16 %)
Writing at 0x0000c000... (22 %)
Writing at 0x00010000... (27 %)
Writing at 0x00014000... (33 %)
Writing at 0x00018000... (38 %)
Writing at 0x0001c000... (44 %)
Writing at 0x00020000... (50 %)
Writing at 0x00024000... (55 %)
Writing at 0x00028000... (61 %)
Writing at 0x0002c000... (66 %)
Writing at 0x00030000... (72 %)
Writing at 0x00034000... (77 %)
Writing at 0x00038000... (83 %)
Writing at 0x0003c000... (88 %)
Writing at 0x00040000... (94 %)
Writing at 0x00044000... (100 %)
Wrote 388304 bytes (281883 compressed) at 0x00000000 in 6.5 seconds (effective 475.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
============================================= [SUCCESS] Took 25.01 seconds =============================================

Environment Status Duration
------------------------- -------- ------------
DIY_2400_RX_PWMP_via_UART SUCCESS 00:00:25.009