Wi-Fi Controlled Lamp

by Gursimran Singh 425 in Circuits > Microcontrollers

6580 Views, 82 Favorites, 0 Comments

Wi-Fi Controlled Lamp

5644b02567400cb7c80004ce.jpeg
5644a8a367400cb7c8000492.jpeg

Hello,here is another project I have made using micro-controller and it is "Wi-Fi Lamp".This uses wifi server to which the board is connected and the device which is used to give command to the linkit one board .I've used "blynk" app which is available for both ios as well as android devices.The setup is very simple,after it is made you just have to hold your smartphone in your hand and trigger different keys and button customized by you to change and mix colors.What you can do with this lamp:-

  1. Change colors
  2. Mix them
  3. Change brightness
  4. Set timer for the duration of lights

Here's a video of it working :-

Different Colors

DSC03824.JPG
DSC03831.JPG
DSC03822.JPG
DSC03818.JPG
DSC03819.JPG
DSC03820.JPG
DSC03823.JPG
DSC03825.JPG
DSC03813.JPG
DSC03814.JPG
DSC03815.JPG
DSC03816.JPG
DSC03821.JPG

You can see here the different colors that can be set by you and even you can customize the colors!Jump over to next steps to see how I made this!!

Things Required

DSC03769.JPG
DSC03768.JPG
DSC03770.JPG
DSC03777.JPG

We need :-

  1. 7 X Male to female jumper wires
  2. Perf board
  3. Mediatek Linkit One
  4. Wifi antenna included in linkit one box
  5. L.E.Ds (Different colors) or use RGB L.E.D
  6. USB cable
  7. Lithium ion battery (optional) it is also included in the linkit one box
  8. Glass jar
  9. Soap solution
  10. Cardboard box
  11. Solder
  12. Smartphone :-D

Tools :-

  1. Nipper
  2. Soldering iron
  3. Knife or any sharp tool to remove paint from metal objects
  4. Cutter or a pair of scissors
  5. Duct ta

Schematic and Arranging L.E.Ds

DSC03779.JPG
DSC03785.JPG
DSC03771.JPG
DSC03784.JPG
DSC03790.JPG
DSC03781.JPG
DSC03782.JPG
DSC03783.JPG

Here's a schematic of the lamp.First of all trim the terminals of all the L.E.Ds to get the jumper wires female port in easily and up to the full.Solder the negative terminal of every L.E.D to each others to make a common ground for them as we have only 3 gnd ports on linkit one board and now we only need one gnd port as well as one jumper wire for negative side of every L.E.D reducing the mess.Now to every positive terminal connect 6 jumper wires one by one.Insert the positive terminal wires to any digital port on linkit one board you can also use other ports I haven;t specified the port because we can later on customize the pin from our smartphone!!

Installing Libraries

Untitledjhgjghjhgjhjhgjh.png
Untitledjhgjghjhgjhjhgjhhjkhjh.png
gkjkhkjhkjk.png
m,m,mn,m,.png

I think you have already downloaded Arduino IDE,if no then you can download it from www.arduino.cc,if yes then you can download the compressed file attached below and after you uncompress it then copy and paste all the 4 files to C drive>Program files arduino > libraries>and paste all there.Now open examples>blynk>boards and shiels>linkit one.After opening hold this code and move onto next step.

Installing App

Screenshot_2015-11-12-16-37-52.png
Screenshot_2015-11-12-16-39-09.png
Screenshot_2015-11-12-16-41-10.png
Screenshot_2015-11-12-18-55-56.png
Screenshot_2015-11-12-17-14-56.png

Download it from google play store or itunes store.Create your account if you are a newbie or login if you had already done it earlier.Now click on send email after filling your address.You will receiver an email and it will be confirmed by the app and then create new project and add some sliders as well as some buttons for the project.Copy the auth token sent you via email.

Sketch

DSC03786.JPG
DSC03776.JPG
kljkljklkkjljjljkllllllllllllllllllllllllll.png
lklkll.png

Open the sketch attached below Or if you had already opened the sketch in earlier step then paste the copied auth token in the specified column. And then write "define ARDUINO 150"before the code starts please see the picture where I had highlighted the line.Enter you wifi details including SSID and password and when it is done upload it to linkit one. Also attach the wifi antenna you got with the box.

Checking

DSC03788.JPG

Check if everything is running alright and if yes then move to next step!

Making Solution and Designing Jar

DSC03797.JPG

Make a soap solution to make the water milky and also remove the logos of brand and tags from the jar cap.Make you own customized design.

Arranging Everything in the Box

DSC03805.JPG

Arrange everything in the box including the antenna and also make sure that the L.E.Ds are upright and straight and also leave some space for the USB cable and if you want to use battery then also keep it inside the box.

Jar Stand

Make a hole for the Mason jar to sit on the top of box above L.E.Ds.Do some adjustments to make the jar stable on the top of box.

Power Supply

Use an ordinary charger output that is 5.0 volts and about 0.1 amps insert he USB cable there and micro USB in the port of linkit one board.

Test It One Time Again

DSC03826.JPG

Test it again.Check the following things:-

  1. L.E.Ds fall straight on the jar
  2. Power supply is continous
  3. Jar is stable on the box
  4. All L.E.Ds are glowing

That's all ,I too failed because when I checked that if all L.EDs were glowing then I found that one was not glowing so the number was reduced to 5 from 6 ,you can see both arrangements!So,it is necessary to check before we move further !!!!But now I've changed the arrangement and the L.E.Ds are working fine now!!In video I am showing the ones after being changed!!!!These were changed before being put in the box!

Done!

DSC03830.JPG

I hope you have enjoyed this tutorial !!!!

Please vote if you like!

Bye for now!

Questions and suggestions are most welcome!

Thanks!