This was all done on an Asus 1001HA running Kubuntu 10.04. The
executable runs on a 701 as well.
The chip datasheet is here:
http://pdfserv.maxim-ic.com/en.....DS1621.pdf
Install build-essential, i2c-tools and libi2c-dev
The DS1621 is wired to a VGA connector as follows
vga > ds1621
5 > 4, 5, 6 & 7
9 > 8
12 > 1
15 > 2
I wired a 100nF capacitor between 4 & 8.
Just to try things out
sudo modprobe i2c-dev
sudo i2cdetect -l
Mine returns:
i2c-0 i2c intel drm CRTDDC_A I2C adapter
i2c-1 i2c intel drm LVDSDDC_C I2C adapter
sudo i2cdetect 0
I get:
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
set up continuous measurement
sudo i2cset -y 0 0x48 0xac 0x00 b
start measurements
sudo i2cset -y 0 0x48 0xee
read the temperature
sudo i2cget -y 0 0x48 0xaa
0x14
It return a hexadecimal value which is a twos-complement temperature,
20 degrees, I reckon.
Ok, that's enough for one posting, next, a program.