Things used in this project

Hardware components:
12994 02
Raspberry Pi 1 Model B+
×1
Relay
Tessel Relay Module for Tessel
×1

Code

Control water pump with Raspberry PiPython
import RPi.GPIO as GPIO       	# Import required Python libraries
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
from Tkinter import*
myGui=Tk()
while True:
	def onlamp():
		GPIO.output(7,True)
	def offlamp():
		GPIO.output(7,False)
	myGui.title("Hello")
	myGui.geometry("200x350+200+200")
	while True:
		myButton1=Button(text='on',fg='black',bg='green',command=onlamp).pack()
		myButton2=Button(text='off',fg='black',bg='green',command=offlamp).pack()
		myGui.mainloop()
	

Credits

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Build an employee check-in system with Tessel and Salesforce
Intermediate
  • 104
  • 1

Full instructions

Use a Tessel and connect the same with Salesforce consuming the Salesforce REST APIs to create an employee check-in system.

Fish feeder and watering system
Intermediate
  • 283
  • 4

Work in progress

Use express.js interface to feed the fish and water the plants while we are away on holidays.

Chameleon Monitoring System
Intermediate
  • 236
  • 4

Full instructions

Monitor temperature, UV index, pump status on misting system and drain level for my chameleon's terrarium to promote good health.

Robot Arm Controlling with JavaScript
Intermediate
  • 392
  • 7

Full instructions

In this article, you will find out how to create a Robot Arm from a toy and how to program it with JavaScript.

MannyBot365
Intermediate
  • 2,119
  • 26

Home automation system.

MannyBot365

3 members

Access Control with Arduino
Intermediate
  • 8,841
  • 12

Work in progress

Project that integrates Arduino, RTC display with I2C, RFID reader and SD card module.

Add projectSign up / Login
Respect project