Multiple ESP32C and mmwave lite problems

I think I use version 4.4.4

I use esp home in home assistant

I have the same errors at compile. If it ends with “failed”, clean build files then compile again. The errors don’t stop it from working.

But using pins 20 and 21 that the guide recommends, means you have to disconnect and reconnect the 5v pin on the ESP32C3 while it is powered to make the sensors show readings. This has to be done every time the ESP32C3 is powered off and on again.

Instead, I switched to pins 5 and 6 and it I don’t have the error of the sensors not reporting on power on.

Thanks for your reply.

I changed the wiring to this:

and the yaml code to this:

# part 3:
uart:
  id: uart_bus
  baud_rate:  115200
  rx_pin: 5
  tx_pin: 6

Log file

[15:55:50][C][uart.idf:116]: UART Bus:
[15:55:50][C][uart.idf:117]:   Number: 0
[15:55:50][C][uart.idf:118]:   TX Pin: GPIO6
[15:55:50][C][uart.idf:119]:   RX Pin: GPIO5
[15:55:50][C][uart.idf:121]:   RX Buffer Size: 256
[15:55:50][C][uart.idf:123]:   Baud Rate: 115200 baud
[15:55:50][C][uart.idf:124]:   Data Bits: 8
[15:55:50][C][uart.idf:125]:   Parity: NONE
[15:55:50][C][uart.idf:126]:   Stop bits: 1

Still no data from the sensor. Did I do it correct?

Looks like you have RX connected to RX and TX connected to TX. Change it to RX(sensor) to TX(ESP32) and TX(sensor) to RX(ESP32)

Well that was plain stupid of me. Changed the wiring but still the same result still have to reconnect the 5v to get some data.

Also the data i’m receiving makes no sense

