I bought the mmWave Human Detection Sensor Kit, and it works well with the default firmware on the ESP32C3. When I try to load my own code onto the ESP32, the upload completes, but the device get stuck, waiting for “USB download”:
I have narrowed the issue down to opening of the Serial1 connection, in setup():
Serial1.begin(115200);
If I comment this line out, the ESP32 run the code as expected, but of course the communication with the sensor module do not work.
I have tried with both the default sensor (Human Static Presence Module Lite), the MR60FDA1 module and the MR60BHA1 module, and the issue is the same on all 3 modules.
Do I need to use SoftwareSerial instead, or what am I doing wrong, since all the example code snippets do not work?
Hi there,
It’s a bit finicky the ESP32 , may need to press reset a couple times to get right.
FIrst be sure it’s in waiting for Download mode (DFU) before you hit upload and that the correct port is selected (they will change from DFU mode to normal)
Software serial is what you’ll need to use unless it’s connected to the second REAL serial port.
It’s not on the ESP32C3 (connections to it are on the bottom)
Pro tip: USE the SoftSerial and always NAME the PINS and Set the Word & Buad Rate BEFORE you do the “BEGIN SERIAL 1” INIT.
HTH
GL PJ
I have a GPS demo on here that uses the Softserial. Check that code also.
Hi there, these all work from the same radar wave principle,
" millimeter-wave radar sensor can accurately detect the presence of people, even with slight movements."
HTH
GL PJ