DIY Chameleon Lamp

1,783

26

0

Introduction: DIY Chameleon Lamp

About: Bringing Fiction to Reality.

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.

Step 1: Gather the Material

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

Step 2: Introduction

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.

Step 3: Making the Connections

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.


Step 4: Taking Out the Diffuser

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.

Step 5: Let's Code It

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.

Step 6: Working

Anything Goes Contest

Participated in the
Anything Goes Contest

Be the First to Share

    Recommendations

    • Anything Goes Contest

      Anything Goes Contest

    Comments