Skip to content

Application that allows users to maximize their garden’s efficiency and carbon sequestration. Users can track the health of their gardens through light, temperature, and moisture sensors connected to RaspberryPis.

Notifications You must be signed in to change notification settings

My-Solar-Garden/hardware_

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

My Solar Garden - Hardware

This is the hardware repo for the My Solar Garden App. The My Solar Garden app allows users to track the health of their gardens through light, temperature, and moisture sensors connected to RaspberryPis. In this repo you will find all the necessary hardware and scripts to connect your own sensors to the My Solar Garden App.

Repos

For access to all the repos that make up the Service Oriented Architecture of this application please visit our origanization page.

Table of Contents

  1. Compatible Hardware
  2. Setup
  3. Undestanding Sensor Readings
  4. Contributors

Compatible Hardware

Setup

RaspberryPi Setup

  • git clone git@github.com:My-Solar-Garden/hardware_.git
  • Run the following on your initial set up to configure the program with the sensor IDs registered on the My Solar App
    • curl -kL dexterindustries.com/update_grovepi | bash
    • cd /home/pi/Dexter/GrovePi/Firmware
    • bash firmware_update.sh
    • sudo gem install i2c i2c-devices
    • pip install requests
    • python sensors.py: insert your sensor IDs on the command line and watch the sensors output data to the production database!
    • Sensor IDs can be found on your garden page in the My Solar Garden App

Physical Setup

  • Plug the following components to the specified ports on the RaspberryPi:
    • Port D2: Temperature and Humitidy Sensor
    • Port A0: Light Sensor
  • Plug in the RaspberryPi to a power source
  • Place the sensors near your garden

RaspberryPi Tips

  • Connect your Raspberry Pi to a monitor through an HDMI cable, a usb keyboard and connect any sensors you would like to use
  • Connect to power last, as sensors can be damaged if plugged in after the power is on.
  • Connect to your Wifi by running raspi -config and entering your Wifi's name and password.
  • Connect to your Raspberry Pi to your mac's terminal by running ssh pi@<your ip> from the command line and cd into the repo

Understanding Sensor Readings

  • Sensor readings are being posted to the production database, so any sensor readings in test/development will have to be mocked

Light Sensor:

  • no/very little light: 0
  • dim light: 30-100
  • mid-level light: 200-500
  • bright light: 500-740
  • very bright light: 740-770 (This is basically any direct sunlight on the sensor)

Temperature Sensor:

  • Returns degrees in celcius

Contributors

About

Application that allows users to maximize their garden’s efficiency and carbon sequestration. Users can track the health of their gardens through light, temperature, and moisture sensors connected to RaspberryPis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages