microwave 2.0.0.0
|
Microwave click detects movement, thanks to the PD-V11 a 24GHz microwave motion sensor. The typical use for Microwave click is a proximity or motion detector in various applications and devices.
We provide a library for the Microwave Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Microwave Click driver.
- Click Initialization function.
microwave_err_t microwave_init( microwave_t *ctx, microwave_cfg_t *cfg );
analog_in_data_t microwave_generic_read( microwave_t *ctx );
This is an example which demonstrates the use of Microwave Click board. Microwave click reads ADC results, takes exact amount of samples, calculation of difference between taken samples and reference ADC value, and reports movement if difference is greater/lower than selected threshold value.
The demo application is composed of two sections :
Initializes the ADC and uart console where the results will be displayed. Also calculates the reference ADC value for Microwave Click board.
Reads the AD converted results and compares this results with the previously calculated reference value, taking into account the choosen threshold value which controls the sensor sensitivity. All data is being displayed on the USB UART where you can track their changes.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.