C4001 Sensor problem when in case
Bestbuddyrohit 2025-12-29 01:54:56 16 Views0 Replies Hi all,
I am using the Gravity: mmWave C4001 24GHz Human Presence Detection Sensor (12 Meters, I2C & UART) sensor. It works fine when outside the case. When inside the ABS case, the energy level goes crazy and have seen values up-to 60K. Any help is highly appreciated.
Logs :
speed=-3.280 m/s, range=0.53 m, energy=40290
My settings are:
C4001 (DFRobot) connected at 0x2A
min range = 55
max range = 300
threshold range = 500
code:
c4001.setSensorMode(eSpeedMode);
/*
* min Detection range Minimum distance, unit cm, range 0.3~20m (30~2000)
* max Detection range Maximum distance, unit cm, range 2.4~20m (240~2000)
* thres Target detection threshold, 0.1 units, range 0~65535
*/
if (c4001.setDetectThres(55, 300, 500)) {
log_i("set detect threshold successfully");
}
// set Fretting Detection
c4001.setFrettingDetection( eON );
log_i("min range = %d", c4001.getTMinRange());
log_i("max range = %d", c4001.getTMaxRange());
log_i("threshold range = %d", c4001.getThresRange());
log_i("fretting detection = %d", c4001.getFrettingDetection());
log_i("");

