Project tutorial

MKR1000 Surprise Room Decoration

This project is dedicated to my parents, but you can also use it for surprise events for someone special.

  • 384 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

Project Theme

When Arduino launched this competition, I started thinking of ideas about the automation of different things. Many guys submitted projects related to Christmas trees and home automation, but suddenly an idea came to mind about parents. Our parents are our friends from childhood to older age, they sacrifice everything for us. They work hard for us, but when we grew up, we leave the nest and start our own journey. In this fast journey, many times we miss celebrating very important special events with our parents like religious festivals, weather seasons, parent's anniversary, Mother's & Father's Day, etc. due to far distances.

Now thanks to the help of the MKR1000 board, we can decorate our parents room with a disco multi-color bulb and other multi-color lights strips and wish them special occasions surprisingly no matter where we are. Thanks to Blynk for such an amazing app.

Hardware

In this project I have 4 sockets which are connected with a 5V 4-channel relay module. And the relay module is connected with MKR1000. So I have 1x disco bulb that is for my parents' marriage anniversary; I connect it to MKR1000 digital pin 10 and relay pin 4.

  • 1x red LED light strip, as red is a symbol of Love so I am going to use it on Mother's & Father's Day, and connect it to MKR1000 digital pin 9 and relay pin 3.
  • 1x RGB LED light strip to wish a happy new weather season or new year to my parents, and connect it to MKR1000 digital pin 8 and relay pin 2.
  • 1x multi-color blinking light strip for my father's & mother's birthdays, and connect it to MKR1000 digital pin 7 and relay pin 1.

Setup

Below is a picture of my custom relay box in which I used the 5V 4-channel relay module, and all sockets are connected with the relay module.

Caution: Be careful when dealing with Power it's High Power

Connect the relay module with MKR1000 digital pins 7, 8, 9, 10 respectively.

Blynk App Setup

Please scan the following QR Code to clone the MKR1000 Blynk App Sketch. Please change the Authentication Token in Arduino Code according to the app and also specificity your home router SSID & password.

If you are new to the Blynk App, then please read this article Arduino 101 BLE with Blynk App.

Blynk Sketch Interface.

Final Output

Schematics

Hardware Fritzing Sketch
Hardware modeling design.
arduino-mkr1000-romantic-room_Oc63KyRTJS.fzz

Code

Blynk Code for MKR1000 BoardArduino
/**************************************************************
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 *   Downloads, docs, tutorials: http://www.blynk.cc
 *   Blynk community:            http://community.blynk.cc
 *   Social networks:            http://www.fb.com/blynkapp
 *                               http://twitter.com/blynk_app
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 * This example shows how to use Arduino MKR1000
 * to connect your project to Blynk.
 *
 * NOTE: You may need to install WiFi101 library through the
 *       Arduino IDE Library Manager.
 *
 * Feel free to apply it to any other example. It's simple!
 *
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFi101.h>
#include <BlynkSimpleMKR1000.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  // Or specify server using one of those commands:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, server_ip, port);
}

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

Comments

Similar projects you might like

IR Home Automation on DFRobot's Relay Shield

Project tutorial by Techduino

  • 508 views
  • 0 comments
  • 5 respects

Sesame

Project showcase by gibatronic

  • 5,214 views
  • 7 comments
  • 13 respects

Laundry IFTTT Alert

Project tutorial by danvanf

  • 1,246 views
  • 0 comments
  • 5 respects

Aurdino Radar With Processing

Project in progress by Akshay6766

  • 1,653 views
  • 1 comment
  • 10 respects

Workspace Environment Monitor - enVMon

Project showcase by Team comcrazy

  • 774 views
  • 2 comments
  • 9 respects

Butterfly Alarm Clock

Project tutorial by Patrick Prescott

  • 1,071 views
  • 0 comments
  • 5 respects
Add projectSign up / Login