logo elektroda
logo elektroda
X
logo elektroda

Mill ESP32 Esphome - what is connected to GPIO35? Fluctuating voltage on a pin

redblue 297 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21745834
    redblue
    Level 11  
    Hello

    I have written a radiator soft based on ESPHome and everything even works, however something is connected to GPIO 35 of ESP32, see pictures 1 and 2. What could it be? I've given a simple code to read the voltage on the pin, it wiggles, see picture 3 "Mill WC Marcin NTC Voltage2".

    PCB with ESP32 module, power components and various connected wires
    PCB with ESP32 and connected wires inside a heater casing
    ESPHome panel with sensor data and system logs for Mill WC Marcin heater

    https://github.com/redblue-pkt/mill-esp32
  • ADVERTISEMENT
  • #2 21746162
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #4 21746217
    Anonymous
    Level 1  
  • #6 21746318
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #7 21746329
    redblue
    Level 11  
    Hex editor showing binary data from flash_dump.bin file in Okteta on Linux
    Hex view of a binary file with highlighted text strings ADC and error messages.

    You can see that the factory software is somehow doing a readout of this GPIO. The chip this path goes to is the L2145, I am basing this on this documentation.

    ESP32-WROOM-32 pinout diagram highlighting GPIO35 as ADC1_7

    Code to read GPO 35.
      - platform: adc
        pin: GPIO35
        name: ${sub_text_devicename} NTC Voltage2
        id: ${sub_esphome_name}_adc_sensor2
        icon: mdi:flash-outline
        update_interval: 30s
        attenuation: 12db
        #filters:
        #  - multiply: 3.3
        filters:
          - multiply:  0.97
          - sliding_window_moving_average:
              window_size: 15
              send_every: 5
  • ADVERTISEMENT
  • #8 21746510
    inot
    Level 38  
    It is necessary to trace where the path leads from resistor R15 so that the source of this measurement can be determined.
  • #9 21746550
    redblue
    Level 11  
    Which means I have to take the radiator apart.... again... Good.
ADVERTISEMENT