Water sensors¶
Only if you bought them separately
This guide describes the setup procedure of the Atlas Scientific probes in case you bought them separately. If you have purchased a Water Station, you don't need to do this.
Setup¶
Manually switching circuits to I2C mode¶
If the drivers are new normally they come configured in UART mode so we need to change them to I2C mode.
- Remove circuit from Tentacle shield.
- Put the circuit into a breadboard.
- For PH, DO, ORP and EC: Short the
PGND
pin to theTX
pin using a jumper wire. - For RTD (temperature): Short the
PRB
pin to theTX
pin using a jumper wire. - Power the device (connecting
GND
andVCC
) - Wait for LED to change from green to blue (UART→I2C) or from blue to green (I2C→>UART).
- Remove the jumper wire from the
PGND
(orPRB
respectively) pin to theTX
pin (Do this before removing power!). - Remove power (
VCC
). - Apply power (
VCC
). - The device is now in the new mode (repeat all steps to switch back to previous mode).
Official documentation
Connection to Smartcitizen Kit¶
After connecting the Tentacle 3 to the SCK power your kit and if youre connected to the shell the autodetecition message should look similar to this (depending on the connected drivers and probes):
Urban board detected
Enable Atlas Temperature
Enable Atlas PH
Enable Atlas Conductivity
Enable Atlas Specific gravity
...
Sensor calibration
Make sure to follow our sensor calibration guide for the water sensors.
Raspberry setup¶
- Install raspbian
- Enable I2C with raspi-config, reboot, upgrade.
- Install packages and reboot.
sudo apt-get install python-smbus i2c-tools
- Connect the shield with the pi off.
- Test I2C
sudo i2cdetect -y 1
- Code example https://github.com/AtlasScientific/Raspberry-Pi-sample-code/blob/master/i2c.py