Go Down

Topic: Using an Arduino, an accelerometer and LEDs... (Read 1 time) previous topic - next topic

Cadet

Apr 13, 2011, 12:15 pm Last Edit: Apr 13, 2011, 03:20 pm by Cadet Reason: 1
Hi guys,

I'm a complete beginner at both programming and circuitry so I'd really like some sound advice on my project!

I'm making an 'Artist Book' on digital designs. The book itself resembles a hard drive.

I wanted to add some interactivity by having the logo on the cover light up when the user lifts it or moves it.

So far I have an accelerometer (ADXL335), 2 Voltage regulators and an Arduino uno to complete this task.

I'd like to know:

how feasible this idea is,

whether I could complete it before the beginning of May

what kind of LED's are most powerful, cost effective and require no ventilation

how I would go about coding the arduio to carry out this function.

Any advice at all would be greatly appreciated.

Thanks!

Isaac

AWOL

You'll need to read about the low-power modes, and try to choose an accelerometer with a "knock" interrupt.

Don't post your email address in a forum - not sensible.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cadet

I already have the accelerometer, voltage regulators and arduino.. So what is the 'knock' interrupts function?

Low-power modes.. Okay, how does this affect the project.. What is it?

I have no idea about forums but yes I've removed my e-mail, thanks.

AWOL

#3
Apr 13, 2011, 03:33 pm Last Edit: Apr 13, 2011, 03:36 pm by AWOL Reason: 1
Quote
I already have the accelerometer, voltage regulators and arduino.. So what is the 'knock' interrupts function?

Which accelerometer?

The knock or tap interrupt is a feature of some accelerometers that allows you to wake up some other item (like an Arduino) if the accelerometer is subjected to a sharp tap.
It is used in disk drives to force the controller to retract the heads, or in phones to perform some functions, like cancel an alarm or answer a call.

The low power modes allow your Arduino to go to sleep until woken up by, say, a tap interrupt.
Whilst in low power, they consume far less power than when running normally, so prolonging battery life.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cadet

It's a triple axis accelerometer by Breakout the code is (ADXL335)

Okay is get the tap/knock interrupt, it has it according to the manufacturer.

So low power mode is something that can be programmed e.g. using Processing for Mac?


AWOL

Quote
So low power mode is something that can be programmed e.g. using Processing for Mac

I don't understand what you mean - I thought the Arduino was going to be standalone, ie not connected to a host?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cadet

Don't you have to program it to carry out a certain function? I was told I had to use Processing to do this..

AWOL

Quote
I was told I had to use Processing to do this..

No, you use Processing if you want the PC to do something in response to input from a connected Arduino, like plot a graph based on captured data.
Are you confusing Processing with the Arduino IDE?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cadet

I guess so, I'm only repeating what I've been told but I did think it was odd that I shouldn't use the native programming software for the arduino.

I'd really just like to know how I should begin coding it to carry out this function and if the use of RGB LED's would be feasible?

AWOL

Hook the accelerometer to the analogue inputs, and get programming.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cadet

Okay, where could I find a good tutorial on how to hook the accelerometer to the arduino? I'm coming up with blanks online.

AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


AWOL

Up there, on the left, where it says "Main site" "Blog" "Playground"

Close, very close.
http://bildr.org/2011/03/adxl345-arduino/
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


Go Up