MOTION click detects human presence
You could call this one anti-ninja click as well—a click board
that detects human motion.
However stealthy or sneaky you might be, whatever camouflage you
might be wearing, you—as every other living person—radiate
infrared.
Once you step in the detecting range of MOTION click, the
onboard PIR500B pyroelectric infrared sensor picks up the
thermal energy you emit, the BISS0001 motion sensor controller
processes the signal, and sends an interrupt to a target MCU—
and you're caught!
You can adjust the detecting range of MOTION click by turning the
onboard potentiometer (range up to 4m). You can also turn it ON and OFF by
sending signals from the MCU through the mikroBUS™ RST pin.
Also, there's a photo resistor aboard MOTION click that enables
you to set up the sensor to work only when it's dark. There's a
jumper (zero-ohm resistor) below the photo resistor on the left
side of the board—solder it just above where it's placed by default
to activate the night-only mode.
Motion detectors like these are mostly associated with burglar
alarms… but you can also use it to make lights switch ON as soon as
you enter the room… or maybe for keeping yourself from visiting
the fridge for night-time snacks by having a system that posts
embarrassing tweets if you walk into your kitchen at the wrong
time…
Whatever you end up using it for, we recommend you start from the
Libstock example. Specs and details on the product page.
Yours sincerely,
MikroElektronika
MOTION click detects human presence
- srdjan.misic
- mikroElektronika team
- Posts: 296
- Joined: 11 Feb 2014 15:55
Re: MOTION click detects human presence
Hello!
I am using this motion click, avr v7 board and ATMega32A.
I'm trying to create a project using this Motion Click. I tried this demo code, where, as I understand, the buzzer is supposed to make a noise each time the click detects motion. Its not working correctly though. The motion click does not detect my motions at all. But when i click Port D bit 2 button the led on the motion click turns on and the buzzer buzzes. The code:
#include<built_in.h>
sbit Motion_Sens_EN at PINA.B1;
void Tone1() {
Sound_Play(659, 250); // Frequency = 659Hz, duration = 250ms
}
void main() {
DDD2_bit = 0;
Sound_Init(&PORTD,4); // Initialize sound pin
Motion_Sens_EN = 1; // Enable Motion sensor
while(1){
if (PIND.B2){ // If sensor is activated
Tone1(); // Play tone
}
}
}
May I ask what am I doing wrong? Or is the motion click, which I just purchased, damaged?
Any help would be appreciated! Thank you in advance!
I am using this motion click, avr v7 board and ATMega32A.
I'm trying to create a project using this Motion Click. I tried this demo code, where, as I understand, the buzzer is supposed to make a noise each time the click detects motion. Its not working correctly though. The motion click does not detect my motions at all. But when i click Port D bit 2 button the led on the motion click turns on and the buzzer buzzes. The code:
#include<built_in.h>
sbit Motion_Sens_EN at PINA.B1;
void Tone1() {
Sound_Play(659, 250); // Frequency = 659Hz, duration = 250ms
}
void main() {
DDD2_bit = 0;
Sound_Init(&PORTD,4); // Initialize sound pin
Motion_Sens_EN = 1; // Enable Motion sensor
while(1){
if (PIND.B2){ // If sensor is activated
Tone1(); // Play tone
}
}
}
May I ask what am I doing wrong? Or is the motion click, which I just purchased, damaged?
Any help would be appreciated! Thank you in advance!
- filip.grujcic
- Posts: 822
- Joined: 14 May 2018 08:34
Re: MOTION click detects human presence
Hello,
Could you please submit a support ticket on our helpdesk?
https://helpdesk.mikroe.com/conversation/new/3
Kind regards,
Could you please submit a support ticket on our helpdesk?
https://helpdesk.mikroe.com/conversation/new/3
Kind regards,
Filip Grujcic