Pages: [1]   Go Down
Author Topic: HELP !! Arduino Board and Accelerometer Sensor  (Read 5627 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

we have a project about 4 Leds react when tilt exceeds a value. Example the led in XYZ axis. How to start the code and the schematic diagram. Thanks
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 50300
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which accelerometer?

Quote
we have a project about 4 Leds react
About 4? Not 3? Not 5? would 4.3 be close enough?

How should the LEDs react? Does exploding in anger count? Cowering in the corner?

Quote
Example the led in XYZ axis.
Most accelerometers do not have an XYZ axis. They have an X axis, a Y axis, and a Z axis. Which accelerometer do you have that has an XYZ axis? What are the other axes?

Quote
How to start the code
I shouldn't, but I will:
Code:
// include files go here

// global values go here

void setup()
{
   // stuff that happens once goes here
}

void loop()
{
   // stuff that happens over and over goes here
}

Quote
and the schematic diagram.
http://fritzing.org/
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sir, our accelerometer will be used is ADXL330 and 4 LEDS. sorry i made wrong about xyz axis. Our project will illuminate an LED in whatever direction the Arduino or the prototype tiling. To simply put, 4 leds react when tilted. Example, when tilt in y axis the LED is on, when tilt in x axis the LED is on, when tilt to xy axis which is z the LED is on. Thanks
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 50300
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is your google-fu failing you?
http://www.arduino.cc/playground/Main/ADXL330
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nope. I make a research about these and i don't see the code and schematic. Can you help us making the code and schematic? Our project familiar like these.
Logged

Pages: [1]   Go Up
Jump to: