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!

I made one

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

Give feedback

Comments

Similar projects you might like

MannyBot365
Intermediate
  • 2,271
  • 26

Home automation system.

MannyBot365

3 members

Access Control with Arduino
Intermediate
  • 10,673
  • 13

Work in progress

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

Robot Arm Controlling with JavaScript
Intermediate
  • 572
  • 8

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.

IOT Home Automation (Node MCU + BLYNK)
Intermediate
  • 4,592
  • 13

Control home appliances over internet. This IOT project done using Node MCU ESP8266 and BLYNK app. Control devices from anywhere.

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

Full instructions

Gather data and develop algorithm to distinguish walking and running.

Indoor Fire Pathmaker
Intermediate
  • 649
  • 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