Well, this project is a by product. I wanted to recreate one of my projects buddy by replacing AK9753 - Human Presence Sensor with low cost 24GHz mmWave Sensor - Human Static Presence. When I was receive the sensor from Seeed, I wanted to quickly test it's accuracy to evaluate if it will fit my use case.
Unfortunately, I was not satisfied with the reading out of the box. Then I got in touch with Seeed engineers who recommended to make some adjustment to the sensor based on my room. With those changes, I got pretty good readings. Before I jump into my project, I thought it will help other makers if I document how I modified the sensor settings.
Hardware ConnectionI found it difficult to test the reading through serial monitor output because I need to stay close to the sensor. So I decided to use NeoPixel stick with LEDs to visualize the reading from distance without looking at the serial monitor.
For detail about the sensor and connection, checkout the wiki.
And connect NeoPixel to D0.
Then upload the program "XIAO_ESP32C3_Human_Presence.ino" and observe the LED color changes.
Here is the color scheme
Green - someone is present
White - no body
Red - someone stopped
Yellow - someone is moving
Blue - someone is closing in
Light blue - someone is moving away
Test the sensor with different moves. If you don't get expected result, you should consider to modify settings specially scene and sensitivity.
Modify SensorBefore you do anything, I would highly recommend you to read the user manual.
I was testing in my home office which is about 10 square meters. Suggested scenario model was 02- area detection and sensitivity 02.
const unsigned char scene_buff[10] = {0x53, 0x59, 0x05, 0x07, 0x00, 0x01, 0x02, 0xBB, 0x54, 0x43};
const unsigned char sensitivity_buff[10] = {0x53, 0x59, 0x05, 0x08, 0x00, 0x01, 0x02, 0xBC, 0x54, 0x43};
You should consult the user manual to come up with the byte array.
Once you get your byte array, update the line #23 & #24 of "MR24HPC1ConfigESP3C.ino" and flash the board. The program will communicate to MR24HPC1 sensor over serial port and set the scenario and sensitivity.
Try out different scenario model and sensitivity and find the best match according to your environment.
Demo VideoHope this helps!
Comments