A story about home automation

June 01, 2015

a-story-about-home-automation  Facebook  Twitter  Google +  

relay circuits are hello word projects of electronic prototyping. Long time ago, when got my first computer i created one of them and controlled the desktop peripherals via pc software. this kind of desktop automation can really save your life if you have http://en.wikipedia.org/wiki/Attention_deficit_hyperactivity_disorder target=_blank>ADHD or something. first prototype was driven via https://en.wikipedia.org/wiki/Parallel_port target=_blank>parallel port and a visual basic application was controlling directly the motherboard resources w/o any kernel driver or something.

at the beginning, i realized the this kind of setup causing the electromagnetic interference due to mechanical relays. and eventually causing https://en.wikipedia.org/wiki/Blue_Screen_of_Death target=_blank>BSOD. someday i decided to create another relay box from scratch by using http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F877 target=_blank>PIC16F877 so relay box will be declare the it's independence, as the result we won't need to worry about bsod's. i was controlling it via https://en.wikipedia.org/wiki/Serial_port>comport and bundled another PIC controller to reset the circuit in spesific time period. with this setup device can continue to work even if microcontroller frozen or stuck which caused by http://en.wikipedia.org/wiki/Electromagnetic_interference target=_blank>EMI
Second attempt was in 2009, i met with the http://www.arduino.cc/ target=_blank>arduino in this year and created same relay box by using http://www.arduino.cc/en/Main/ArduinoBoardUno>uno board and one http://store.arduino.cc/product/T010010>relay module which purchased from ebay. i was hoping this kind of ready to use components will be completely robust and stable instead of my handmade boards.
But it's not! I still messed with EMI problems and headed to another rubbish idea. this time, provided power to +12v relays by using set of +5v small relays which connected to arduino. and one of them was bridged with a bigger relay called http://en.wikipedia.org/wiki/Contactor>contactor which designed to handle heavy electical loads. as the result, i was solved the emi problem by using three level of isolated circuits but wasted 9 relays just for 3 power outlet.
Modernization Here's the starting point of this entry. the second version (black box on the picture) still working without any problem but it's getting obsolete. making too much noise, drawing unnecessary power etc.
few weeks ago researched the http://en.wikipedia.org/wiki/Solid-state_relay target=_blank>solid state relay modules and decided to create a final version which will lasts about another 10 year. ssr relays are working like http://en.wikipedia.org/wiki/MOSFET>mosfets so they're completely emi-free. i purchased a http://www.dx.com/p/8-channel-5v-solid-state-relay-module-blue-black-green-250v-2a-213880#.VWvFE4ClyM8>relay module and another arduino board and just connected them together within one hour. then i found the enough time to focus the box design and it's firmware.
as the result, final version costs me about $35~40 plus two weeks. now it's completely silent, stable and powered directly from usb which cannot draw more than +5v ~ 500 milliamps.
Assignment another software controlling that box to turn on desktop peripherals upon pc boot and turning off them when user away from computer to save energy. actually that's not a big deal but this kind of small details really increasing the life quality and returns as motivation which required for development of more bigger things.
If interested, it's http://psychip.net/code/serialrelay.ino>source code available in http://psychip.net/devzone>devzone section.

  Most popular entries

VR Experiences #1: Oculus Rift

The 80's childs are familiar with virtual reality term. we seen this subject in the action at johnny mnemonic, the lawnmowerman etc.if you're not living in a cave, probably should know the

Stealing sneakers from NIKE

as the whole crafty geeks knows, nike has a rvsp system via twitter. they

Bytecheleby at revision

Looks like our portable shell "Bytecheleby" still useful on scene. im started to enhance it by using my newest libraries and lots of new stuff. stay connected for latest releases

Pain and Suffer inside: Displaylink Adapter

as mentioned on my recent tweets, was looking for a low cost multi-display solution about couple weeks. gaming oriented gfx cards already

Entering system level command line

I get this trick from a sysadmin friend. it allows to enter system level shell access in Windows Vista and later versions. useful for bypass UAC and ntfs file permission issues.sc create SuperC