DIY Chameleon Lamp

by Random Stuff We Make in Circuits > Arduino

2139 Views, 28 Favorites, 0 Comments

DIY Chameleon Lamp

ezgif-frame-001.jpg

Have you ever think of making a lamp which can take any colour based on its environment?

Then this DIY lamp project is an answer to that. This is an easy DIY lamp which can change its colour based on your inputs & its made with the favourite controller of all; Arduino Nano. Drop a heart if you find this instructable as a good resource.

Gather the Material

1586-00.jpg
TCS34725.jpg
LED-Bulb-Spotlight-Light-Warm-Cool-White-7W-9W-11W-13W-15W-LED-Lamp.jpg
arduino-nano-v3-board-800x800.jpg
0J10450.1200.jpg
image.jpg

All the material mentioned here is easily available in your local market as well as online stores.

  1. Adafuit Neopixel Ring
  2. TCS34725 RGB Sensor
  3. Fused/Spare 15W LED Bulb Diffuser
  4. Arduino Nano/Uno/Mega
  5. BreadBoard
  6. Jumper Cable

Introduction

ezgif.com-gif-maker (1).gif

This project is a DIY method to replicate the colour changing power of a chameleon. For this, We will have to create an electronic circuit which can take input as colour & give output as the light of the same colour.

The most important material in this project is the RGB colour sensor TCS34725. This sensor has RGB and Clear light sensing elements. An IR blocking filter, the filter means you'll get much truer colour than most sensors since humans don't see IR. The sensor also has an incredible 3,800,000:1 dynamic range with adjustable integration time and gain so it is suited for use behind darkened glass.

We will be using an Arduino Nano board to take input from the sensor, one Adafruit Neopixel Ring to output the light of the same colour & one diffuser from an old fused LED bulb to diffuse the light.

Let's move to the circuit now.

Making the Connections

DIY Chameleon Lamp.png

There are few connections only, viz; (Refer to the connections from the circuit image)

Common Connections :

  1. Connect GND of Arduino Nano to the side rail of the breadboard.
  2. Connect 5V of Arduino Nano to the side rail of the breadboard.
  3. Connect PWR of the LED ring & Vin of the TCS34725 sensor to the 5V side rail.
  4. Connect GND of the LED ring & TCS34725 sensor to the GND side rail.

Sensor Connections :

  1. Connect SDA of the sensor to pin A4 of Arduino nano.
  2. Connect SCL of the sensor to pin A5 of Arduino nano.
  3. Connect 3v3 of the sensor to pin 3v3 of Arduino nano.

LED ring Connections :

  1. Connect IN of LED ring to pin D3 of Arduino nano.

Note: Double Check the connections before powering up the device.


Taking Out the Diffuser

contenteetimes-images-edn-leds-a19-led-bulb-leds-exposed.jpg

This step is a fun part, where you have to remove the diffuser cap of the fused LED bulb. There are several ways to do this :

  1. Use a sharp tool & open the locks of the cap.
  2. Drop the bulb from a considerable height few times, the cap will loosen up automatically. (I personally like this second option as its more fun to drop it)

Once the cap is out we can program our board & start playing.

Let's Code It

Screenshot (40).png

This is an Arduino IDE sketch. You can use Arduino IDE or Fritzing to upload this code to the Arduino nano. Upload it & see the magic.

Downloads

Working

ezgif.com-gif-maker (1).gif