How does it work?
Microwave 6 Click is based on the PD-V8-S, a high-frequency microwave sensor from Ningbo Pdlux Electronic Technology. This motion sensor is a C-band Bi-Static Doppler transceiver module. It is housed in a metal can and features a built-in resonator oscillator (CRO), providing a stable operation as it improves its front signal-receiving ability and reduces its flank blind area. The module adopts a flat plane antenna suitable for wall mounting. The Microwave 6 Click detects the frequency shift between a transmitted and a received signal reflected from a moving object within the field of view of the transceiver.
The produced low-level output is amplified over the MCP6022, a rail-to-rail input/output operational amplifier from Microchip. The amplified output goes to the ADC SEL jumper, which allows you to read the data over an analog pin of the mikroBUS™ socket or the MCP3221, a low-power 12-bit A/D converter from Microchip. The jumper is set to an analog pin by default. If the option is the ADC, you can count up to 22.3ksps in I2C fast mode.
As mentioned, the Microwave 6 Click uses an analog AN pin of the mikroBUS™ socket or a standard 2-Wire I2C interface of the MCP3221 to communicate with the host MCU. The I2C of the ADC supports standard (100KHz) and fast (400KHz) modes. Depending on the ADC of the host MCU, the onboard 12-bit ADC could be a better choice. Worth noting is that the microwave sensor works on 5V.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Motion
Applications
Can be used for the development of intrusion alarms, automatic door openers, presence-sensing applications, and more
On-board modules
PD-V8-S – high-frequency microwave sensor from Ningbo Pdlux Electronic Technology
Key Features
Non-contact detection, low wireless power output, low power consumption, low cost, high sensitivity, patch antenna, additional 12-bit analog-to-digital converter, up to 22.3 ksps, uses Doppler shift phenomenon to “sense” motion, and more
Interface
Analog,I2C
Feature
ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Microwave 6 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | ADC SEL | Right | Output Signal A/D Selection AN/ADC: Left position AN, Right position ADC |
Microwave 6 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Frequency | 5.75 | 5.8 | 5.85 | GHz |
Detection Range | – | 180/360 | – | deg |
Software Support
We provide a library for the Microwave 6 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Microwave 6 Click driver.
Key functions
-
microwave6_read_raw_adc
Microwave 6 read raw ADC value function. -
microwave6_read_voltage
Microwave 6 read voltage level function. -
microwave6_set_vref
Microwave 6 set vref function.
Example Description
This example demonstrates the use of the Microwave 6 Click board™ by reading and displaying the results of AD conversion and motion detection.
void application_task ( void )
{
if ( MICROWAVE6_OK == microwave6_read_voltage( µwave6, &voltage ) )
{
if ( ( ( voltage + MICROWAVE6_THRESHOLD ) < reference ) ||
( ( voltage - MICROWAVE6_THRESHOLD ) > reference ) )
{
if ( MICROWAVE6_FLAG_SET == flag )
{
log_printf( &logger, " Motion detected!rn" );
log_printf( &logger, " Detector AN Voltage : %.3f[V]rn", voltage );
log_printf( &logger, "----------------------------------rn" );
flag = MICROWAVE6_FLAG_CLEAR;
Delay_ms( 100 );
}
}
else
{
flag = MICROWAVE6_FLAG_SET;
}
}
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Microwave6
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. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.