Java教程

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

这篇关于DIY 2.4G Expreless PWM 5通道迷你接收机的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!