ESP32-DIV icon indicating copy to clipboard operation
ESP32-DIV copied to clipboard

Main Issues and Solutions for ESP32DIV2 and Version 1.5

Open silentfox2023 opened this issue 9 months ago • 7 comments

Issues and solutions:

  1. Pay special attention to the cold soldering at the bottom of the pogopin headers, as well as the oxidation of the pads where the mainboard connects to the pogopins. These issues can easily cause failures such as the inability to initialize the NRF24 and CC1101 modules. It is highly recommended to measure whether the voltages of 3V3, 5V, CE, and CSN on the Shield meet the standard requirements. Under normal conditions, after successful initialization of NRF24 and CC1101, both CE and CSN should be at a high level, above 3V.
  2. GPIO14, used for the infrared emission tube, is also shared with the NRF24 module. Therefore, it is advisable to perform a restart after using one corresponding function before switching to other functions.
  3. The battery level detection hardware is the IP5306-I2C, not the standard IP5306. Additionally, the ADC pin GPIO34 is not connected. Furthermore, under normal hardware I2C communication, it is necessary to read the register information of the IP5306-I2C (at address 0x75), and then calculate the battery level using the dedicated formula (detailed specifications are available for the IP5306-I2C). You will need to write the corresponding reading and calculation code yourself.
  4. Charging is supported in both power-on and power-off states; charging while powered off is recommended. The power control system is dual-mode: one is a toggle switch, and the other is a tactile switch located near the toggle switch. With the toggle switch in the ON position, a long press triggers a shutdown, while a short press powers on the device.
  5. Since this project uses the ESP32-S3, it is possible to skip soldering the TYPE-C port J2 and the CP2102 UART chip. Instead, directly solder the TYPE-C port J1, and utilize the built-in USB-JTAG functionality of the ESP32-S3 for firmware flashing.
  6. One VBUS line is missing from each of the two TYPE-C ports. Although this does not affect basic usage, there is a potential risk when the current exceeds 1A, which may result in burning out the VBUS circuit.
  7. The NeoPixel control code has not been implemented and needs to be written independently. Note that the data pin is GPIO1, and there are 4 LEDs in total. Additionally, the buzzer will activate upon receiving a SubGHz signal.
  8. The LED on the Shield lights up when the 5V power supply is normal. If it fails to light up, check the pogopin connections with the ESP32-DIV2 mainboard. This 5V power supply is exclusively for the infrared emission tube.

Regarding Compilation and Flashing:

1.The Arduino IDE needs to be installed, with the downloaded ESP32 board manager at version 2.0.10. Copy the author-modified platform.txt file to the directory C:\Users\Username\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10 and replace the original platform.txt file there. 2.The libraries used in the Arduino IDE must be the author-provided versions of SmartRC-CC1101-Driver-Lib, arduinoFFT and TFT_eSPI. Other required libraries include Adafruit_NeoPixel, ArduinoJson, XPT2046_Touchscreen, RF24, PCF8574_library, rc-switch, NimBLE-Arduino, IRremoteESP8266, IRRemoteESP32 and so on.

I've now fixed all the major issues with my ESP32DIV2, including the IR send and receive functions, RGB LED functionality, inaccurate battery level monitoring, as well as optimized some features in the SubGHz and Bluetooth menus. Feel free to discuss with me.

Image

Image

silentfox2023 avatar Feb 14 '26 02:02 silentfox2023

Thank you for your help but there is no platform.txt in the repository anymore

Rubines avatar Feb 17 '26 12:02 Rubines

@silentfox2023 what did you end up doing for power??

JesseCHale avatar Feb 17 '26 18:02 JesseCHale

Thank you for your help but there is no platform.txt in the repository anymore

platform.txt

silentfox2023 avatar Feb 18 '26 07:02 silentfox2023

Thank you! Where did you get these nice dual row pogo pins ?

Rubines avatar Feb 18 '26 18:02 Rubines

It can be found at https://www.aliexpress.com/item/1005006092727099.html, but it is recommended to use ordinary surface-mount pin headers and through-hole female headers to avoid poor contact issues.

silentfox2023 avatar Feb 28 '26 00:02 silentfox2023

Hi, is your optimized version downloadable?

RoToSpLaSh avatar Mar 17 '26 21:03 RoToSpLaSh

Hi, could you share versions ofthe libraries you used? Also it seems like i can't find modified version of arduinoFFT

Mrkeisyzrk avatar Mar 29 '26 13:03 Mrkeisyzrk

Hey @JesseCHale did you ever get an answer for the battery type? I cant wait to try halehound, unfortunately I can't find anyone to assemble it in my area.

RoguePulse avatar May 31 '26 02:05 RoguePulse

@silentfox2023 what did you end up doing for power??

The IP5306 power management IC is connected via the I2C bus for battery level monitoring. Three key registers are read, the four-level battery indicators are converted into percentage values, and the exponential moving average algorithm is applied to smooth battery level fluctuations.

silentfox2023 avatar May 31 '26 06:05 silentfox2023

Hi, is your optimized version downloadable?

https://github.com/cifertech/ESP32-DIV/issues/125#issuecomment-4585896603

silentfox2023 avatar May 31 '26 06:05 silentfox2023

Thanks for telling this, can u tell me which TFT display he use & he connecter with pcb board, Share me AliExpress link directly by it.

zabiulig avatar Jun 22 '26 18:06 zabiulig