SuperHouse #26: Make your own home automation light switches

  Переглядів 98,607

SuperHouseTV

SuperHouseTV

6 років тому

* www.superhouse.tv/episodes
* www.superhouse.tv/26-make-you...
In the last episode I showed you how to make an Arduino based, rack-mount home automation light switch controller. This time I'm showing you how to make the switches themselves.
More online documentation will follow soon: I'm about to jump on a plane to China so I'm starting this upload before I leave, and I'll have to do the rest later!
SuperHouse:
- www.superhouse.tv
- / superhousetv
- / superhousetv
Jonathan Oxer:
- / jonoxer
- / jonoxer
Please support me on Patreon for the opportunity to win prizes and receive exclusive discount codes: / superhouse

КОМЕНТАРІ: 138
@Softouch468
@Softouch468 6 років тому
Hi Jonathan, the level of details on your videos are amazing. The reason why I watch them. Thanks.
@f2.8vidz4
@f2.8vidz4 6 років тому
.. I own a 1892 farmhouse in 🇨🇦 and it still has the original push button switches for the lights... It’s amazing to see it come full circle ⭕️ again Cheers
@Dr.Stein99
@Dr.Stein99 6 років тому
Wow, impressive! I have to watch this a few times. Found it by accident. Thank you
@deeperklabs
@deeperklabs 6 років тому
i just completed watching all your videos in one go, so amazed to see the progress you've gone though. can't wait for your next upload.
@deeperklabs
@deeperklabs 6 років тому
will start watching the other playlists very soon! haha
@AJax2012
@AJax2012 6 років тому
This is awesome...Maybe, if I ever get my own place, I'll get a ton of these! Love the stuff you come up with. Keep it coming! haha
@raym9691
@raym9691 6 років тому
That was a very through explanation of the setup! I will definitely buy a few boards from you I could not find your old style lighted momentary contact buttons but did find the new ones that you use in the new switche s cheers have a safe trip
@squalazzo
@squalazzo 6 років тому
excellent work, very clean made and clearly explained :)
@fastbike9845
@fastbike9845 29 днів тому
Very interesting. I would suggest changing the schematic so that the LEDs become feedback (use one of the conductors in the Cat5 to connect to an Arduino output pin) so that a lit LED indicates the switch is on, an unlit indicates switch is off, blinking indicates a timer (e.g. extraction fan), a momentary blink every 30 seconds for a night time locator etc. I liked the way you showed the evolution of the design, just wondering six years later where you have ended up with this design.
@thomasvnl
@thomasvnl 6 років тому
Ha, first! Nice video Jonathan, loved the Light Switch controller video too so this is a nice addition to that.
@ronjeromy
@ronjeromy 6 років тому
Love your videos, they are a big inspiration! Have you noticed a big powerconsumption increase since you automated your home?
@zenzen9131
@zenzen9131 6 років тому
Fantastic job :)
@AshMcKenzie
@AshMcKenzie 6 років тому
Core SP12, amazing idea!
@DennisSymeonidis
@DennisSymeonidis 6 років тому
Brilliant video thank you very much
@simone2601
@simone2601 6 років тому
Hi Jon! Great work on your SuperHouse! Can I ask you did you behave for the certifications of the components used? Greetins from Italy!
@tonylorentzen
@tonylorentzen 6 років тому
Jonathan - great video (once again). Getting into shape, aren't you? Looking good! (y)
@SuperHouseTV
@SuperHouseTV 6 років тому
Thanks Tony! I've been working on it for the last few years. I got to the point where I ran out of breath going up stairs.
@almarto
@almarto 6 років тому
Thanks for share this! I have a question... I know you are using an RJ45 cable because you already had it available all over the house but will you choose this cable type if you do it again in a new house?
@thenews25
@thenews25 5 років тому
Thanks bro👍
@roger.takeshita
@roger.takeshita 6 років тому
Hi Jonathan, nice video as always Could you show us how did you manage to connect the power to the relays, do you have an specific relay board for each room or a big control panel to fit everything inside? Thanks Keep the good work
@philbx1
@philbx1 6 років тому
Nice stuff Jon! I'd recommend a Cheap Step Drill kit which can also be used (carefully) to remove excess plastic. BTW, I'm still keen on using a Modbus MCU slave for each panel possibly combined with a touch screen interface to allow for both switching and dimming control. Probably overkill, and your solutions are way more practical but maybe something I'd like to try implement in future.
@nogthree
@nogthree 6 років тому
Even a cheap chinese step drill set will immediately get a better result than using a spade bit and deburring since you can use the front face of the next step to chamfer the hole a little.
@onequaker
@onequaker 6 років тому
Thanks, interesting video. Could you share schematics of you PCB's?
@jaremaw2368
@jaremaw2368 6 років тому
25:20 In this demonstration you are using factory made, molded long connector CAT5 cables, which makes the radius bend rather great. In practice though, the installer would crimp the RJ45 connector on the end of CAT5, and then the cable would bend any way you want - even 90 deg. As usually, great video. Thanks!
@RobiBue
@RobiBue 4 роки тому
Hi Jon, been occasionally watching your videos, and this one and the others with the switches caught my attention, as I’m somewhat interested in (re-)creating a similar setup, but I’m more interested in capacitive touch buttons instead of push buttons, and I was wondering if you had thought about that option too and what your take on that option is... just curious
@frenchytravel
@frenchytravel 6 років тому
Saw that you’ve kept the same T-shirt this time 😂 joke aside, great video and I am looking to adapt your design for my light garden system. I’ll try to do a video. Cheerio and save trip
@3adelz90
@3adelz90 6 років тому
Very great as usual. You keep me waiting for your videos. Can I ask you to share your BOM regarding the PCB which contained the HLK power supply please ? I would love to know which added components for protection did you use. I can see a Varistor and fuse I guess. So please share the BOM to know which values are the most suitable. Also pcb design will be usefull to know how did you isolate high and low sides from each others. Thanks.
@robertpoynton9923
@robertpoynton9923 6 років тому
Thanks for only making the video only just over 30 min mate I watched the in tier videos on my lunch break this time 😂. I have the plans for my house in Drouin if you’d like to have a look at them? The sparky isn’t interested in wiring it up the way I want but the builder is happy for me to run cat5 for a later project.
@lynchkb
@lynchkb 6 років тому
will you be publishing any switches for either dimming or multiple states for say a fan's different settings?
@mrgrook1
@mrgrook1 6 років тому
Hi Jon, Another great vid. I have a question, Can you control plug sockets with these light switches so say you have a 3 Gang sw, wall mounted Gang 1 = Central Light, Gang 2 = Curtains/Blinds and say you have a table lamp or even a LED strip that is plugged into a wall socket. Could you use Gang 3 on the light sw to turn On/Off the wall socket.
@marinehm
@marinehm 6 років тому
I've done something similar, only instead of patch cables. I use Wemos D-1 Mini's connected to my WiFi network to send/receive data via MQTT. No need to run cables throughout the house. Then I found (Raspberry Pi3b) and Home Assistant. The Home Assistant is a Web interface or (GUI) for all your switches, sensors, etc. I even got it to display my Foscam Camera with just a few lines of code. Now I can monitor the Kids in the playroom, see the temperature upstairs and turn on/off lights with Laptop or Phone.
@SuperHouseTV
@SuperHouseTV 6 років тому
Sounds cool, and if you're doing a retrofit it's sometimes necessary to use WiFi when running cable is too hard. But if possible: www.superhouse.tv/superhouse-vlog-58-wires-not-wifi-for-home-automation/
@marcu5eid3
@marcu5eid3 5 років тому
How did you solve power for the Wemos modules?
@jman98956
@jman98956 5 років тому
Hi Jonathan, Instead of using that paddle bit, take a look into forstner bits, they make a SUPER clean cut in almost anything. I use them alot drilling plastics.
@projo2
@projo2 6 років тому
Loosen the button nut and pull two of the buttons toward the front which should allow you to rotate and insert the buttons fairly easy.
@robertgallant6422
@robertgallant6422 6 років тому
I would love to build a new house and be able to implement home automation like that. For now I'll just have to work with mains voltage at the switches witch brings me to my question, what do you use for you switch mode power supply? It looked like a nice small contained package, all I'm finding is big bulky stuff. Great work!!!
@kyhldk
@kyhldk 6 років тому
super smart and simple... love it.... might steal the ideer :P
@OldCurmudgeon3DP
@OldCurmudgeon3DP 6 років тому
When we moved into our first house, the switches were a bit confusing. I ended up printing 1/4" or so black on clear labels using a Brother label maker. They've lasted over 10yrs and only just now are a couple beginning to peel. Love the idea of your system and hope to put something similar in the next home. Maybe even retrofit this one if Icget energetic.
@ozboganprepper7718
@ozboganprepper7718 6 років тому
If you can buy a push button that snaps into the normal light switches then you dont have to measure and drill. Also all the buttons would be automatically aligned with the right orientation and spacing to save alot of time. Great content as usual.
@RobertShaverOfAustin
@RobertShaverOfAustin 6 років тому
This is a great way to do the job. You could just use a latching relay in place of the Aruino, if all you want is just on and off control. I did find an industrial relay that latches closed with the first push, then latches off with the second. It was mechanical so the state of the switches survived a power loss too.
@boblewis5558
@boblewis5558 11 місяців тому
These kind of latching relays are often used in commercial battery powered heating controllers ... Schrack (Austria) make some excellent sub min ones in voltages as low as 3v! Ideal for even twin AA or AAA powered units. One pulse is all they require to change state!
@94Gidge
@94Gidge 5 років тому
Have you ever considered using a step bit. Cuts a nice neat hole in p plastic and debuts one side while your drilling
@mousejjt2
@mousejjt2 4 роки тому
Where did u get the rack mount aurindo?
@johanrojas9725
@johanrojas9725 5 років тому
Can you explain how to make the switch that you show in minute 12:50 ?
@bittertruth27
@bittertruth27 6 років тому
Which software is that for pcb or circuit designing
@CapApollo
@CapApollo 6 років тому
iam doing the same.. its a never finish project... do a pcb like 5 versions of each... the code like 40 versions... openhab 1 programing and now openhab 2 programing... its a nerver ending.. the sky is the limit
@tweetymr
@tweetymr 6 років тому
Does anybody know where do I get those blank wall plates for eu standard?
@michaelhametner9780
@michaelhametner9780 6 років тому
Do you use any PoE lights?
@Solarplex100
@Solarplex100 6 років тому
How do you get pcb boards created?
@jumadhaheri
@jumadhaheri 6 років тому
Thank you this is amazing. Which model of blinds you have at home ? Did you give it a go on power monitor. ? Thanks Btw arduino ethernet almost disappeared from the market
@walperstyle
@walperstyle 6 років тому
The more government gets involved, the more you'll see stuff disappear. They don't want us making things.
@rodstartube
@rodstartube 6 років тому
+walperstyle wtf, lol
@brianinoshkosh85
@brianinoshkosh85 6 років тому
you should use something like the SK6812 for lighting in your next switch version. not sure how you would deal with the communication though without running a separate ethernet line or sacrificing one of the buttons. just an idea. each button would have visual feedback and the ability to control brightness to each button. for 1-3 button situations that can be easily done. say you have one button that cycles through 3 or more colors and controls a range of devices, call it a "mood setting" button. another scenario is maybe the button is controlling something that is not within visual sight (a front door light and no windows to see if its on). maybe one master control panel of a button to every device in your house and visual feedback of what is on/off. i soooo want to build a new house from the ground up and build a similar system into it. your system is already endless in possibilities, that button feedback would just add icing to the cake :)
@SuperHouseTV
@SuperHouseTV 6 років тому
Part of the reason I was in China recently was to arrange custom switch manufacturing the will help solve that problem :-)
@jdphotograph
@jdphotograph 6 років тому
I added Philips Hue. A lot less hassle and you can dim the lights as well. I know the cost is higher but my time is worth a lot more to me.
@rajduttninadpatil2810
@rajduttninadpatil2810 Рік тому
Sir i have doubt n working on robot Cooling 5v fan is getting supply voltage and controlled by microcontroller but what if i want to make fan off but microcontroller must be on as microcontroller alzo perform other operations
@TheMchip
@TheMchip 6 років тому
I am sorry if you mentioned this in some previous episode but may i ask witch software do you use fore pcb drawing? Very nice work! Like your work!
@BrookeHedrick
@BrookeHedrick 6 років тому
He was using Eagle this time.
@SuperHouseTV
@SuperHouseTV 6 років тому
Brooke is correct, I've mostly been using Eagle. In a couple of episodes I'm going to show the complete process of designing a product and taking it through to completed device.
@mariuszgronczewski2766
@mariuszgronczewski2766 6 років тому
I think that if you want on and off on different buttons you should make the backlight be different color. Having convention for green = turn it on, red = turn it off, any other color = other functionality Of course it would make circuit itself more complicated and would probably require a tiny micro in each switch
@DanielBursztynski
@DanielBursztynski 6 років тому
Does anyone know how I could get in touch with Jonathan? Thank you in advance
@greg925911
@greg925911 6 років тому
Years ago in the states they pnly had buttons switches
@buildersmark
@buildersmark 6 років тому
So if you have a 3 way(top of stairs/bottom of stairs) or 4 way switch circuit(per national electric code) do you use programming code to put that group of switches together to control that light set?
@SuperHouseTV
@SuperHouseTV 6 років тому
It's easily set in the OpenHAB configuration, or whatever is being used as a rules engine. The buttons don't control anything directly, they only send event notifications to the controller, so it's up to the controller to determine "ok, button 34 has been pressed, so I'll toggle the state of the light in the stairs" using whatever configuration you specify. It's just as easy to have 1 button controlling a light, or 10 buttons controlling that same light. No extra wiring, no extra effort other than a couple of lines in the configuration. Or you can map it the other way: instead of having a many-to-one mapping like you've described, you can have a one-to-many mapping. For example, you could have lights around the house controlled individually, and also have a specific button in your bedroom that when you press it, every light in your house is turned off except the passage light, which is set to 10% brightness. Once you break free of the old-style direct control wiring, anything you want to do is simple changes in software.
@NorbertasJ
@NorbertasJ 6 років тому
Would you mind doing a guide on integrating temperature and humidity sensors to the switches? As they could collect data from each point. Would they need additional data cable, or switch plate itself would be enougth? Also how about 6 button switches. As i see, one lan cable is enouth only for up to 4 buttons.
@kfash5198
@kfash5198 6 років тому
Can u ship Nigeria(Africa)??
@dylanborchert8156
@dylanborchert8156 6 років тому
Have you thought about having the lights on the light switch to be able to be turned on and off if it’s in a bed room? I sure wouldn’t want a glowing switch in my room. Since you got a metal switch you can use a touch sensor so then the light can turn on if your hand just touches the buttons without turning them on. Or you could do something in the code so that the light turns off after some time. Very cool idea very simple and easy
@SuperHouseTV
@SuperHouseTV 6 років тому
Having a "night mode" where the brightness is decreased would be good, but I've found that having the switches glowing is actually very useful. They're not at full brightness, I have resistors to drop the current to only a few mA so the buttons just glow dimly. It's enough that you can find them in a dark room, but it doesn't light up the room or keep you awake.
@diko69360
@diko69360 6 років тому
Hey Jonathan, great and informative video as usual. Quick question. You raise a valid point about confusion that may arise when a simple button could potentially trigger a multitude of different things, not just lights. I was wondering if you considered leveraging something, like the 2/4/6 button Insteon Wall Keypad. Basically just take the "front" of it and create a custom PCB that will get send the button clicks to your controller? The main benefit would obviously be with the fact that you can find plenty of etched button sets (www.insteon.com/keypad-accessories/) to make this very sleek and professional looking! and you could allocate 2 additional data lines (one GND and one 12v) and fully support a 6 button config. Very interested in your thoughts on it! Thanks again!!!
@omar7c2
@omar7c2 4 роки тому
I did the same with CAT6 but I have an interference problem with electric cables when I turn on and off electrical appliances in my house it marks false positives, do you have any idea how I can eliminate this interference?
@omar7c2
@omar7c2 4 роки тому
@@Sci-fi-Si the cable is currently inside the walls and is difficult to change, I could fix it by creating a change in the software that detects the interference and ignores it, thank you very much for your help
@oetzebroek4874
@oetzebroek4874 6 років тому
If you do state change in 2 directions, you need to isolate the momentary buttons, otherwise they will turn on and off both when you push it
@fnordingers
@fnordingers 6 років тому
Do you have any experience with interference to the long network cables which you use for the buttons? Is the Arduino Pullup strom enough? How long may the cables get? Would it be sensible to add clamping/protection diodes to the pins of the Arduino?
@BlueW01f
@BlueW01f 6 років тому
Ive got mine running over 30m of cable with no interference causing issues. Depends what cables you have running parallel but really shouldnt be an issue unless youre doing insane runs.
@himselfe
@himselfe 6 років тому
What about providing visual state feedback via the LEDs? You can buy bi/tri-colour LED versions of those momentary buttons, but the system you use doesn't have an easy means to incorporate that. This is why I think a compromise between your two methods is a good idea. Put the panel logic on the panel, and the control logic in the centralised rack, with a simple serial connection between. It wouldn't require any change in your point to point wiring, and you're trading minimally increased local complexity on the panel side for vastly greater flexibility and future-proofing (plus a simpler overall system topology imo). Which ever way you do it, I think incorporating visual feedback on the panels would help with ease of use. One thing I would change even if you keep your current system, is changing to something like spade terminals for the switches rather than directly soldered to the board. It might seem more messy, but it eases long-term maintenance. Your issue with having to change the board design to incorporate new buttons because of supply issues exemplifies this.
@DodgyBrothersEngineering
@DodgyBrothersEngineering 6 років тому
Can you please provide model specifics of the new switches, and where to buy them in Oz (assuming you are buying them here).
@SuperHouseTV
@SuperHouseTV 6 років тому
I can't find them in Australia. I'm in China right now at the electronics markets meeting suppliers, and when I get back I'll be putting those light switch breakouts and matching buttons up on the SuperHouse online store.
@DodgyBrothersEngineering
@DodgyBrothersEngineering 6 років тому
No hurry, just investigating options, including some RGB switches.
@MichaelIngraham
@MichaelIngraham 6 років тому
Have you ever considered using the LED on the switch button as an indicator that the load is on or off? This might help people feel like they are turning things on and off like a regular mechanical switch. Also, if the load is not within sight, you can tell from the state of the LED on the button whether the device is on or off. Yes, this would consume some of the leads in the Ethernet cable - one lead to transmit the switch "push" back to the light controller and another lead to turn on the LED on the button. Depending on whether you decide to continue to provide double sets of 12V & GND or just a single set (consuming two or four leads) it limits the number of buttons per faceplate (i.e., no 4-way). The question is, how many locations in ones house have four things to control? I guess, that grows as one expands one's home automation... but perhaps it's a reasonable trade-off?
@jendanelle01
@jendanelle01 6 років тому
You should sell kits for your all in one wifi switches. It would help people wanting to retrofit their house without having a central power cabinet.
@timvonr2802
@timvonr2802 6 років тому
The Problem is, that Most of Home Automationssystems do Not Communicate with another.. But For Example there is The sonoff-Touch
@SuperHouseTV
@SuperHouseTV 6 років тому
I was thinking about that, but the big problem is certification. For equipment to be permanently installed it needs C-Tick, FCC, etc (depending on the country) and obtaining that would cost too much. So I can sell parts and kits and boards (including assembled boards) for people to build their own things, but I can't sell devices for permanent installation as a retail-ready device.
@ronkloiber
@ronkloiber 4 роки тому
What I'd love to see is using a ESP8266 with a 2.5" or smaller touch LCD panel. You could divide the LCD in 2/4/6 cells and display the name of the light they control. and change the color of the cell/button showing the light on or off. You could power it from Mains with the HiTech switch mode p/s or probably even one of those 1 cubic inch 5V USB chargers if current draw is low enough. Basically only 3 components !!!!
@simerui
@simerui 6 років тому
Hi Jonathan, I'm following the channel almost since you started the SuperHouse series, but still having a functional doubt about your design. You use a centralized logic architecture, so all your actions are forced to pass through the openhab server. From switching a ligth to open the windows. But what if a short power outage occurs when is dark in the evening? once the power is back you must wait for the server to start again before you can actually turn on the light again (or the server automatically set back to the latest known status), but anyway you will be kind of a minute or so once the power is back waiting in the dark until the server is back. Are you using som UPS to avoid this or is the power outage so rare event that is not worthy to worry about? Regards, and thanks for the whole series, is really interesting.
@SuperHouseTV
@SuperHouseTV 6 років тому
Thanks for following for so long! Yes, the debate of centralised vs decentralised is a big one. There are definitely trade-offs in both ways. I've seen some extremely interesting work done by a friend of mine who spent years building a system that combined both approaches into a system that had virtualised logic services which could float around between different devices on the network, and be resilient against failure of different parts of the system. The software has been demonstrated to me and I've seen it work, but the company working on it never brought it to market. My friend has been working to get it released under an open source license so it may be possible to talk about it in more detail publicly at some point without being in breach of NDA! But coming back to the simple case, my personal experience has been that having a system that is simpler, more centralised, and prone to total failure is overall more reliable than a system that is more complex, decentralised, and prone to isolated failure. That sounds strange, but it comes down to probability. Distributing the logic means a higher number of complex devices, which means a shorter MTBF. So failures are less critical (perhaps isolated to one device, such as a light switch) but they are more frequent. Not only does it increase the number of failure events that you have to deal with, but the increased frequency leads to a dramatically worse perception of the reliability of the system for people living in the house. There's a whole interesting psychological phenomenon about the correlation between rate of failure, scale of failure, and perception of reliability that means it's much better to have big failures sometimes rather than small failures often. I want to do a video about it sometime, because I find it fascinating. But to get back to your question, yes, I have a UPS sitting in the bottom of the rack in my switchboard. In any blackout that's up to about 45 minutes, the controllers etc keep working just fine and everything is in the same state after the power comes back. If the blackout is longer and the UPS is exhausted, the OpenHAB controller does a cold start and runs a script that sets all devices to a known state.
@simerui
@simerui 6 років тому
Thanks for the response! Indeed I agree with you about is better to keep a simpler architecture rather than a distributed complex one. Also by reducing the number of complex devices keeps the cost down, since at higher complexity, higher price on the devices. My idea is to make a reliable DIY home automation system for my home and since in my neighbourhood the power outages are quite common, I was thinking that a UPS to keep going the OpenHab server and the router would do the trick for a quite long period (it would just supply power to the RasPi and the router, since is a bit silly to power the whole system -arduinos and so on- since without power for the lights, heaters and other devices they won't be useful at all) Anyway It would be very interesting a review on a decentralised approach just to have both points of view. Once again thanks for the response and for the full SuperHouse series, it solved me more than one doubt.
@ohiknow
@ohiknow 6 років тому
Feels like I've watched this before.
@ShoutingElectronics
@ShoutingElectronics 6 років тому
A suggestion for when you do a respin of the Rackmount Switch Controller, Drive the 12v Line to the LED's in the wall switches with a Transistor on an Output pin of the arduino. You can then have it as a status display. I know all the LED's are common, so you cannot have individual control of the LED in a specific switch, but you can for example PWM the pin to dim the all the LED's at night. Or Flash the LEDs whenever any button is pressed. Or when the Alarm is armed /disarmed (As a status display). You could also have it flash the LED's as a visible indication that the Alarm has been triggered, or that the phone is ringing (Or EMail waiting, whatever). It will just give you a visible indication no matter what room you are in (As long as the room has a lightswitch), If the lightswitch is flashing, then it means that something needs your attention.
@daShare
@daShare 6 років тому
Excellent suggestion. I'd also add a small polyswitch on the 12V feed to provide some protection on that 12V line.
@timvonr2802
@timvonr2802 6 років тому
I apricate your diy‘s Sadly in Germany there is Not that much Space behind Wall Switches... (Brick Walls) Have you testet The sonoff Touch with tasmota yet?
@drjubierre
@drjubierre 6 років тому
Hi Jonathan, great video! I agree with Tim, here in Germany we do not have much space on the walls. Usually our construction is based on bricks and the space we usually have is about 80x80 by 40mm depth. In my case I went for the traditional switches you presented in your video. Actually I replace them with some "switches" with a spring that works as a push buttons. Then, because of the lack of space, I used the traditional wiring up to the register box (which is close to the ceiling) and there I connected to my network. Then I lowered the ceiling and done. By sure could be done better, but worked for me.
@BlueW01f
@BlueW01f 6 років тому
You can achieve something similar if you put the sonoff about the light and connect the inputs to the light switch in a low voltage mode. Not being bigheaded but i prefer my implementation to his as it is completely fully functioning as a traditional switch when the network is down
@timvonr2802
@timvonr2802 6 років тому
I have Seen that Video (The sonoff basic with Switch Funktion) too, and tried it. Again same Problem , there is sadly no Space behind The Switches... My sonoff Touch arroved, now Infos to figure out how it‘l work with tasmota and Openhab or FHEM or iobroker...
@SuperHouseTV
@SuperHouseTV 6 років тому
That's a good solution. I showed something like that in one of my episodes about Sonoffs.
@mrteausaable
@mrteausaable 6 років тому
Why you not making the Pin goes HIGH when the button is press? Also where do you get those switches and PCB boards? With relays on back of the switches, will it still fit on the standard wall outlet? Looks pretty big and deep.
@Prisma591
@Prisma591 6 років тому
There's no internal pull-down resistor on the Arduino so you'd have to add one externally otherwise the pin would float when not pulled high by the switch. Having the switch active-low (as in the video) utilises the Arduino's internal pull-up and so when the switch is off, the input is pulled high rather than floating in an unknown state.
@rak3shpai
@rak3shpai 6 років тому
I've always wondered this. Won't the pull-up resistor cause a phantom current draw at all times? Instead, an active-high should only draw power when the button is pressed, isn't it? Do we do this because the internal pull-up resistor is such a high value, that the current can be considered to be practically zero? Does noise have anything to do with it? Do say ultra-low-power designs prefer pull-downs?
@iPelaaja1
@iPelaaja1 6 років тому
Danny T I was just building a thing similar to this and realised that using 12V as the HIGH is problematic, because Arduino is 5V. So I need a voltage divider for every input, plus a third resistor as a pull-down. Connecting to ground would be lot simpler and doesn’t have the 12V to 5V problem. I just had to do it that way because of my switch, and now use 5V instead of 12V so the lights are very dim...
@SuperHouseTV
@SuperHouseTV 6 років тому
Yes, exactly. Using pull-ups to bias inputs high, then pulling them to GND, is a very common approach for exactly this reason. It's also the way many communications buses work. For example, I2C uses 4.7K pull-ups (typically) and the bus is asserted by any device on it pulling the level to GND, and otherwise releasing it. That way any device on the shared bus can assert the bus.
@garymackie3855
@garymackie3855 6 років тому
How to lay bamboo flooring correctly
@seandonelan5834
@seandonelan5834 6 років тому
Hey! Nice video! With some of your integrated systems, couldn't you design a nice implemented motherboard? Within most of your system enclosures, you use a modular microcontroller. Couldn't you just build an Arduino into a system board? Programming and implementation are quite simple. Thanks! P.S. An 11 year old wrote this.
@SuperHouseTV
@SuperHouseTV 6 років тому
Hi Sean, it's great to see an 11 year old getting into this! It's a really interesting question that I hope I'll be able to address over the next few videos, where I'll be showing the process I use to design boards and take them through to production. Yes, you're right: I could make an integrated board. I do that for some projects, particularly once they go past the prototyping stage if I need to make many of them. However, there's a scaling problem where you have to trade off the one-off engineering effort / time against the optimisation of the final device. It's usually called "NRE", or Non-Recurring Engineering costs. You can spend a small amount of time (NRE) to make a device that's just a collection of modules or maybe a carrier board with an Arduino stuck on it, which is very quick and not much NRE but costs more to produce per unit. Or you can spend a lot of time/NRE to make a more integrated device that incorporates all the circuitry onto a single PCB, which takes much longer but is cheaper to produce per unit in quantity. To decide which way to go, you have to balance the savings in per-unit cost against the extra effort of designing an integrated board. If it takes an extra 2 days to design a fully integrated board that will be $5 cheaper to produce, it's definitely worth it if you'll be making thousands of them. But if you're only going to make a few of them for your own use, it's not worth spending 2 days to save $15.
@daShare
@daShare 6 років тому
Using front mount switches soldered onto a PCB is a servicing nightmare. To replace one switch you need to desolder all of the switches, remove the board, replace the bad switch and resolder it all again. Doing it with rear mount switches is much nicer, but of course means you need to secure the PCB to the plate which makes it more plate specific. Also, is there no signal conditioning on the Arduino inputs - just a series resistor ? Seems like it would be prone to spurious RF.
@KaveendraVithana
@KaveendraVithana 6 років тому
Well, it looks like heavily RF susceptible. You may use shielded cat5 grounded properly, at a higher cost. I tested pretty standard cat 5 without shielding, a 30m cable, laying around my house, and works without an issue. Even mobile on top of the wire, wrapped around microwave etc. wouldn't drag it down. I think it's alright for a standard household, without extreme level RF interference, such as in an industrial environment.
@boblewis5558
@boblewis5558 11 місяців тому
Not meant to be a negative comment but good luck with even getting the switches and board to fit a typical UK switch back box in a brick wall ... They are only about 15mm deep! 🤔😲😲 Even deep single gang dry lining back boxes are only 47mm v 35mm standard! Not much room for a double stacked board. I'm quite surprised you didn't go for touch switches rather than mechanical ones. The ubiquitous TTP223 chip makes for excellent high sensitivity capacitive touch switches.
@SuperHouseTV
@SuperHouseTV 11 місяців тому
I've used the TTP223 in a few projects, but for light switches I prefer something tactile. The general move towards touchscreens and touch sensors is a mistake in many situations: for example, I think it's stupid in cars where you need to be able to feel controls without looking at them. To me, light switches are the same. I want to reach it as I'm walking past while barely looking at it.
@KaveendraVithana
@KaveendraVithana 6 років тому
In Australia, Sonoff or thereof without necessary approvals (c-tick) cannot be connected to permanent house wiring legally. Moreover, devices with terminals (other than plugs) should only be connected to house wiring by a licenced electrician. It is not something legally allowed in Australia for DIY. Considering 95% houses are on mortgage and with insurance, things can get pretty messy otherwise. No sensible electrician in Australia will help you connecting and signing off anything without compliance markings. The ONLY way of making this work without crossing path with legal intricacies is what Jon has used. Approved DIN-mount relays, which goes inside a central distribution box. These things are Industrial LEGOS (as AvE might say), which is intended to control AC mains voltages with low-voltage signals. Even mains relay having all the approvals, it must also be connected and enclosed properly. You cannot stick a DIN relay onto or back of a light bulb or switch and then connect a Sonoff or ESP8266 to it. It's possible, but quite illegal. Now you will understand why Sonoff or thereof is not yet practical in countries like Australia, and why Jon might has done what he has done in the way he has done it :)
@erichertsens
@erichertsens Рік тому
makes wiring a new house a lot cheaper, a lot less copper needed
@DodgyBrothersEngineering
@DodgyBrothersEngineering 6 років тому
Is anyone else using illuminated switches? If so are 12v too bright?
@iPelaaja1
@iPelaaja1 6 років тому
I always buy all my stuff from eBay because it’s cheap. But then looked for RJ45 breakouts and RJ45 sockets and they are really expensive compared to other components...
@SuperHouseTV
@SuperHouseTV 6 років тому
I can get them very cheaply direct from Chinese suppliers. I'm in China right now doing exactly that. After I get back I'll be putting up these breakout boards on the brand new SuperHouse online store.
@michaelh9667
@michaelh9667 6 років тому
Couldnt you just use an esp8266 with wifi?
@nia007agent
@nia007agent 6 років тому
I add a Tablet to my buttons in my Rooms, no extra cables
@greg925911
@greg925911 6 років тому
So is this something that could lower the cost of Electrician's labor an DIY buy an installation
@vardanarakelyan3771
@vardanarakelyan3771 6 років тому
I think something is wrong with schematic, the LED pin should be connected to the other pin of switch so it can be lighted when switch is on. in the schematic you show the LED is always connected to +12 and GND.
@SuperHouseTV
@SuperHouseTV 6 років тому
This is deliberate, because I want the switches to glow constantly. There's no point only illuminating them while the button is pressed because your finger covers it anyway, so you can't see the illumination. Having the switches glowing turns out to be really good because you can walk into a dark room and easily find the switch. In a future version I'll have it showing output state by changing in some way, but I'll still want it illuminated all the time.
@TecSanento
@TecSanento 6 років тому
But you are only controlling your ligths with These Switches don't you? Because otherwise it might be really useful to have RGB adressable buttons that you can control over the network cable.. so you have one additional data line to adress the LEDs to give some feedback
@JohnWeland
@JohnWeland 6 років тому
AWESOME work! switches in America tend to look like this www.kyleswitchplates.com/low-voltage-24v-3a-momentary-toggle-light-switches-p-s-1081/, however these ones are momentary and as you toggle down or up they have a spring or some such that reset them to the center position. This might work for giving the layman the feel of a standard switch while keeping them "smart" for the super house. I cannot wait to see whats next!
@MarkleZephire
@MarkleZephire 6 років тому
What's happening in China?
@SuperHouseTV
@SuperHouseTV 6 років тому
All sorts of stuff! Maker Faire Shenzhen, to start with, but that's just the warm-up. I'm going around the electronics markets, and visiting ITEAD, Seeed and a bunch of other places. There'll be plenty of video about it :-)
@MarkleZephire
@MarkleZephire 6 років тому
SuperHouseTV Sound like a lot of fun! Enjoy yourself and I look forward to the video's.
@Nobbi_TheRock
@Nobbi_TheRock 6 років тому
Hi okay a amazing Video. But you must all conect to Ethernal Cable? Hooooo better WiFi and touch sensors ,, Only to a Mini Raspberry PI .. the cost is so smal and simple.. :-)
@SuperHouseTV
@SuperHouseTV 6 років тому
www.superhouse.tv/superhouse-vlog-58-wires-not-wifi-for-home-automation/
@b.johnbeaumont7435
@b.johnbeaumont7435 2 роки тому
Someone should mass produce these light switches with POE ethernet connections for 1, 2, 3, & 4 button models. Then sell them like hot cakes on ebay.
@farhaaniqbal224
@farhaaniqbal224 4 роки тому
1 set of wires per a couple of switch? That lots of cables for a full house. Why not use a bus network
@DisgruntledPigumon
@DisgruntledPigumon 5 років тому
I’d love to work with someone like you, you seem to be solid on coding. But you have no clue about user interface, ease of use, look and feel. You decided to "reinvent" the switch. A light switch is made to be as simple and easy to use as can be, you don’t even have to look at a light switch, you can just slap it with your hand and it turns on or off. You instead devolved this concept, using similar to a computer power switch that is SPECIFICALLY made to be difficult to switch on and off, so that you don’t accidentally turn off your computer. You use this in place of an easy to use switch. It makes no sense. But, why I said I’d love to work with a person like you, once people mentioned this or that, you were immediately able to find a solution and change your code to that. That’s incredible. It’s well beyond my abilities. I'd love to take my ideas and combine them with your knowhow.
@Sergio-L
@Sergio-L 5 років тому
Why do you think it is devolved? You can still use the same light switch and slap it with your hand if you want to. It's not ideal with On/Off position of the switch in this case, but there is no other way if you are playing with home automation
@DisgruntledPigumon
@DisgruntledPigumon 5 років тому
Sergio L Watch how he turns on the light every time, it’s like he's cleaning his ear, he has to poke his finger inside the switch every time. He has to stop, look at the switch, aim his finger to get in the hole, then push inside the hole. This is nowhere near as fast and walking past and quickly swiping up or down at a switch. He seems to be amazing at coding and electronics, he could definitely make these work with regular switches, 3-way switches, or with dimmer switches.
@Jean-Naimar
@Jean-Naimar 6 років тому
Not so good. Current loop with opto is better.
@charkandros
@charkandros 6 років тому
Hi, why would it be better? Is it because you can use the already existing electrical wire instead of Ethernet, or are there more benefits?
@Jean-Naimar
@Jean-Naimar 6 років тому
charkandros, not sensitive to electrical noise and necessary for long distances.
@drcpaintball
@drcpaintball 6 років тому
god these buttons are fucking ugly. I did installs in multimillion dollar homes and would never install these industrial looking tiny pushbuttons. Also solder on some fucking different color leds so that different function are not all blue
@SuperHouseTV
@SuperHouseTV 6 років тому
I'd love to see what sort of switches are used in multimillion dollar homes. I'm not that rich! What type do you have in your house?
@drcpaintball
@drcpaintball 6 років тому
SuperHouseTV We use Lutron / Leviton products or regular light switches that have pushbuttons hidden under them
SuperHouse #38: DIY air quality sensor part 1 - "Basic" version
22:04
SuperHouseTV
Переглядів 58 тис.
SuperHouseTV #13: Connecting security sensors to Arduino
26:34
SuperHouseTV
Переглядів 104 тис.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 1,3 млн
The Originals Were Cast, But I Fabricated 4 of Them | Engels Coach Shop
20:18
SuperHouseTV #3: Power-over-Ethernet for Arduino Home Automation
22:49
SuperHouseTV
Переглядів 194 тис.
Drone Programming With Python Course | 3 Hours | Including x4 Projects | Computer Vision
3:33:03
Murtaza's Workshop - Robotics and AI
Переглядів 6 млн
SuperHouse #36: 3D printed PCB workstation made with acupuncture needles
21:05
Sonoff - The $5 WiFi Smart Switch That's Compatible With Alexa And Google Home
5:51
SuperHouse #27: Visit to the Sonoff factory
21:44
SuperHouseTV
Переглядів 166 тис.
10 Raspberry Pi Projects (All models, including Pico)
1:52:44
DroneBot Workshop
Переглядів 484 тис.
Make "Alexa" Control ANYTHING!
7:34
Mike and Lauren
Переглядів 1 млн
How to Make Custom ESP32 Board in 3 Hours | Full Tutorial
2:57:20
Robert Feranec
Переглядів 863 тис.
Рекламная уловка Apple 😏
0:59
Яблык
Переглядів 606 тис.
Игровой ноутбук за 100тр в МВИДЕО
0:58
KOLBIN REVIEW
Переглядів 228 тис.
Клавиатура vs геймпад vs руль
0:47
Balance
Переглядів 758 тис.