Project tutorial
Alexa Controlled Desk Lamp

Alexa Controlled Desk Lamp © CC BY

Controlling office desk lamp with Amazon Alexa and more...

  • 631 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

"Alexa, turn on desktop lamp”

In this article I will show you details on how I built an Alexa-controlled desk lamp for my makerspace. Currently I’m able to control main office lights, desk lamp, second desk lamp and ambiental light with voice commands given to Alexa which is pretty handy when your hands are occupied.

Needed parts:

3D printing:

I desingn this lamp having in mind to be able to put it where I like and to not be in my way. By fixing a 40×40 bar betwen two walls I say I managed to do just that. Also in near futture I plan to fix on the slider a GoPro to have a on top camera for next videos. If you like my design or part of it you can find all files on my thingverse page.

Schematics:

Electric schematic is preety simple. To make it you will need a pref board and some wires for connections. Firs we will assamble everything on the table and after put the complete device inside the 3D-printed case. 

Probably you are wondering why I did not connect the NeoPixel strip directly to the ESP8266. Well, initially that was my intention, but because I was not able to get stable results with the NeoPixels connected to my NodeMCU I decided to use a bridge in between made from a spare Arduino Micro.

As you can see from the below image I try to keep a low number of wires and also assure proper venting for the device. You will need to pay high attention for the connections with the 220V or 110V. Here I’m speaking about the wires that are going to from the main plug to the 12V power supply and from the main to the relay board and after to the neon lights. Is very important to solder those wires after stripping. Loose stranded wires can be hazardous and can cause a lot of stuff (fire, electric shock, burns…) that probably you will like to avoid.

Software:

Code used for this project is on my GitHub page. As stated before project is split in two due to the issue related to NeoPixels. I’m using also blynk for non verbal control. For communicating with Alexa I was using WemoSwitch library which works great but I found several times lights on after leaving my office.  I don’t know if is a bug in Alexa app from andoid or a bug in the library. Then I try using also fauxmoESP but with no success. After readin a little on the issue list if found here the setting that was needed on Arduino IDE side to make it work. Since then I did not found any lights abnormaly switched on, so issue seem to be solved.

For blynk I’m using below layout. If you want also to use blynk as a remote control for your desk lamp make the same design like me. After don’t forget to generate from blynk a token and update the ESP8266 code with it.

Etichetat pe: 3d print alexa arduino esp8266 lamp neopixel

Code

Github
https://github.com/roroid/AlexaDeskLamp
Github
https://github.com/witnessmenow/esp8266-alexa-wemo-emulator
Bitbucket
https://bitbucket.org/xoseperez/fauxmoesp

Custom parts and enclosures

Thingiverse
https://www.thingiverse.com/thing:3246248

Schematics

Schematic
Alexa lamp bb fwrpfugl9g

Comments

Similar projects you might like

DIY Air Humidifier with Backlight Controlled by Alexa

Project tutorial by Andrii Romanenko

  • 1,303 views
  • 0 comments
  • 6 respects

Smart Pool: Alexa Controlled Pool Manager

Project tutorial by Benjamin Winiarski

  • 1,362 views
  • 2 comments
  • 7 respects

Alexa Controlled Door Sign Demo

Project tutorial by 3magku

  • 1,707 views
  • 0 comments
  • 5 respects

RFID Desk Lamp

Project tutorial by Kutluhan Aktar

  • 1,650 views
  • 0 comments
  • 3 respects

Alexa Controlled LEDs Through Raspberry Pi

Project tutorial by vincent wong

  • 5,270 views
  • 5 comments
  • 23 respects

Monocle: View & Control IP Cameras with Alexa & Arduino

Project tutorial by Monocle

  • 4,315 views
  • 2 comments
  • 12 respects
Add projectSign up / Login