This repo is a debug tool for developers to visualize the raw data of Maxustech mw series radar. MW series radar is a highly integrated signle chip motion sensor.
Interested users are welcome to join this slack group for further support.
The MW0582TR11 is a highly integrated single chip 5.8GHz microwave motion sensor developed by Maxustech. The MW0582TR11 simplifies the implementation of non-contact detection applications and is an ideal solution for smart lighting, surveillance, automation and any self-monitored radar system.
The module achieves broad sensing coverage given the well-designed 1Tx, 1Rx transceiver antenna and robust performance in anti-interference with built-in PLL. Simple programming model changes can enable a wide variety of sensor implementation (Short, Mid, Long) with the possibility of dynamic reconfiguration for implementing a multimode sensor.
MW0582TR11 is based on doppler principle. It emits 5.8GHz radio signal and collects the echo. Mixing is already done by the device and the raw data is sampled at the rate of 625Hz. If there's no motion, the raw data will stay around a constant number. However, if there's motion detected, the raw data will start to fluctuate. Users can set a threshold at the raw data for simple detection application.
Dependencies:
- Matplotlib
- Numpy
- Tkinter
python mw0582_gui.py
Dependencies:
- serialport
npm install
to install the project dependencies specified in package.json
node mwSerial.js <portName>
to capture the raw data outputRecommended serial tools include:
Baudrate at 512000
CH340/CP2102 USB-TTL adapter are recommended
For mac, coolterm
is recommended. To change the baudrate simply goto "Option-Serial Port-Baudrate(Custom)"
While using Coolterm, follow the instruction to set the terminal to Line mode. Line mode doesn't send data until enter has been pressed. Raw mode sends characters directly to the screen.
For windows, sscom32
will be a nice choice. The language is set to Chinese by default. Check the checkbox to change to english and set baudrate to 512000.
AT+PA=x
The radiated power has 7 levels (0000~0007) for developer to choose. With the bigger number the device radiated more power.AT+REVGAIN=x
The receive gain has 7 levels (0000~0007) for developer to choose. With the bigger number the device becomes more sensitive.AT+DELAY=x
The time delay represent how long VOUT stays high after the device detects object. Developers can choose number from 0001~3599 (unit in second).AT+DEBUG=x
By default the device works at normal mode, x = 0000. Developer can use x = 0002 to fetch raw radar data.AT+THRES=x
The threshold (0001~0099) represents how easy the device to trigger detection. With lower number the device is more inclined to trigger detection which could be a false alarm.Radiated power, receive gain and detection threshold have a complicated relationship and should be set probably according to your situation to ensure proper functioning of the device.