Pages: [1]   Go Down
Author Topic: HELP: tri axis Accelerometer KXPB5 to arduino pin  (Read 837 times)
0 Members and 1 Guest are viewing this topic.
Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


hello,
 i have a problem on my tri axis accelerometer i don't have idea how to use it to arduino. HELP! smiley-confuse
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1010
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this the page for the breakout board : http://www.e-gizmo.com/KIT/tri%20axis.html
The sensor is the KXPB5, made by kionix.
This is the page on the Kionix website: http://kionix.com/accelerometers/kxpb5
So it is a sensor with analog outputs, and it needs the 3.3V of the Arduino board as power supply.

I suggest to read the datasheet (twice) to try to understand how the pins should be connected.
Logged

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

will it work if i used only the ground the VDD and xyz pins like the adxl33xx..?


and is there a library for the kxpb5..?
sir i don't have idea.  smiley-neutral
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1010
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you look at the links. And did you read the datasheet of the sensor ?
I can read the datatsheet for you, and write what's in there, but you have to read it yourself.

There are two versions :
 - KXPB5-2050  (with analog outputs)
 - KXPB5-2353  (with digital interface SPI)

If the photo in your first post is the breakout board you have, you have the version with the analog outputs.
This pins are shown in Table 4 of the datasheet.
VDD = 3.3V  (the sensor is made for 3.3V but also 5V is allowed)
GND = GND
Vmux : this is a outputs, don't connect it.
S0, S1, Aux_in, PD, ST : connect to ground.
X_output, Y_output, Z_output : connecto to three analog inputs of the Arduino, like A0, A1, A2.



Next time, if you want to buy a sensor, check out these sites:
 - http://www.sparkfun.com/
 - http://adafruit.com/
« Last Edit: August 01, 2012, 07:07:32 am by Krodal » Logged

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i tried it sir. I just connect the vdd, ground, x, y,z pin. The output on the serial monitor is from 200 to 600. Is that ok sir?
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1010
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

According to the datasheet, also S0, S1, Aux_in, PD, ST should be tied to ground if they are not used.

You could tilt the sensor 90 degrees to the right, to the left, forward, backward and upside down. Do the values change ?
Logged

0
Online Online
Shannon Member
****
Karma: 162
Posts: 10471
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could use the on-chip multiplexer if you are running short of analog pins - 2 digital pins to S0 and S1 enable you to route x,y or z to the Vmux pin - so only one analog pin then needed.  That or just use 3 analog inputs for x,y,z.

Yes its very similar to the ADXL335 except that the sensitivity is 660mV/g instead of 330mV/g  (that's at 3.3V - it will be 1V/g at 5V supply since its ratiometric).
Logged

[ I won't respond to messages, use the forum please ]

Philippines
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

According to the datasheet, also S0, S1, Aux_in, PD, ST should be tied to ground if they are not used.

You could tilt the sensor 90 degrees to the right, to the left, forward, backward and upside down. Do the values change ?


The range of the output is from 200 to 600 in 3.3v, is that ok? If it is ok i have 1 problem. The smoothing smiley of the ouput.
Logged

Pages: [1]   Go Up
Jump to: