[Voyage-linux] Pressure Sensor Bosch BMP085
Joshua Anhalt
(spam-protected)
Tue Oct 23 09:34:15 HKT 2012
First, be careful, you can damage the computer if you set the wrong value to the wrong chip.
From the lm-sensors page
This is a small step-by-step example that is intended to give you an idea on how these tools can be used. Before you go on, please note that it is possible to break your hardware with these tools. Therefore you should be very careful when using them, you should know what you are doing and why you are doing it. If you don't really know what you are doing and you can't afford losing part of your hardware, please stop now.
There are several ways to accomplish what you're after. Download the data sheet for your part. It should describe the i2c bus address, how to set it, and the registers of the chip.
Assuming you want a simple user-land driver, depending on the performance you need, you can write C code or use normal unix command line tools (which could then be called from perl if that's your goal.)
Check out the i2c-dev interface documentation. (This describes how to write a user-land C program.)
http://www.kernel.org/doc/Documentation/i2c/dev-interface
And checkout the user-land command line tools from the lm-sensors project. (These are standalone user-land tools that you could call from a shell script or bash.)
http://www.lm-sensors.org/wiki/i2cToolsDocumentation
I haven't used the i2c bus on the Alix product line, but the above should apply.
Joshua
On Oct 22, 2012, at 4:22 AM, Pline Pa wrote:
> Hello!
>
> I would use an BMP085 for air pressure measuring. (sensor is ordered)
>
> I have an ALIX1.D with voyage 0.6.5
> So i could connect the sensor to J25 ( I2C ).
>
> Can anyone give me a little guidance how i can "talk" with the sensor?
>
> Must i use C, or can i also use perl?
>
> Thanks for your help!
>
> plinepa
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20121022/7447b085/attachment-0002.html>
More information about the Voyage-linux
mailing list