XIAO ESP32C3 accesses Home Assistant via ESPHome service | Seeed Studio Wiki #108
-
XIAO ESP32C3 accesses Home Assistant via ESPHome service | Seeed Studio WikiAccessing ESPHome with XIAO ESP32C3 |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 17 replies
-
I can't get this to work. After a lot of effort I have found that the xiao is sending some "garbage" to the radar sensor on boot up. It also seems that the sensor hangs and doesn't send data if it receives data before it is fully booted up. There may be a fix in a later version of the sensor firmware but I can't upgrade the firmware on my sensors, as the version I have doesn't support serial update, only updating using an expensive programmer that I don't have. I haven't yet found a way to stop the xiao sending the unwanted bytes and am still working on it. I can get it to work by powering up the sensor first and then, after a short delay, powering up the xiao. This is not a practical solution as the sensor is being powered from the same supply as the xiao. Anyone have any ideas on how to suppress the unwanted bytes from the xiao? |
Beta Was this translation helpful? Give feedback.
-
I finnally got my sensors. unfortunatly when i do it like this my ESPHome device has no entities. Does anybody has a idea why? |
Beta Was this translation helpful? Give feedback.
-
this manual has an error. it says connect D7 to TX and D6 to RX but in the xiaoesp32c3-mr24hpc1_part2.yaml it says 20 (D7) is RX and 21 (D6) is TX. |
Beta Was this translation helpful? Give feedback.
-
Only way I get it to work is to power the mmWave board up after the ESP32C3 MCU. I put a switch between the MCU and the 5v terminal on the mmWave board and then power the MCU and then switch on the mmWave board and it works. |
Beta Was this translation helpful? Give feedback.
-
Perhaps you can include a delay circuit so the mmWave board doesn't power up at the same time as the ESP32C3 MCU. Put a C capacitor between MCU GND and the mmWave board and a R resistor between the MCU 5v and the mmWave board. τ = R × C
In this circuit diagram, the 5V power supply is connected to a resistor (R) and a capacitor (C) in series. The load is connected to the junction of the resistor and capacitor. When power is applied, the capacitor begins to charge through the resistor. The time it takes for the capacitor to charge up to the supply voltage depends on the values of the resistor and capacitor. In this circuit, the values of the resistor and capacitor have been chosen to provide a delay of approximately 5 seconds. After the capacitor has charged up, it provides power to the load, which can be a sensor or other electronic device. Note that the actual delay time may vary slightly due to the tolerances of the components used. So a 5k ohm resistor and 1000μF capacitor would delay the mmWave powering up for 5 second. Might be enough? Would this work? |
Beta Was this translation helpful? Give feedback.
-
I get these errors while compiling the software. What can I do about them? In file included from src/main.cpp:112: |
Beta Was this translation helpful? Give feedback.
-
Welcome to our product documentation platform! We value user feedback and contributions, so we couldn’t be more grateful that you can help us improving the documentation. Hence, if you find obvious errors in the product documentation, or you have additional ideas and insights about using products, please contribute to us. If you need technical support, you can email it to [email protected]. If you want to discuss the product, I recommend the Seeed Studio Forum and Seeed Studio Discord Channel The "Discussion channel" in Github here is a relatively new addition and may not receive much attention. Nonetheless, we hope you find it helpful with the help of others. We will clean it up on a monthly basis. |
Beta Was this translation helpful? Give feedback.
-
got some problem when trying to flash : INFO ESPHome 2023.12.3 binary_sensor.seeed_mr24hpc1: [source :90] [someone_exist] is an invalid option for [binary_sensor.seeed_mr24hpc1]. Please check the indentation. [Reset] is an invalid option for [button.seeed_mr24hpc1]. Please check the indentation. |
Beta Was this translation helpful? Give feedback.
-
Please correct the source code : reset: should be => restart: someone_exist: should be => has_target: |
Beta Was this translation helpful? Give feedback.
-
I have following errors when tryin to istall the configuration to the XIAO ESP32C3 using esphome: Successfully installed cachecontrol-0.13.1 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 cryptography-3.4.8 filelock-3.13.1 future-0.18.3 idf-component-manager-1.4.1 idna-3.6 kconfiglib-13.7.1 msgpack-1.0.7 packaging-23.2 pycparser-2.21 pyparsing-2.3.1 pyyaml-6.0.1 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.1 urllib3-1.26.18 fatal: not a git repository (or any parent up to mount point /)
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. ========================= [FAILED] Took 608.66 seconds ========================= Someone has an idea? Stefano |
Beta Was this translation helpful? Give feedback.
Perhaps you can include a delay circuit so the mmWave board doesn't power up at the same time as the ESP32C3 MCU. Put a C capacitor between MCU GND and the mmWave board and a R resistor between the MCU 5v and the mmWave board.
τ = R × C
5 seconds = R × 1000μF
R = 5 seconds / 1000μF
R = 5000 ohms
In this circuit diagram, the 5V power supply is connected to a resistor (R) and a capacitor (C) in series. The load is connected to the junction of the resistor and capacitor. When power is applied, the capacitor begins to charge through the resistor. The time it takes for the capaci…