this code has been forked from https://github.com/AtlasScientific/Raspberry-Pi-sample-code and is maintained here separately, optimised for Whitebox carrier boards
This is example code for Whitebox carrier boards for the Raspberry Pi platform to be used with Atlas Scientific EZO devices and third-party devices. This code is compatible with Whitebox T3 and Whitebox T5.
Full hardware documentation, quickstart guide
- for the Whitebox Tentacle T3 for Raspberry Pi: here https://www.whiteboxes.ch/docs/tentacle/t3
- for the Whitebox Tentacle T5 for Raspberry Pi: here https://www.whiteboxes.ch/docs/tentacle/t5
Follow the instructions on this page to get Raspberry Pi OS running https://www.raspberrypi.org/downloads/raspberry-pi-os/
cd ~
git clone https://github.com/whitebox-labs/whitebox-raspberry-ezo.git
Enable I2C bus on the Raspberry Pi by following this:
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
You can confirm that the setup worked and sensors are present with the sudo i2cdetect -y 1
command.
Run the sample code below:
cd ~/Raspberry-Pi-sample-code
sudo python i2c.py
When the code starts up a list of commands will be shown.
For more details on the commands & responses, please refer to the Datasheets of the Atlas Scientific Sensors.