#### aviatorbja

##### Member

I came accross some ADXL203 2 axis accelerometers. The output is very simple. 2.5 Volts is 0 g's and the sensitivity is 1000 mV/g.

I'm trying to build an inclinometer for my workshop.

The tilt angle is just asin(1/g), where the g's are in the range -1 to 1.

Using excel I've created a table for pitch angle versus volts for a total of 251 data points.

volts pitch angle

1.500 -90

1.508 -82.7

1.516 -79.7

.....etc

I thought I could use the

**lookup**function to compute the angle, but reading the manual I don't think this is possible. I suppose direct calculation is possible, but my Picaxe 20x2 cannot do ASIN, only ATAN function.

I also realize that this topic has probably been discussed at some time, but I can't seem to find it within the forums.

Does anyone have any suggestions on the easiest way to accomplish this?