Skip to content

whitebox-labs/whitebox-raspberry-ezo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Preparing the Raspberry Pi

Install the latest Raspberry Pi OS

Follow the instructions on this page to get Raspberry Pi OS running https://www.raspberrypi.org/downloads/raspberry-pi-os/

Download sample code.

cd ~
git clone https://github.com/whitebox-labs/whitebox-raspberry-ezo.git

I2C MODE

Enable I2C bus on the Raspberry Pi

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.

Test Sensor

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.

About

Example code for Whitebox carrier boards for Raspberry Pi to be used with Atlas EZO devices

Resources

License

Stars

Watchers

Forks

Languages