Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dead Board?
#1
Hi,

I have a KC868-A8.

I Flashed it fine four days ago using ESP Home on windows 11.  The board is connected to a regulated switched-mode 12v supply.  I had started to program up a script to use as an aquaponics controller.  I had the following connected:

One dry contact on the first input

One TDS sensor on A1  (+4v)

One DS18B20 on S1

All was working well.  I left the board running overnight.

Came back this morning and noticed that it wasn't showing up in Home Assistant or responding to its IP address.

Power was still OK everywhere.

I have attempted to reflash using esphome webtools and using ESP flasher and your own
 tool from here:  ESP Module Flash Download Tools - Smart Home Automation | KinCony

I have rebooted and reinstalled the com port.  

I have tried from my mac.

The Serial port is showing up on USB connection on both the mac and PC.

I have tried with a different USB cable.

I have confirmed I am able to flash other esp32 chips from the PC with no problem.

I have tried using the s1 and s1 as boot buttons.

My assumption is that the board is dead unless you have other advice?

----
config for reference:
I had yet to attach the Ph probe as I was building a voltage divider this morning. Also the Ultrasonic sensor requires some extra files for the build and i had yet to but those in the right place.  
# Basic Config
esphome:
  name: "greenwall"
  friendly_name: Greenwall
esp32:
  board: esp32dev
  framework:
    type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
  encryption:
    key: !secret greenwall_api_key
   
ota:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  domain: !secret local_domain
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-E12294"
    password: "sJdgDQKbR936"
captive_portal:
web_server:
  port: 80
  auth:
    username: !secret web_server_username
    password: !secret gw_web_server_password
#ethernet:
#  type: LAN8720
#  mdc_pin: GPIO23
#  mdio_pin: GPIO18
#  clk_mode: GPIO17_OUT
#  phy_addr: 0
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a
# Individual outputs
switch:
  - platform: gpio
    name: "Circulation Pump"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Swirl Filter Pump"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Tank Fill"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Mixer"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Ph Up"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Ph Down"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Calcium"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Micronutrients"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
# Inputs
# Binary
binary_sensor:
  - platform: gpio
    name: "Tank Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Swirl Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Bio Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Tank Overflow"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true
# Digital
  - platform: gpio
    name: "a8-s3"
    pin:
      number: 32
      inverted: true
  - platform: gpio
    name: "a8-s4"
    pin:
      number: 33
      inverted: true
dallas:
  - pin: 14
sensor:
  - platform: dallas
    #address: 0x1c0000031edd2a28 #replace with your sensor's ID
    index: 0
    name: "Water Temperature"
  - platform: ultrasonic
    trigger_pin: 13
    echo_pin: 32
    name: "Water Level"
    update_interval: 1s
    accuracy_decimals: 2
    filters:
    - lambda: return (1 - x + 0.03);
    - median:
        window_size: 20
        send_every: 10
    unit_of_measurement: "m^3"
# Analog
# pins 34/35
  # https://esphome.io/components/sensor/adc.html
  - platform: adc
    pin: 34
    id: ph
    name: "pH Sensor"
    update_interval: 1s
    unit_of_measurement: pH
    # https://esphome.io/components/sensor/ind...or-filters
    filters:
      - median:
          window_size: 7
          send_every: 4
          send_first_at: 3
      # Measured voltage -> Actual pH (buffer solution)
      - calibrate_linear:
          - 0.59 -> 7.0
          - 0.71 -> 4.0
  - platform: adc
    pin: 35
    id: tds
    name: "TDS Sensor"
    update_interval: 1s
    unit_of_measurement: ppm
    # https://esphome.io/components/sensor/ind...or-filters
    filters:
      - lambda: return (x * 1000);
      - median:
          window_size: 7
          send_every: 4
          send_first_at: 3
      # Measured voltage -> Actual TDS (buffer solution)
      #- calibrate_linear:
      #    - 0.59 -> 7.0
      #    - 0.71 -> 4.0


Attached Files Image(s)
   
Reply
#2
what problem now? can't download firmware? what power supply you have used? dc12v xxA?
Reply
#3
the esp32 appears to be 'dead'

it was running fine using esphome. Now it is not responding and I am not able to flash / download any firmware.

The power supply is 150w PC power supply so 12v ~ 10A. I have a bench supply also 12v 6a.

The board shows power but I cannot flash.

The device shows up as a valid COM port but the flashing software is not able to make a connection to initialise the device
Reply
#4
can you change another USB-C cable? not use USB hub. or change another USB port of your computer.
Reply
#5
(09-22-2023, 08:20 AM)admin Wrote: can you change another USB-C cable? not use USB hub. or change another USB port of your computer.

please read my original message

i have tried:

different USB cables
different ports
different computers
reinstalling the com port


I have verified that the cable and PC works by programming a different esp32 and and esp8266


If it worked and now it doesn't.  Unless you have another suggestion to force reset / enable Flash i have to assume this is broken?

I received the board two days ago and it's been worked on on an antistatic workbench. I think there must be a defect for it to fail so soon?

I can post a video if helpful?
Reply
#6
ok, take a video send to whatsapp number: +86-15381188302
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)