[16:52:14][D][text_sensor:067]: 'Standard Presence information': Sending state 'Nobody'
[16:52:14][D][R24dvd:722]: Report: someoneExists 0
[16:52:14][D][text_sensor:067]: 'Standard Sports information': Sending state 'None'
[16:52:14][D][R24dvd:729]: Report: motion_status 0
[16:52:14][D][text_sensor:067]: 'Standard moving direction': Sending state 'None'
[16:52:14][D][R24dvd:753]: Report:  moving direction  0
[16:52:47][D][text_sensor:067]: 'Standard Sports information': Sending state 'None'
[16:52:53][D][text_sensor:067]: 'Standard Presence information': Sending state 'Nobody'
[16:53:04][D][text_sensor:067]: 'Standard moving direction': Sending state 'None'
[16:53:47][D][text_sensor:067]: 'Standard Sports information': Sending state 'None'
[16:53:53][D][text_sensor:067]: 'Standard Presence information': Sending state 'Nobody'
[16:54:04][D][text_sensor:067]: 'Standard moving direction': Sending state 'None'
[16:54:47][D][text_sensor:067]: 'Standard Sports information': Sending state 'None'
[16:54:53][D][text_sensor:067]: 'Standard Presence information': Sending state 'Nobody'
[16:55:04][D][text_sensor:067]: 'Standard moving direction': Sending state 'None'
[16:55:13][I][ota:113]: Boot seems successful, resetting boot loop counter.
[16:55:13][D][esp32.preferences:113]: Saving 1 preferences to flash...
[16:55:13][D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[16:55:47][D][text_sensor:067]: 'Standard Sports information': Sending state 'None'
[16:55:53][D][text_sensor:067]: 'Standard Presence information': Sending state 'Nobody'
[16:56:04][D][text_sensor:067]: 'Standard moving direction': Sending state 'None'

Also when I power down the ESP32C and power it up again I only get the following results.

[16:59:38][C][wifi:504]: WiFi:
[16:59:38][C][wifi:362]:   Local MAC: 34:85:18:03:21:CC
[16:59:38][C][wifi:363]:   SSID: [redacted]
[16:59:38][C][wifi:364]:   IP Address: 192.168.1.112
[16:59:38][C][wifi:366]:   BSSID: [redacted]
[16:59:38][C][wifi:367]:   Hostname: 'mmwave-sensor'
[16:59:38][C][wifi:369]:   Signal strength: -34 dB ▂▄▆█
[16:59:38][C][wifi:373]:   Channel: 1
[16:59:38][C][wifi:374]:   Subnet: 255.255.255.0
[16:59:38][C][wifi:375]:   Gateway: 192.168.1.1
[16:59:38][C][wifi:376]:   DNS1: 192.168.1.10
[16:59:38][C][wifi:377]:   DNS2: 172.30.32.1
[16:59:39][C][logger:293]: Logger:
[16:59:39][C][logger:294]:   Level: DEBUG
[16:59:39][C][logger:295]:   Log Baud Rate: 115200
[16:59:39][C][logger:296]:   Hardware UART: UART0
[16:59:39][C][captive_portal:088]: Captive Portal:
[16:59:39][C][mdns:108]: mDNS:
[16:59:39][C][mdns:109]:   Hostname: mmwave-sensor
[16:59:39][C][ota:093]: Over-The-Air Updates:
[16:59:39][C][ota:094]:   Address: mmwave-sensor.local:3232
[16:59:39][C][ota:097]:   Using Password.
[16:59:39][C][api:138]: API Server:
[16:59:39][C][api:139]:   Address: mmwave-sensor.local:6053
[16:59:39][C][api:141]:   Using noise encryption: YES

I have to reflash the ESP32C and then reconnect the 5v to get some data.

Strange. After changing the pins to 5 and 6, I don’t have to mess with the 5v pin anymore.

Did you change the code to comment out a line in?:

# Enable logging
logger:
  hardware_uart: USB_SERIAL_JTAG
  level: DEBUG

When I check logs I don’t see this line like in yours:

[16:59:39][C][logger:296]:   Hardware UART: UART0

Instead I see:

[10:09:15][C][logger:296]:   Hardware UART: USB_SERIAL_JTAG

Yes I have the exact same code.

I noticed one thing.

Right after flashing the ESP32C I get the following log:

[17:32:43][C][logger:293]: Logger:
[17:32:43][C][logger:294]:   Level: DEBUG
[17:32:43][C][logger:295]:   Log Baud Rate: 115200
[17:32:43][C][logger:296]:   Hardware UART: USB_SERIAL_JTAG
[17:32:44][C][uart.idf:116]: UART Bus:
[17:32:44][C][uart.idf:117]:   Number: 0
[17:32:44][C][uart.idf:118]:   TX Pin: GPIO6
[17:32:44][C][uart.idf:119]:   RX Pin: GPIO5
[17:32:44][C][uart.idf:121]:   RX Buffer Size: 256
[17:32:44][C][uart.idf:123]:   Baud Rate: 115200 baud
[17:32:44][C][uart.idf:124]:   Data Bits: 8
[17:32:44][C][uart.idf:125]:   Parity: NONE
[17:32:44][C][uart.idf:126]:   Stop bits: 1

When I disconnect and reconnect the power to the ESP32C I get the following log

[17:39:20][C][logger:293]: Logger:
[17:39:20][C][logger:294]:   Level: DEBUG
[17:39:20][C][logger:295]:   Log Baud Rate: 115200
[17:39:20][C][logger:296]:   Hardware UART: UART0

That’s one part of the problem I think. I got a second ESP32C to see if there is any difference. There is not both XIAO boards have the same problem. I also got a second mmwave sensor. I will hook it up tomorrow to see if it makes any difference.

For me won’t finish upload after cleaning build files.
Will try to start over tomorrow morning.

Can’t find anything in the mqtt logs and no usb logs on my install.

Hmm, wondering if it’s a bad Xiao. I’d delete the project from esphome and start over. That way you’ll start with a clean flash of stock over USB. Then try again.

Well I have hooked up the second mmwave sensor and that one worked fine. Also now with the connection to GPIO6 and GPIO5 the sensor start sending data as soon as the esp board get powerd.

My first mmwave sensor seems to be broken. Also the first XIAO board (both purchased directly form SeeedStudio). There seems to be a shortage on the first XIAO board between the 3.3V and ground.

I changed one thing in the yaml code (not sure if it makes any difference) and that is the board.

esp32:
  board: seeed_xiao_esp32c3
  variant: esp32c3
  framework:
    type: esp-idf

I tried your changes on my board and still no luck. Also changed cable and power source to be sure it wasn’t struggling on voltage.

The latest wiring method of pins and the .yaml file of GitHub have been updated in the wiki. You can look at the latest wiki article and try again.
XIAO ESP32C3 accesses Home Assistant via ESPHome service | Seeed Studio Wiki

1 Like

Hi!!

I have some problem

What specific problem did you encounter?

For me it’s still mmwave lite not talking to the esp32c3.

Tried different pins and also tried flashing the new firmware but it just doesn’t want communicate with esp32c3 or usb to uart.

1 Like

Igual problem… canto get working on homeassist
Cant receive any data from the sensor on esp32C3

Can you confirm that you have updated the .yaml file and changed the pins to D2/D3 as instructed by the new Wiki?

Which specific step are you having problems with?
You can describe your problem in detail so that we can better solve it for you.

Yaml updated as well as the new pins soldered on. The firmware won’t flash to the mmwave lite using a usb uart.

Same issues here. The sensor doesn’t seem to communicate with the Xiao