|
Location:
Thu, 15 Apr 2004
Gumstix and I2C
One in particular is the $2 PCF8574 in DIP package (the big one we can use $0.50 radio shack chip sockets with), which gives us 8 I/O lines addressable from I2C, and an interrupt line on state change. If you want 16 bits, check out the PCF8575. An alernative, the OnSemi JLC1562, will give you 8 bits and a 6 bit DAC, in replacement of the cool interrupt line. The chip also features an analog comparator tied to 5 of the lines, so it could also become a 5 line ADC as well. A latching relay driver is also available.
I guess it didn't hurt to look .. apparently 'lm_sensors' supports the 8 and 16 bit versions of the freaking PCF8575! And better yet, its controlable under /proc/sys/dev/sensors/pcf8574-<0>-<1>/ ... this contains more information. I wonder if lm_sensors was compiled with the gumstix kernel? Cool, but still, where is my i2ccmd read/write program?!?!? For past blog entries, check out the archive on the side or click here. |
Make some extra cash with your blog too: |