LED Straw XMAS Tree Using Arduino

cover RooQvBjzo4

A simple, original and cheap Christmas tree made with LED-illuminated plastic straws that can be controlled over WiFi.

cover RooQvBjzo4

 

 

 

 

 

 

 

 

 

 

 

Things used in this project

Hardware components

Arduino MKR1000
Arduino MKR1000
× 1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
× 1
LED (generic)
LED (generic)
× 12
Resistor 330 ohm
Resistor 330 ohm
× 12

Software apps and online services

Arduino Web Editor
Arduino Web Editor
Arduino IDE
Arduino IDE

Story

img

Finished marks

img 20170124

PCB Layout (2D/3D)

pcb

pcb

Although the code is made from the simple web server Arduino example (only works with a browser and a local IP), it’s easy to take the idea to other platforms, like Blynk, Temboo, etc.

Working

Just change the WiFi SSID and credentials in the code, and type to the browser the IP that shows up on the serial monitor when the MKR1000 establishes connection with you WiFi router. On the browser, you’ll see the 4 light mode options with its duration time and a third option to disconnect. You must wait until the mode you clicked finishes to start a new one.

  • Mode 1: Blue and Red fading
  • Mode 2: Green and Yellow fading
  • Mode 3: Fast random fading
  • Mode 4: All color flashing sequences

Custom parts and enclosures

KiCad files of MKR1000 LED XMAS tree Shield

– Schematic
– PCB layout

Schematics

Code

The code (more specifically the LED mode) can be modified as you like it and can be optimised.
It should work also with all Arduino WiFi boards/shield.

Leave a Comment

Your email address will not be published. Required fields are marked *