Moa Hermansson

Moa Hermansson

Portfolio

  • About
  • Blog
  • Portfolios
Python

Smart Plants with Raspberry pi, Python

This is what I am working on right now at the course Innovative mobile services and systems. 

Together with three other project members and in collaboration with a local company we are developing the service smart plants. Using LoRa sensors we are trying to ‘bring light to’ the indoor plants at Umeå University. By connecting a raspberry pi to the LoRa sensors we will try to engage the students in how indoor plants affect us.

With this project I am using a raspberry pi, 7” touchscreen and a soil moisture sensor.

The soil moisture sensor is connected to the raspberry pi’s GPIO pins. This is how to start reading the sensors on the pi.

Python code:

import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
channel = 17
GPIO.setup(channel, GPIO.IN)
GPIO.add_event_detect(channel, GPIO.BOTH, bouncetime=300)

print(GPIO.input(channel))

Check out the github project here.

https://github.com/Moahe/PlantsPi

Related Projects

Bitcoin and blockchain, Python

November 26, 2018

Contact

  • Emailmoahe@hotmail.com
  • AddressUmeå, Sweden

Recent Posts

  • Install UmU Eduroam on Raspberry Pi

  • PlantsPi – Raspberry pi project with Python

  • Arduino Uno Getting started!

Subscribe and Follow

© Copyright 2019 Moa HermanssonPerfect Portfolio by Rara Theme. Powered by WordPress .