Home > Projects > IOT Lighted Xmas Tree

IOT Lighted Xmas Tree

Summary of IOT Lighted Xmas Tree


This article describes an IoT project using the Arduino MKR1000 to remotely control Christmas tree lights via a REST API. The system acts as a server, responding to HTTP POST and PUT requests to toggle a relay connected to the lights. Users can control the lights through a custom mobile app built with Xamarin or directly via Postman by sending specific commands to the device's IP address, enabling energy conservation by automating light schedules.

Parts used in the IOT Lighted Xmas Tree:

  • Arduino MKR1000
  • PowerSwitch Tail II
  • Breadboard

Do you want to conserve energy and turn the Christmas tree lights on/off when not required? In IOT era, that can be done using MKR1000.

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
PowerSwitch Tail II
× 1

Software apps and online services

Arduino IDE
Arduino IDE
Xamarin
Xamarin
Visual Studio 2015
Microsoft Visual Studio 2015

Story

Quick Solutions to Questions related to IOT Lighted Xmas Tree:

  • How does the MKR1000 control the lights?
    The MKR1000 acts as a REST API server where calling the POST method initiates the relay pin and the PUT method sets the pin HIGH or LOW to turn lights on or off.
  • Can I use Postman to control the lights?
    Yes, you can use Postman by selecting the POST verb to initiate the pin and the PUT verb with /on/ or /off/ parameters to switch the lights.
  • What software is required to build the control app?
    You need Visual Studio 2015 Community Edition and the necessary Xamarin Forms extensions to run the iOS, Android, or Windows UWP app.
  • How do I configure the MKR1000 network settings?
    You must update your SSID name and password in the code before building and uploading the sketch to the MKR1000.
  • Where can I find the library needed for this project?
    The MKR1000RESTServer.zip file is available for download from GitHub to be added to the Arduino IDE libraries.
  • What happens after uploading the sketch to the MKR1000?
    The serial port monitor will print the IP address of the device, such as 192.168.0.13, which is used to access the API.
  • Which hardware components are essential for connecting the lights?
    The project requires an Arduino MKR1000, a PowerSwitch Tail II relay, and a breadboard to connect the relay and lights.
  • How do I start the app to control the lights?
    After downloading the solution and running it on a connected device, enter the IP address into the app and click Start to return results.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top