Open PaoloGB opened 7 years ago
I now have a script that performs the I2C operations correctly. It uses two different libraries for I2C: SMBus for writing easyi2c for reading. This should not be an issue. The sensor readings seem to make sense.
There is an option to put the HIH6130 in command mode where it is possible to write to the EEPROM and change the I2C address and set threshold alarms for the humidity. Entering command mode is tricky: you have to issue a command within 10 ms from powering up the device, so for now I am leaving those options out.
TO DO: define how we want the function to be accessible, i.e. do we want a class? Just a function? How to we poll from the main code?
A few options are available. For instance Honeywell has a temperature/humidity sensor we could use. Inerface over I2C. At this stage the main limitation we have is that we can only use components we can solder by hand (until we go for a PCB shield production but that is probably ~30/ board and a minimum of 10) so a breakout pcb is also necessary. So, shopping list:
-sensor RS 781-1368 (£6.63/chip) -pcb breakout Farnell 2474677 (£1.54/each, minimum 10) -2.2kohm -0.22 uF
Documentation.