-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### Isolated EC Probe Interface for Raspberry Pi | ||
|
||
API [documentation](https://ufire.co/docs/uFire_SHT20/) has usage and examples for MicroPython. | ||
|
||
#### Running the Examples | ||
1. git clone https://github.com/u-fire/uFire_SHT20.git --depth=1 | ||
2. cd Isolated_EC/python/RaspberryPi | ||
3. sudo python3 basic.py | ||
4. sudo python3 humidity.py | ||
5. sudo python3 temperature.py |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import cmd | ||
from SHT20 import SHT20 | ||
|
||
sht20 = SHT20() | ||
|
||
class SHT20Shell(cmd.Cmd): | ||
prompt = '> ' | ||
|
||
def do_temperature(self, a): | ||
print("%.2f" %sht20.temperature()) | ||
|
||
|
||
def do_humidity(self, a): | ||
print("%.2f" %sht20.humidity()) | ||
|
||
SHT20Shell().cmdloop() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
### Isolated EC Probe Interface | ||
### SHT20 Temperature and Humidity Sensor | ||
|
||
> Monitor hydroponic nutrient levels or salinity in pools. | ||
- Electrical Conductivity in Siemens (0.5 - 20.0 mS/cm) | ||
- Total Dissolved Solids in PPM (250 - 100,000 PPM) | ||
- Salinity in PSU (2 - 12 PSU) | ||
- Temperature in Celsius/Fahrenheit (-55 - 125 C) | ||
- Electrically Isolated | ||
- Temperature range: -40 to 125 C(-40 to 257 F) | ||
- Humidity range: 0 to 100 % RH | ||
- Temperature accuracy: ± 0.5% C | ||
- Humidity accuracy: ± 5% RH | ||
- Interface: I2C | ||
- Voltage range: 2.1 - 3.6 V | ||
|
||
##### What it is | ||
### What it is | ||
|
||
An electrically isolated I2C sensor device, a waterproof temperature sensor, and an electrical conductivity probe. It measures the conductivity of a solution and converts it into Siemens (S) total dissolved solids and salinity. The firmware allows for single or dual-point calibration with temperature compensation. | ||
An SHT20 sensor in a plastic enclosure with a 1m length of cable. | ||
|
||
The board uses the [Qwiic](https://www.sparkfun.com/qwiic) Connect System for wiring, it's an easy-to-use, polarized, push-to-fit connector. No more mistaken connections or soldering header pins. | ||
The device uses the Qwiic Connect System for wiring, it's an easy-to-use, polarized, push-to-fit connector. No more mistaken connections or soldering header pins. | ||
|
||
#### Running this example | ||
From the /rust folder, type `cargo run`. You may run into permission issues and need to run the executable with sudo. `sudo ./target/debug/ufire_ec_bin`. You'll be presented with a `> ` prompt. Type `help` and you'll get a list of commands you can run to perform various tasks with the board like taking an EC or temperature measurement. | ||
### Using it | ||
|
||
There is plenty of [documentation](/docs/uFire_SHT20/) on the [specification](/docs/uFire_SHT20/#characteristics), and [setup](/docs/uFire_SHT20/#getting-started) of the sensor. | ||
|
||
#### Running this example | ||
From the /rust folder, type `cargo run`. You may run into permission issues and need to run the executable with sudo. `sudo ./target/debug/ufire_sht20_bin`. You'll be presented with a `> ` prompt. Type `help` and you'll get a list of commands you can run. | ||
|
||
### Get the board | ||
Visit [uFire.co](https://ufire.co). | ||
Visit [uFire.co](https://ufire.co). |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.