STORY
Background
Today's home automation systems are expensive and often require the ability to install or modify existing hardware in the home. These two barriers to entry prohibit low-income individuals from joining the world of home automation.
My solution was to create an open source node.js server on a Raspberry Pi 2 running Windows 10 IoT Core for controlling preexisting hardware in the home without needing to make any permanent modifications. As a proof of concept, I have set up a basic home automation system in my dorm room using this node.js server.
The node.js server runs on the Raspberry Pi 2 with Windows 10 IoT Core. A Photon is used to control the actual hardware in the room. There are two ways to interact with the system:
Voice Control
When the microphone is clicked in the web browser, the Raspberry Pi 2 starts recording audio.
When the microphone is clicked again the audio is sent it to Wit.ai, a natural language API, to process speech and extract intents. The intent is then returned to the Raspberry Pi and the action to accomplish the intent is performed.
When the microphone is clicked again the audio is sent it to Wit.ai, a natural language API, to process speech and extract intents. The intent is then returned to the Raspberry Pi and the action to accomplish the intent is performed.
The voice control is not limited to just controlling hardware. You can ask for information as well. A few examples include:
"What is the temperature?"
"How many feet are in a mile?"
"What is the address of the closest Chipotle?"
"How many people are at the Ratty?"
(a dinning hall at Brown University)"Display all comedy movies"
(if you have a Kodi media server)
and many more. It is also exceedingly easy to add new functionality to the node.js server. More information about expanding functionality can be found on this project's Github page.
Control Panel
The control panel provides an interface for controlling the various hardware components in the room. It also provides a visualization of the current state of each device (in the image above the door is locked, the overhead lights are on, and the LED strip is off).
The control panel sends requests to the Raspberry Pi running Windows 10 IoT Core which then sends the Photon a message to alter a given hardware component. The control panel utilizes an API provided by the node.js server which can be used to create your own interfaces or mobile apps.
http://:3000
and enjoy!
This circuit is used to control the RGB LED strip. The circuit uses N-channel MOSFETs to change the color pins of a 5050 Common anode LED strip (depicted by a single LED in the diagram). A 12v power supply is attached to the barrel connector. The resistors attached to the gate pins of the MOSFETs are 330Ω each.
A continuous rotation servo winds and unwinds a cable to move the door handle. To unlock the door, the servo winds the cable until a magnet on the door handle trips the reed switch (magnet sensor). To lock the door, the servo unwinds the cable for 2 seconds.
A generic servo motor that rotates to one angle for turning the light switch on and another angle for turning the light switch off.
Home Automation Backend code
This is the repository for the node.js backend code that runs on the Raspberry Pi 2
Thank you for sharing! Glad to find the information.Asphalt 9 Mod Apk + Data plants vs zombies 2 mod apk for android mortal kombat x mods
ReplyDeleteThis is surely a very good blog, thanks a lot for sharing such nice information here.24 hour locksmith Atlanta
ReplyDeleteI wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. Open Mic
ReplyDeleteamazing article, it turned into exceptionally obliging! I understandably began in this and i am becoming greater acquainted thinking about it bigger! Cheers, store conflict extraordinary! control4
ReplyDeleteFirst thing we chose to do was have a house security systems strategy positioned in our residence. Ahead of, we didn’t know a good deal about home security systems organizations because we in no way actually possessed to be concerned with these kinds of problem. We requested law enforcement that we have to get in touch with plus they recommended Vivint Protection.
ReplyDeleteThis post is so informative and makes a piece of very nice information on the topic in my mind.I am visited to your blog first time and I found information which I needed. Thanks.If you are looking for Self Cleaning Door Pads in UK, then, Nanoselfclean is good choice for you.
ReplyDeleteWonderful post for us. The information you provided is very useful. Thanks for posting it and I am waiting for a more informative post like this. professional cleaning services Dublin
ReplyDeleteLawmakers have for years pushed sports betting within the Green Mountain state, however efforts to legalize haven’t gained much traction. Oklahoma gaming is dominated by Native American entities and most appear disinclined to comply with sports betting until other key issues with the state authorities are resolved. Two tribes struck sports betting offers in 2020, however those had been later invalidated, part of a bigger battle between competition gaming interests and 온라인 카지노 the government. At one point Missouri seemed like the surest bet to pass a sports betting bill in 2022, as lawmakers overtly competed with their counterparts in Kansas to get there first. The tribes, which maintain a big lobbying presence within the statehouse, have for years opposed any laws that wouldn’t give them a monopoly on sports betting.
ReplyDelete