Arduilamp

Arduino serial controlled RGB lamp + Desktop client

View project on GitHub

Arduino serial controlled RGB lamp + Desktop client.

This is a simple Arduino RGB lamp controlled using serial port. The python desktop client uses the serial port to control the RGB lamp color.

Watch final video! Arduilamp video

Arduino Sketch

arduilamp_sketch

Python desktop client

The python client is a multiplatform client that lets you communicate with Arduino using USB serial port.

  1. Edit your_arduilamp_repo_root/arduilamp-desktop-client/arduilamp.py to change the value of SERIALPORT to your serial port.
  2. Easy to run:
$ cd your_arduilamp_repo_root/arduilamp-desktop-client
$ python arduilamp.py

arduilamp_python_client

Dependencies:

Communication protocol

Writing on the serial port to make the lamp change is as easy as sending R, G, or B followed by a 0-255 value. Everytime Arduino receives a valid input it sends back the message: new value: X

> R255 // Sets the red led to its top brightness level
< new value: 255
> G128 // Sets the green led to its medium brightness level
< new value: 128
> B0 // Sets the blue led to its lowest brightness level (off)
< new value: 0

Packaging

I've used a ping pong ball as the lamp shade. Make a little hole at the bottom of the ball and insert the three leds into it.

Keep making fun stuff!