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.