Robot Chameleon

Today my daughter and me continued to study our animal encyclopedia. We found the chameleon. I tried to explain her that some species adjust their colors for camouflage in accordance with the vision, but she did not understand, so I built a simple robot chameleon during her afternoon nap.

 

Schematic

Materials

  • Arduino Uno or Mega
  • Arduino prototype shield
  • Male pin headers
  • RGB LED
  • 3 x resistor 330R
  • GY-31 (TCS3200 breakout board)
  • 20cm Ribbon cable (8 wires)
  • Heat shrink tube
  • Ping pong ball
  • Two-component putty for the tail and head of the chameleon
  • Tin solder

Tools

  • Soldering iron
  • End-cutting pliers & scissors
  • Battery drill (5mm drill)
  • Cigarette lighter
  • Waterproof markers for the paint of the chameleon

Code

See attachment

Future ideas

  • Add temperature sensor to adjust color
  • Add capacitive touch sensor to adjust color

My daughter is very excited about the little robot chameleon and played a long time with it. She does now understand that some chameleons adjust their colors for camouflage in accordance with the vision and she learned some names of colors in different languages (German and English).

Adjusts colors for camouflage in accordance with vision

  • Actuators / output devices: RGB LED
  • Control method: autonomous
  • CPU: Arduino UNO or MEGA
  • Operating system: Windows 7
  • Power source: USB
  • Programming language: Arduino C
  • Sensors / input devices: TCS3200 color sensor
  • Target environment: indoors

This is a companion discussion topic for the original entry at https://community.robotshop.com/robots/show/robot-chameleon

Very innovative and creative

Very innovative and creative Markus Sir! Loved the chameleon and the instant colour changes!

Ashim

One day you will be able to

One day you will be able to buy an oled light fitting the size of a wall and instead of painting the living room, you just use Markus’s chameleon to pick whatever colour you feel like today.
What an awesome daddy.

Nice way to teach

Nice way to teach colors…  Great idea.

Regards,

Bill

"I built a simple robot

"I built a simple robot chameleon during her afternoon nap."

Well done Markus, very efficient and a great way to keep the little ones busy for hours :-) 

Does your daughter also understand and speak Chinese?

Yeah, she talks Chinese like

Yeah, she talks Chinese like a Chinese :slight_smile:

I need help

The code is running properly but the leds on the sensor are not flashing as seen in your video.

Please help me out at your earliest convenience.

 

Arjav.

maximum in code

Hi markus, 

Really nice project, which i love to try out.

Though i run into a problem in while compiling the code: 

‘maximum’ is not declared in this scope

I am a bit stuck here. Average.h is installed correctly…