I've finally got my HP03 sensor from Futurlec but I'm having a bit of a problem with the reading it's returning.
I've followed WestAust55's tutorial here: http://www.picaxeforum.co.uk/showthread.php?t=14661 . I'm using the code shown in the tutorial verbatim with an 18M2. (I think the code has been updated to reflect changes to the sensor's register addresses).
I've attached the circuit diagram I'm using. The 'scope seems to show the PWM is at the correct frequency (if I'm reading the scope correctly - maths again!).
The reading I'm getting back varies between 599.0 and 605.2
I can just about follow the code's I2C read/write operations but I'm not sure how to go about reading the 'compensation' values which are poked into the Picaxe.
Any pointers as to where I might start investigating would be appreciated
Thanks,
John.
I've followed WestAust55's tutorial here: http://www.picaxeforum.co.uk/showthread.php?t=14661 . I'm using the code shown in the tutorial verbatim with an 18M2. (I think the code has been updated to reflect changes to the sensor's register addresses).
I've attached the circuit diagram I'm using. The 'scope seems to show the PWM is at the correct frequency (if I'm reading the scope correctly - maths again!).
The reading I'm getting back varies between 599.0 and 605.2
I can just about follow the code's I2C read/write operations but I'm not sure how to go about reading the 'compensation' values which are poked into the Picaxe.
Any pointers as to where I might start investigating would be appreciated
Thanks,
John.
Attachments
-
41.4 KB Views: 53
-
12.2 KB Views: 31