PauliusPlus
Published © GPL3+

Multifunctional RGB LED Light

Create the perfect mood in your room, wake-up easily, light up your room as you enter or be alerted when someone enters your private space.

IntermediateProtip5 hours11,206
Multifunctional RGB LED Light

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Arduino Ethernet shield
×1
RGB LED module
×1
RGB LED Controller
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Cayenne
myDevices Cayenne

Story

Read more

Schematics

RGB LED light schematic

This circuit diagram show you how to connect the main components

Code

Cayenne code

C/C++
This sketch connects to the Cayenne server using an Arduino Ethernet Shield W5100
and runs the main communication loop.
//#define CAYENNE_DEBUG         // Uncomment to show debug messages
#define CAYENNE_PRINT Serial  // Comment this out to disable prints and save space
#include <CayenneEthernet.h>

// Cayenne authentication token. This should be obtained from the Cayenne Dashboard.
char token[] = "AuthenticationToken";

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

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

Credits

PauliusPlus

PauliusPlus

2 projects • 13 followers
Automation Engineer

Comments