Troubleshooting

SEN0395 mmWave + ESP32C3 error

userHead Ridwan.Anhar 2024-07-01 23:09:59 237 Views1 Replies

So im trying the mmWave sensor using this ESP32C3 Board. I injeced the example code from the library with modified RX TX pin (21,20).

 

 

"

 

#include <DFRobot_mmWave_Radar.h>


 

HardwareSerial mySerial(1);

DFRobot_mmWave_Radar sensor(&mySerial);

 

int ledPin = 13;


 

void setup()

{

  Serial.begin(115200);

  mySerial.begin(115200, SERIAL_8N1, 21, 20);//RX,TX

  pinMode(ledPin, OUTPUT);

 

  sensor.factoryReset();    //Restore to the factory settings

  sensor.DetRangeCfg(0, 2);    //The detection range is as far as 9m

  sensor.OutputLatency(1, 2);

}


 

void loop()

{

  int val = sensor.readPresenceDetection();

  digitalWrite(ledPin, val);

  Serial.println(val);



 

}

 

"

 

And this is what i got from the Serial Monitor

 

 

what happened and whats wrong with my coding?

2024-07-04 00:17:32

Have you pressed the RST button of the ESP32 after uploading the code?

userHeadPic lia.ifat