Pages: [1]   Go Down
Author Topic: I'm looking library or how to connect compass/barometer/temp - HDPM01  (Read 2198 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
I'm looking library or how to connect compass/barometer/temp to arduino
HopeRF  HDPM01
http://www.hoperf.com/sensor/compass.htm
compass is working  (part of code from this http://cineon01.medien.uni-weimar.de/elektrowiki/Pavlos_Iliopoulos )
but
I can't read Pressure and Temperarure.
p.s. sorry for my english.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13479
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

please post your code.

From the PDF:
The EEPROM and ADC is sharing the same I2C bus but with different chip address assigned. The
EEPROM chip address is set to 0xA1(in the case of read), write operation is not allowed. For AD part,
the chip address is set to 0xEE. So this module used two different addresses for calibration data and
AD converting data accessing. Calibration EEPROM data read operation is fully compatible to 24C02. 
Bus drive timing should be referred to the specification of this part as well


So the device has 3 different I2C addresses depending on which sensor you want to read. And some devices need  "subadressing" ( the EEPROM ) to get the data.

Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: