Having fun with Arduiono

Having fun with Arduiono

ABOUT THIS PROJECT

Ever wondered how the chameleon changes its colour through the changes in environmental colours?

There’s something called Melanocyte Stimulating Hormone or MSH. If you want to dig more into this please follow this link (https://en.wikipedia.org/wiki/Melanocyte-stimulating_hormone). The stories apart, we wanted to build ambient lighting system or something like the chameleon. This looks cool and also it helps eyes. we had a NeoPixel LED strip and a spare colour sensor. So we just built our Chameleon (electronic) using Arduino (microcontroller for everyone) as the brain.

Step 1: Things You Will Need
1. Arduino Nano (any Arduino is fine) Amazon Link for Arduino Uno
2. Colour Sensor TCS3200 Amazon Link for Colour Sensor
3. NeoPixel LED Strip Amazon Link for Neo Pixel LED
4. Jumper wires and power source.

Step 2: Brief Intro to Parts

Arduino: Microcontroller which gets the RGB colour sensor data from TCS 3200 and generates the respective PWM signal to control the colour of NeoPixel LED Lights. TCS 3200 Colour Sensor: This sensor contains an array of photodiodes which respond differently to different colours hence it gives out the colour of light falling on the photodiode array. This data can be used to replicate those colours.Neo Pixel LED: This can generate a lot of colours based on the signal given to it. The name of the IC is WS2812B.

Step 3: Connecting Everything

Connection – Reaction.The connection has to be done in such a way that Arduino has to read the data from 4 different photodiodes in the TCS 3200. And reflect back those value as data to NeoPixel LEDs to replicate the same colour. 4 photodiodes on the sensors are sensitive to 4 different colour combinations. These produce current signals which are converted into frequency signals i.e I to F conversionThis is read by Arduino pins and then given as input to the NeoPixel LEDs.I don’t want to go deep into the working of sensors. This can be understood by referring the data sheets of TCS 3200 sensor.


Step 4: Coding

The project code is located for example here: https://makezine.com/projects/android-arduino-led-strip-lights/

Step 5: Voila!!! It Works!
Here it works. It’s now replicating any colours you are showing it to the sensor. Good applications are:
1. Ambient lighting for TVs and PCs, this reduces eye strain as it mimics maximum colour in your screen.
2. Room lighting
3. Mood lighting
4. You can 3D print a chameleon and place all electronics to make it as a real 3D printed chameleon.

Have fun!