Difference: TheI2CBusAndTheSHT30TemperatureAndHumiditySensor (3 vs. 4)

Revision 42020-05-18 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 5: The I2C bus and the SHT30 Temperature and Humidity Sensor

Introduction

Line: 26 to 26
 
Changed:
<
<
I will give no further explication on how to use the driver. Please read the source code and find out yourself which methods are implemented and how to use the driver. Does it work out of the box or do we have to make some modifications? Do you find bugs?
>
>
Clone the sht30 repository:
 
Changed:
<
<
The driver is already hard-coded in the MicroPython binary and does not need to be uploaded to the ESP32 to be used.
>
>
git clone https://github.com/rsc1975/micropython-sht30.git

In order not to interfere with the SHT30 driver already installed in the MicroPython binary please rename sht30.py to mysht30.py. Then upload the driver to the ESP32 /lib directory:

ampy put mysht30.py /lib/mysht30.py

Now you can import the class with:

from mysht30 import SHT30

Once this is done you can try the examples from the repository README.md.

I will give no further explication on how to use the driver than what is given in the README.mf file. Please read the source code and find out yourself which methods are implemented and how to use the driver. Does it work out of the box or do we have to make some modifications? Do you find bugs?

  -- Uli Raich - 2020-05-14
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback