3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Wireless Accelerometer Controlled rgb-LED's

Wireless Accelerometer Controlled rgb-LED\
«
  • Dsc_1544.jpg
  • Dsc_1552.jpg
MEMS (Micro-Electro-Mechanical Systems) Accelerometers are in widespread use as tilt-sensors in mobile phones and cameras. Simple accelerometers are available both as ic-chip's and cheap development pcb-boards.
Wireless chips are also affordable and available in assembled circuits, with matched antenna-network and decoupling-caps onboard.

Hook both wireless board and accelerometer up to a microcontroller via serial interface and you have a wireless controller with nintendo-wii functions.

Then build a receiver with the same type of wireless chip and pwm-controlled rgb-LEDs, voila, you have wireless, tilt-controlled coloured room lightning.

Keep the transmitter-board level with breadboard facing up and the LED is cool blue, only blue led is active. Then tilt the transmitter in one direction and you mix in red or green depending on which direction you tilt it. Tilt all the way to 90 degrees, and you go trough all mixes of red and blue or green and blue until only red or green is active at 90 degrees tilt. Tilt a little in both x and y direction and you get a mix of all the colours. At 45degrees in all directions the light is an equal mix of red, green and blue, in other words, white light.

The parts used are available from internet hobby-electronic stores. Should be identifiable from some of the pictures.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Transmitter with accelerometer

Transmitter with accelerometer
«
  • Dsc_1545.jpg
  • Dsc_1548.jpg
  • Dsc_1546.jpg
  • Dsc_1549.jpg
The transmitter is based on the Atmel avr168 microcontroller. The convenient red board with the 168 is an arduino-board with voltage regulator and reset-circuit. The accelerometer is connected to the avr with bit-banged i2c bus, and the wireless board is connected with hardware SPI, (Serial Peripheral Interface).
The breadboard is completely wireless with the 4,8V batterypack strapped underneath.

The wireless board and the arduino wee accepts up to 9 V and have onboard linear voltage regulator, but the accelerometer needs 3,3V from the regulated rail on the wee.
« Previous StepDownload PDFView All StepsNext Step »
28 comments
Apr 4, 2011. 10:26 PMvisuallabs says:
the accelerometer you used was off ebay.com
link:http://cgi.ebay.com/ADXL330-3-Axis-3g-iMEMS-Accelerometer-Modules-/130384232195?pt=LH_DefaultDomain_0&hash=item1e5b817f03
Nov 5, 2009. 2:58 AMcamp0s says:
Hi, what is the name of the RF module board? you told about the RF chip, but I cannot find anything about the module itself, where did you take it?

Thanks :)
Oct 15, 2009. 3:46 PMflemron says:
That is brilliant!
Jan 13, 2009. 7:42 PMraykholo says:
any way to use a wiimote for the accelerometer?
May 19, 2009. 4:09 AMtroykyo says:
May 23, 2009. 12:20 PMJonas412 says:
yes you can use the wiimote if you have the BT arduino or if you have a BT enabled laptop you could via serial send the data back to the arduino and use the data to do what you want
May 23, 2009. 2:16 PMraykholo says:
sounds great, expensive, but great... now is it possible to use a BT arduino and send serial to it from the laptop over bluetooth too? (instead of just a direct usb connection... thanks
May 23, 2009. 5:46 PMJonas412 says:
the BT arduino should have all the same functionas as the usb only wirless and some extra capability too.
May 23, 2009. 6:35 PMraykholo says:
yep --- i was looking at the product page and that sounds about right...
May 19, 2009. 1:31 PMraykholo says:
sounds good i am definitely familiar with the wii chuck adapter in the link u included, but that site provided some new insight that helped me learn something new thanks
Jan 11, 2009. 6:17 PMT3h_Muffinator says:
Hey - do you mind including the actual code you used? I'm curious about the data analysis for your accelerometer. If you don't want to post it, could you e-mail it to me? (PM me for my e-mail) Thanks, -Josh
Jan 7, 2009. 4:59 AMHobby_Electronics says:
Hi: Which store do I buy boards for this project from ? Any ideas ? Thanks in advance.
Nov 18, 2008. 9:13 AMajohnstone says:
This is a really cool idea. I saw this a couple of weeks ago and decided to have a go at this as a first project. I am new to this kind of thing, electronics and micro-chip programming. I have just started a blog to document my attempt at this. So just thought I would leave a comment to acknowledge the source of inspiration for my project. Cheers.
Oct 17, 2008. 6:50 PMrasyoung says:
Is the source code available for this? I would love to look at, esp. the I2C code.
Oct 9, 2008. 1:07 PMcrizo says:
The "easier language" for arduino is actually c++ with some preprocessing. Your program would probably compile and run as-is.
Oct 11, 2008. 8:47 AMcrizo says:
I haven't been at it long, but I was very happy when I discovered this. It had been 5-6 years, and I was worried that my C/C++ was getting a little rusty. Once I started playing with the Arduino, I was able to jump right back into pointers, etc...
Oct 9, 2008. 9:09 AMMrCakes14 says:
So...I was thinking of doing (almost) exactly this (mine wasn't gonna be wireless, so touché) just last night. LOL - Every time I think of something cool, somebody beats me to it. Well done, and way cool...hopefully I can get mine off of the paper and into reality someday soon.
Oct 7, 2008. 9:17 PMalex-sharetskiy says:
so what's the 2.4 ghz antenna for?
Oct 8, 2008. 6:56 AMalex-sharetskiy says:
um, so what's the receiver for? programing? Sorry i'm a programing noob
Oct 9, 2008. 7:56 AMfrollard says:
its wireless between the accel and the light module - like a tilt remote control.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
8
Followers
2
Author:Andlier