fruit-pi

module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2020 License: MIT

README

Fruit Pi

A fruiting chamber control module written for a raspberry pi written in go. Uses the following components:

  • AM2301 RH/temperature sensor
  • Sainsmart 2 channel 5V relay, although most relay modules are probably compatible with this code

Setup

This go binary uses I2C, so you'll need to enable that, and in its current implementation, it also farms out certain tasks to a Python script, meaning that you'll need to install python and verious libraries.

  • This document walks you through all things CircuitPython and enabling I2C ** Make sure that sudo i2cdetect -y 1 shows a device at address 0x48 (assuming you didn't attach the address pin on your ADS1115 to any other pins to change the address).
  • Next, you can install the ADS1115 library on top of it following these instructions.

(1) Enable I2C in sudo raspi-config > Interface options

sudo apt-get update
sudo agt-get upgrade
sudo apt-get install python3-pip
sudo pip3 install adafruit-circuitpython-lis3dh
sudo pip3 install adafruit-circuitpython-ads1x15

Directories

Path Synopsis
cmd
lib
tools/toolsfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
pkg
gpio/gpiofakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL