Skip to content

How to install firmware for ESP32‐DevKit,DIY

Atten/HS5TQA edited this page Jul 1, 2024 · 5 revisions

ESP32-DevKit + NiceRF LoRa1278-C1 + GNSS Ai-Thinker GP-02

ESP32 Series of SoCs Embedded, Dual-core 32-bit Microprocessor

  • Wireless features: Wi-Fi 802.11 b/g/n, Bluetooth v4.2 and Bluetooth LE Specifications
  • Programming Platforms: Arduino-ide
  • Clock Frequency: Main Frequency up to 240MHz

Onboard Functions

  • Flash: 4M
  • Driver: CP2102
  • Button: RESET + BOOT
  • Power Supply Mode: Support USB

Long Range Low Power LoRa Transceiver

  • LoRa Chip: SX1278
  • Frequency Range: 150MHz/433MHz/490 MHz(137~525MHz)
  • Sensitivity up to :-139dBm @Lora
  • Maximum output power:20dBm(100mW)
  • Low RX current:10.3mA

How to buy LoRa1278-C1 150Mhz

APRS_LoRa_VHF_DIY.


Assemble the circuit according to the picture.

APRS_LoRa_VHF_Diagram

Step 1: Download tool&firmware

Step 2: Flash download

  • Plug the USB cable of board into the computer. (install serial driver)
  • Open flash tool software (flash_download_tool_xxx.exe) show new small window and select ChipType: ESP32 ,WorkMode: Develop next click [OK].

ESP32_Flash_all

Configure the following values. bootloader.bin 0x1000 partitions.bin 0x8000 boot_app0.bin 0xe000 TTGO_LoRa32V1.bin 0x10000

  • COM: Select the COMPORT you are using.(Test find port by UnPlug and Plug USB to show new comport)
  • Click [START] button, wait for status bar to finish.
  • Push [RESET] button on board to reboot.

Step 3: Access the web service

  • First install on reboot to automatic factory reset, You can factory reset yourself by pressing and holding the [BOOT] button while the logo is displayed.

  • Set up Wi-Fi. Using a mobile phone AP mode or router access point. WiFi SSID: APRSTH Password: aprsthnetwork

  • Board auto connect to mobile phone mode or router AP, You can see IP from DHCP of router or mobile phone.

  • Open browser in the mobile phone or computer, put address at your http://IP of board and Username: admin Password: admin

  • You can log in now. You set it up according to how you use it. Web_Service

Step 4: Modify and change GPIO from diagram

Config GPIO ESP32DevKit to LoRa1278-C1

  • GPIO26 --> DIO0 ==> IRQ/DIO1 GPIO: 26
  • GPIO27 --> MOSI ==> MOSI GPIO: 27
  • GPIO14 --> NRESET ==> RESET GPIO: 14 (Active:Low)
  • GPIO18 --> NSS ==> NSS/CS GPIO: 18 (Active:Low)
  • GPIO19 --> MISO ==> MISO GPIO: 19
  • GPIO5 --> SCK ==> SCLK GPIO: 5
  • Not Use --> BUSY GPIO: -1
  • GPIO12 --> GNSS TX ==> RX GPIO: 12 [UART1 Modify], TX GPIO:-1 (Not use)

Goto System tab and click [REBOOT] button.

Mod_Service

Step 5: Config Radio LoRa module

  • Select Chip Type: SX1278
  • Frequency: 144.415Mhz, Change the frequency you want. If a warning appears, unable to enter values.Press Apply Change and click Radio tab again.
  • Band Width: 10.4Khz to 500Khz
  • Spread Factor: 8
  • RF Power: -9 to +20dBm

image

Hint: You can update new firmware next time by use firmware.bin(TTGO_LoRa32V1.bin) put to webservice at [About] tab in group box [Firmware Update]