Pages

Particle Photon Batman lamp

Introduction

This project is to upgrade a basic looking Batman Lamp and create a WiFi Connected lamp. The original lamp was plain white in colour and not very interesting. The idea was to add a microcontroller with WiFi capabilities and a number of RGB LEDs. This is to be controlled via a MQTT message topic. This would then allow There are a number of micros that could have been chosen such as a Raspberry Pi, ESP8266 module, mbed or any of the other Arduino boards and an addon WiFi module.

Parts

In addition, soldering, drilling and cutting tools are required. A hot melt glue gun is required to finish the lamp off.

Hardware build

The photos below show the steps involved in upgrading the lamp.

2016-05-22 10.16.30 The Batman Hero Lamp that is going to be the base for this upgrade.
2016-05-23 09.52.08 Lamp base includes space for batteries, micro USB power connector, On/Off switch and a row of white LEDs. The laser cut and etched Batman is removable, which is handy.
2016-05-23 09.52.24 The white LEDs are not very interesting.
2016-05-23 09.52.43 On the inside there are three small boards, the USB connector, switch and LED strip. For this project the LED strip is to be replaced.
2016-05-23 09.56.13 The USB socket and switch are being reused, the LEDs are removed by unsoldering the wires from the switch and USB connector.
2016-05-23 11.47.11 A short NeoPixel strip will be the replacement light source.
2016-05-23 11.59.58 A strip of 5 Neopixels fit the space perfectly.
2016-05-23 12.00.06 The holes for the original LEDs were enlarged or re-drilled with a 8mm drill bit in a drill press. A handheld drill can be used but you risk damaging the case if you’re not steady.
2016-05-23 16.43.11 A socket for the Particle Photon is soldered to a piece of stripboard. The wires to the Neopixel strip, switch and USB connector are soldered to the stripboard. Two slots are cut into the battery compartment using an electric rotary tool. The can be finished off with a small file. The stripboard is then mounted through slots cut into the base of the battery compartment. Hot melt glue was used to secure the sockets.
2016-05-23 16.43.42 Once the glue has set, the Particle Photon can be fitted into its sockets.
2016-05-23 16.44.12 The USB cable should be connected to a suitable power source. Either a dedicated USB power plug, USB hub or a laptop socket can be used. The LEDs should illuminate, first red, then blue and green. Afterwards it should settle on the currently selected Cheerlight colour.
2016-05-23 16.44.30 Testing the completed lamp.

Software

The software on the Particle Photon will subscribe to a topic on my local MQTT broker, then whatever colour is published will be used to set the colour of the lamp. Using a simple Node-RED flow, I am able to retrieve the latest Chearlights colour and publish it on the lamps MQTT topic. This then sets the lamp colour.

Bookmark this post: bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Comments are closed.