Things used in this project

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

Wireless Outlet Controller
Intermediate
  • 104
  • 1

Full instructions

This is a controller that makes 3 connections wireless.

MannyBot365
Intermediate
  • 2,176
  • 26

Home automation system.

MannyBot365

3 members

Access Control with Arduino
Intermediate
  • 9,543
  • 12

Work in progress

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

Robot Arm Controlling with JavaScript
Intermediate
  • 454
  • 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.

Distinguish walking and running using Machine Learning
Intermediate
  • 2,518
  • 18

Full instructions

Gather data and develop algorithm to distinguish walking and running.

Indoor Fire Pathmaker
Intermediate
  • 604
  • 8

Work in progress

Dynamically create safe paths within buildings that are on fire using the information collected from indoor moving sensors.

Add projectSign up / Login