GMC1:
espeak(example):
Read more- I need something that opens lights and curtains in the morning of my room because I am so lazy.
- That's why I made this with speak it can also with me goon morning.
- GMC is under development I am also going to put a speech recognition system so that it can do what I want.
- It also wishes me it detect me in the room with the help of a PIR sensor.
- firstly you need to Rasbian(os) in pi for that go here.
- then you need to install some espeak to convert TEXT to Speech so go here to see how to install it.
- we also need to import gpiozero so do check the documentation here.
- you need to follow this image for the connection.
- RELAY1 == GPIO21(for curtains)
- RELAY2 == 2GPIO20(to fold curtains)
- RELAY3 == GPIO17(for light)
- BUTTON == GPIO3(kill button)
- PIR == GPIO4
- don't forget to connect a speaker to raspberry pi so you can hear it's audio.
from espeak import espeak
espeak.synth("I am Working")
Kill Button(example):- if some trouble happens just press the kill button and COM will shut down.
from subprocess import check_call
from gpiozero import Button
print("Press Button To Shut Down")
button = Button(3)
def shutdown():
check_call(['sudo', 'poweroff'])
if button.wait_for_press():
print("Shutting Down Machine")
sleep(5)
shutdown()
- I am also going to add SpeechRecognition to interact with voice.
- Run the program.
- then it will ask time for the Alarm.
- then it will ask for a good night call this function will close curtains and lights and wish good night. just you need to give the time when you go to bed.
- Press the button if somehow trouble happens it will shut down the computer.
- IF YOU HAVE ANY PROBLEM WITH IT THEN DO LET ME KNOW IN THE COMMENTS.
Comments
Please log in or sign up to comment.