Kartick
Published © GPL3+

Motion Detector

Create an Infra-red motion detector alarm.

BeginnerShowcase (no instructions)1 hour2,040
Motion Detector

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Arduino Wifi Shield 101
Arduino Wifi Shield 101
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Motion Detector
a dual IR Transmitter-Receiver module HOA1405
×1

Software apps and online services

Cayenne
myDevices Cayenne

Story

Read more

Code

Motion Detector code

C/C++
//#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include <CayenneWiFi.h>

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = "AuthenticationToken";
// Your network name and password.
char ssid[] = "NetworkSSID";
char password[] = "NetworkPassword";

void setup()
{
	Serial.begin(9600);
	Cayenne.begin(token, ssid, password);
}

void loop()
{
	Cayenne.run();
}

Credits

Kartick

Kartick

2 projects • 3 followers

Comments