Replies: 2 comments 6 replies
-
You need a device driver for this chip. If you look at Sparkfun's Arduino library you'll see it comprises a substantial C++ program. This needs to be translated to MicroPython. Unless, of course, someone has already done this. |
Beta Was this translation helpful? Give feedback.
-
Appreciate the help guys. I just watched a great little video on i2c and temperature sensors. It looks as though getting the temperature and humidity should be a matter of reading and writing bits of data from and to registers on the device using My problem is that I don't understand how to read the spec sheet properly for this sensor, I have many questions and I am guessing this forum isn't the place to fill in those gaps? Could you recommend any terms, guides or videos to watch on how to understand that kind of spec sheet? |
Beta Was this translation helpful? Give feedback.
-
So I have a SparkX PHT - SpecSheet plugged into the qwiic port of my Sparkfun ESP32 - Thing Plus C
Because I am using micropython none of their example scripts help me read the devices temperature or humidity, so I am attempting to do this step by step manually and treating it as a learning experience.
Output
Now from what I understand so far, I want to read a value from device 0x76, but I when I try
i2c.readfrom(0x76,0xA0)
I get this output
And it's clear to me I'm missing some fundamental knowledge here.
Would you mind helping me fill in the gaps here? Not just what code to write, but how to gathering the required information from the specsheet for the PHT sensor?
Please and thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions