Тёмный

#222 

Ralph S Bacon
Подписаться 54 тыс.
Просмотров 8 тыс.
50% 1

I urgently need to design my "smart" heater control for my workshop, ideally before the cold weather sets in.
► JLCPCB Only $2 for PCB Prototype any colour jlcpcb.com/cyt
► Including aluminium boards for the same price. Incredible value!
We're dealing with mains voltages here, albeit only in a switching capacity, so it has to be done right, aka safely.
Additionally, I need the system to be Wi-Fi enabled so that it can be "smart" - but exactly what that means remains to be seen. I have a few ideas.
Please give me your suggestions and feedback on the approach I could take and I will put them into a melting pot and see what comes out!
► List of all my videos
(Special thanks to Michael Kurt Vogel for compiling this)
bit.ly/RU-vidVideoList-RalphB...
► If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey
► My channel, GitHub and blog are here:
------------------------------------------------------------------
• / ralphbacon
• ralphbacon.blog
• github.com/RalphBacon
------------------------------------------------------------------

Наука

Опубликовано:

 

12 авг 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 122   
@ReflectingMe2024
@ReflectingMe2024 3 года назад
Hi Ralph - I recall mentioning something like this to you previously, possibly in an email not sure. But I've just had my second YT cull after a further few years as I had subscribed to way too many channels, and once again your channel remains securely on my sub keep list. Haven't watched many of your videos over this time as I've been involved in several other things (e.g. my iOS and Android app development and releases etc) but I will scroll through and catch up. Have watched this one though, and very interesting it is too. keep well Ralph, keep the water away from those bins, and keep up the great work. John.
@RalphBacon
@RalphBacon 3 года назад
I'm sorry, John, I'm having difficulties understanding "...haven't watched many of your videos over this time..." 😬 I'm shocked! But immensely grateful that you're still subscribed to me! Some interesting stuff here, though I say it myself (well, someone's got to). Keep tuned, great to see you.
@Chriva
@Chriva 3 года назад
Welcome BACK, Mr. Bacon :)
@RalphBacon
@RalphBacon 3 года назад
Been back a while now, Christian, where have you been, I've been looking for you!
@sunuk1915
@sunuk1915 3 года назад
Thank you very much for very useful topics
@RalphBacon
@RalphBacon 3 года назад
You are most welcome!
@romancharak3675
@romancharak3675 3 года назад
Also, install the relay inside your heater. That way you run low-voltage wires from your microcontroller box. Cheers!
@RalphBacon
@RalphBacon 3 года назад
That is definitely thinking outside the box, Roman. Excellent suggestion.
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM 3 года назад
Very informative video
@RalphBacon
@RalphBacon 3 года назад
Glad you think so!
@gazzacroy
@gazzacroy 3 года назад
cool :) waiting for the next one :)
@RalphBacon
@RalphBacon 3 года назад
How long you got? 😁 But I do need to progress this quite swiftly as the cold weather starts next month. I wonder if I can use ESP-NOW? (Rhetorical question, wait for next video).
@gazzacroy
@gazzacroy 3 года назад
@@RalphBacon i can wait as long as it takes, i like your videos. :) still think you should look into esp'now' i think you'll be impressed :)
@McTroyd
@McTroyd 3 года назад
Big Clive has done a number of videos on both capacitive and resistive power supplies. While I have no reason to think he's pulling our collective legs, thanks for producing that Microchip tech note to verify. As for driving the relay, I'd stick with a single supply. Coil source at 5v rail, drains to ground through an N-channel FET (and current-limiting resistor). Programmatic logic lines up "high/low" with "on/off", so no "active low" logic to keep straight. You mentioned it in the video, but it bears repeating: don't forget the reverse-biased snubber diode across the relay coil. 😁👍
@RalphBacon
@RalphBacon 3 года назад
So you would not be worried about the VCC dipping as the relay pulled in? It would require 150mA, out of a total of about 500mA available. I'm worried the ESP32 would throw a wobbly. My thinking is a dual power supply (same sized unit, pretty much) with 12v just for the relay via a MOSFET. Diode not forgotten and I'm _also_ using a snubber across the relay contacts to prevent sparking (well, I _will_ use one if there is any sparking).
@McTroyd
@McTroyd 3 года назад
@@RalphBacon I figure VCC won't dip as long as the power supply can deliver the current. Filtering/de-coupling/bypass capacitors (whichever your preferred term) can help with instantaneous voltage drops (i.e. when the relay first closes).
@IanSlothieRolfe
@IanSlothieRolfe 3 года назад
I certainly wouldn't use any capacitive power supply on something I was likely to be plugging into my laptop! A few years back I was building a box for a friend to switch audio sources to several different speakers and soundbars and had to power the microcontroller in it, and instead I took the PCB out of a USB charger and fixed it to my board. I had several of them and one I stripped apart to check how safe they were, and they were good enough, the only reason they I didn't use them for their intended purpose was that the plastic case had a tendency to fall apart, not good in the living room! However when built into something perfectly safe, and quite a bit cheaper than the module you show. However I would advise caution with cheap chargers from eBay or Ali Express unless you are sure about the quality of the electronics - you only need to watch a few "Diode gone wild" videos to know why! But re-purposing a USB charger and building it into a project is a valid prospect if you take a little care. You can also get very small 5v and 12v switching power supply modules quite cheaply (like the one you showed I suppose!).
@RalphBacon
@RalphBacon 3 года назад
Indeed, Ian. You must have missed a (very) old video of mine where the plug in CCTV wall-wart burned out. Could easily have burned down my house (link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YClCWrCs3PA.html) I've found a well-respected source for an encapsulated dual 5v and 12v supply, very small, only 4W total but enough for this project. Let's hope that doesn't burst into flames!
@gwharton68
@gwharton68 3 года назад
Use a solid state relay to control the heater.
@RalphBacon
@RalphBacon 3 года назад
Indeed, many have suggested this but up till now I've said the SSR would be too big for the case. But another viewer said to put that inside the heater. So I'm just about to dismantle my heater to see if that would work!
@darkphotons101
@darkphotons101 3 года назад
I love the design process, my suggestion would be to make the relay replaceable, give it its own little PCB with four screw terminals and maybe add some mounting holes. Then design a little square cut out on the main PCB (it is large enough) so you can fit a spare relay (already soldered on its little PCB) in there.
@RalphBacon
@RalphBacon 3 года назад
I like this suggestion. I, too, was worried that if (when?) the relay failed I would have a problem (new circuit board build/desolder relay). I shall see if this will work. Nice suggestion, thanks.
@TheNCGardener
@TheNCGardener 3 года назад
Don't forget OTA code to make it easy to upgrade. Great practical project!
@RalphBacon
@RalphBacon 3 года назад
Good call! And I make mention of this in a later video (spoiler alert: more ESP32 stuff ahead!). I did this OTA stuff only once (in test mode) but now I need (as in: _need_ ) to do this for this project. This project is growing arms and legs even as we speak.
@TheUnofficialMaker
@TheUnofficialMaker 3 года назад
perfect app to replace relay with SSR. Also if you connect to bimetal switch set to high it would serve as an overheat safety.
@RalphBacon
@RalphBacon 3 года назад
Yes, I will deffo be using the bimetallic switch as a fail-safe. Others have suggested SSR which I said was too large but one viewer suggested mounting it *_inside_* the heater case (LOADS of space in there) so the wiring from ESP32 was all low power. These are great suggestions.
@cheetahkid
@cheetahkid 3 года назад
I had used Hy-Link a lot and pretty much reliable, For the relay I would stick to 5v and add a transistor, there is 16Amp version not much larger the one you got. I played with transformerless a lot in the past, I know it is dangerous, you heard of Sonoff? They used tranformerless.
@RalphBacon
@RalphBacon 3 года назад
OMG Sonoff use transformerless power? I'm surprised no one has electrocuted themselves yet whilst wiring up the Xmas tree.
@romancharak3675
@romancharak3675 3 года назад
Interesting project Ralph. Maybe include a sensor to sense when you've turned off your kill-switch, or turned off the lights when leaving you workshop.
@RalphBacon
@RalphBacon 3 года назад
That would be the 💓 heartbeat sensor, Roman, to tell me when the power is gone.
@andymouse
@andymouse 3 года назад
Great project Ralph, when your works shop is done how about a decent headphone amp ?....cheer.
@RalphBacon
@RalphBacon 3 года назад
Analog audio design, Andy? That would be a departure from all things μControllers! Hmm.
@gregwmanning
@gregwmanning 3 года назад
My first thought was to add a two pole contactor to your existing kill switch. No bells but you could also control the kill switch plus contactor with this esp32 circuit. Or the one esp control both independently, and add the bells and whistles in software.
@RalphBacon
@RalphBacon 3 года назад
Certainly a different switch to the one I am using for the KILL switch now would work (but so would two, side by side) but, hey, this is an Arduino channel and we want bells, whistles and a remotely controllable heater!
@bruno-id1wh
@bruno-id1wh 2 года назад
Hi Ralph, just going through some of your older videos, and I noticed on this one you showed the Home Alone project. Completely unrelated to *this* video, but I wondered how you found the PIR detector and whether it ever suffered from false triggers, which I get all the time on a project using a larger PIR. I wondered if you were using any additional circuitry rather than just reading the PIR output directly, and if so is there a video on it ? I've got some of the PIR ones you have used, and they work fine on the breadboard but don't want to start my next PCB design until I know if it's going to work in a real project. TIA
@RalphBacon
@RalphBacon 2 года назад
The Home Alone project is still going strong 24x7 in my mum's apartment and the small PIRs are behaving themselves nicely. The only "false" triggering I've experienced is when she left the windows open overnight and the movement of the curtains triggered the PIR. If this is critical to you, why not create a simple test breadboard circuit with one or more PIRs installed. Run it 24x7 for a day or more in a closed box; you should get no triggers unless you open the box. Log the output and you will soon find out whether your PIRs are stable. (Basically, I did it this way.) A decent (stable, noise-free) power supply is important so if you take it from the Arduino best to decouple it.
@bruno-id1wh
@bruno-id1wh 2 года назад
@@RalphBacon Thanks for the reply. I'll set it all up again on a breadboard and give it a go. It may very well be power source related, as I'm getting false triggers every 5 to 10 seconds.
@geralltgriffiths7772
@geralltgriffiths7772 3 года назад
Since you mentioned your "home alone" project, with its PIR, I was wondering if it'd be worth including one -- for even more control options? Just a thought.
@RalphBacon
@RalphBacon 3 года назад
I did consider a PIR sensor, if only to control a display (that I've since thought of) so that it's not on just because the power is on, but only comes on with movement of some kind. My Home Alone project does that too, to save the OLED display from premature burnout. However, you're right, I _could_ use that as a movement sensor in the Home Alone sense to alert my wife when I keel over, over a hot soldering iron one day 😮
@petermoore9504
@petermoore9504 3 года назад
Any thought about solid state relays or are they not powerful enough? Cheers
@RalphBacon
@RalphBacon 3 года назад
See my response to another viewer - they are physically far too big due to the currents that they are dissipating. For this project they are just too big.
@RottnRobbie
@RottnRobbie 3 года назад
Hi Ralph, If I understand your control scheme proposal (which is by no means certain), you want it to -) Turn on the power to the heater when the "power kill" switch at the door is ON (meaning you're in the shop) AND -) The temperature is less than some preset comfort level UNLESS -) you override it with the override switch OR -) it's overridden by the phone app OR -) the temperature is less than 9 degrees AND it's the middle of the night If I've got the hierarchy right there, then I think you've just traded the "I forgot to turn off the heater when I left the shop" problem for two problems: an "I forgot to turn off the override toggle switch" problem; and an "I forgot to turn off the phone app override" problem. To get around that, I'd suggest that both overrides should start a timer that allows the heater to run for a set time. Whether that's 15 minutes or 2 hours probably depends more on how long it takes to heat the shop than anything else, but you really need them to be momentary switches, and time limited. I'm not sure how that would work with your phone app? If you're writing your own, then just do it. If you're piggy-backing on an existing app's capabilities, it might be more difficult. and BTW - I understand why you're doing it your way... You've got all these wireless microcontroller hammers sitting around, and when you've got a hammer, everything looks like a nail ;) But the heartbeat doesn't need to be wireless, and doesn't need a microcontroller. There must be dozens of ways to skin that particular cat! For instance, you could use a 555 timer to generate your heartbeat pulse, which you could then use to activate one of your many spare relays to pull a line low. Or the 555 could light up an LED that you detect using a phototransistor or even an LDR. Not to mention (since others have already done so) a PIR as an occupancy sensor.
@RalphBacon
@RalphBacon 3 года назад
I've just responded to another viewer about the "override" problem you mention, and I suggested a "time-out" - just as you have here! Great minds, and all that. Regarding the heartbeat, the sensor for that must be powered from the Kill-switch power (so when that dies, there is no heart beat). I don't have kill-switch power near the heater, so I want to plug that in somewhere convenient. Hence the Wireless connection. The PIR occupancy detector is going to be a deffo, good idea.
@RottnRobbie
@RottnRobbie 3 года назад
@@RalphBacon I'm a bit bemused by the word _near_ in your statement that you "... don't have kill-switch power near the heater..." I just re-watched #212 (the workshop tour video) to check my memory, and @11:45 I can see the kill switch behind your right shoulder as you squat in front of the heater... surely they're barely more than a metre apart? And in a 3.5 X 3 metre workshop, it seems likely that 5 or so metres of speaker wire would span pretty much any distance needed? In that tour you also pointed out the Alexa-controlled switch that the heater was plugged into. I'm a bit surprised you didn't consider creating an interface into Alexa - maybe even a new custom "skill" - to manage things the way you want. Or maybe hacking the 8266 firmware in it instead of having to build your own solution in a double outlet box. At a minimum, you could at least steal the switching mechanism (presumably a relay?) from it so you don't have to order a new one. But enough of this! Like I said before, I get why you're doing it the way you're doing it... a wireless heartbeat is just more interesting (and fun) than the alternatives.
@RalphBacon
@RalphBacon 3 года назад
Your last statement summarises my approach correctly. Yes, I could easily run a KILL-switched controlled power supply to nearer the heater but, as you say, we want some fun with this project (hence keeping Alexa out of it, for now). Keep tuned, I've been getting lots of suggestions and ideas from you all.
@BaronVonBiffo
@BaronVonBiffo 3 года назад
One thing that occurs to me is the potential for the override switch to scupper the project. If you turn on the heater using your phone but for some reason you don't go to the workshop, you're back where you started, wasting power/money. A possible solution is to have a time limit on the override such that it turns off again if it doesn't detect the heartbeat signal after say 30 minutes.
@RalphBacon
@RalphBacon 3 года назад
But then it would be my stupidity... oh, I see where you're coming from. Yes, perhaps the override "on" would only be active for 30 minutes until I actually turn up (PIR sensor?).
@BaronVonBiffo
@BaronVonBiffo 3 года назад
@@RalphBacon You wouldn't need a PIR sensor. I imagine that when you go to the workshop the first thing you do is turn on the kill switch and that will cause your new heartbeat emitter will power up. No heartbeat for 30 minutes kills the override.
@RalphBacon
@RalphBacon 3 года назад
Yes, that would work. However, I am thinking of using the PIR for another reason too. If it is used, you will find out in a future video!
@briansmith7015
@briansmith7015 3 года назад
Be very careful with those Hi-link and similar down converters. Looking at the spec it does not say they are mains isolated. Would be an interesting test. I've only found one from Amazon ( EASY POWER) that actually gives an isolation figure of 1kv. They may all do the job until you plug in your, soon to be magic smoke free, USB connector. Keep em coming :)
@RalphBacon
@RalphBacon 3 года назад
I've used the Hi-Link before (and similar) and they seem to be well thought of (and well isolated). They _have_ to use an isolation transformer as part of the design to get the switching-mode of the power, but how safe that is, well... I will double-check all specs before using one! Glad you're thinking of my poor ESP, Brian!
@bipolarchemist
@bipolarchemist 3 года назад
An SSR might be more reliable than those smaller relays, but they also tend to be a bit larger and space here is a concern. But one possibility that I believe exist with both the 8266 or 32 is future integration into Home Assistant if you ever decide to centralize all of your 'smart' devices for easier control. Looking forward to seeing how this journey ends. I've been playing around with a heat controller myself, but it isn't as smart and only dealt with a 60x45x60 cm volume. Sadly, I don't think the PTC heaters I was playing with are sufficient to get the job done in a reasonable amount of time with where I wanted to mount them.
@RalphBacon
@RalphBacon 3 года назад
Yes, it is space that SSRs take up, for sure. A centralised system sounds great but becomes all-consuming (in my mind, anyway). I'll stick to K.I.S.S. for my project designs right now!
@jbrian8618
@jbrian8618 3 года назад
Just a thought, maybe you could use an opto coupler (triac or similar) to drive a mains relay/triac to avoid loading the CPU power supply ?
@RalphBacon
@RalphBacon 3 года назад
Indeed, that would get over the current requirement for a traditional relay but up till now I've said the SSR would be too big for the case. But another viewer said to put that inside the heater. So I'm just about to dismantle my heater to see if that would work!
@anandjhaveri7828
@anandjhaveri7828 3 года назад
Great project! I am doing something quite similar to control the hot water pump that circulates the water around my house. I have tried using the HiLink 5V/5W power supply and found that I got brown outs on the ESP32 regularly, especially when connecting to the WiFi due to current surges from the WiFi function. I know that you are not planning to use WiFi in this project, but just a heads up that the 1A current isn't quite accurate. I have now used a 12V HiLink to power the ESP32 directly, and an LDO (Mini 360) to create a 5V power rail to power the other componets on my pcb. That seems to work a lot better and is more reliable. No more brownouts!
@RalphBacon
@RalphBacon 3 года назад
Interesting. I 'm glad you fixed it. I am now using a dual 5v/12v supply (about the same size as the HiLink) so that I *don't* get brownouts when the relay kicks in and sucks 150mA from the 5v line - it uses the dedicated 12v supply. I know that the ESP32s are a bit sensitive on the Brown Out issue. And I most *definitely am/will be using Wi-Fi* in this project! More on this in a later video so keep tuned!
@anandjhaveri7828
@anandjhaveri7828 3 года назад
@@RalphBacon Would be interested to know which supply you are using for the dual 5v/12v? Could you share the part number or circuit please?
@RalphBacon
@RalphBacon 3 года назад
I _should_ make you wait for the video in which I show this but that would just be too cruel. I bought mine from CPC (UK supplier, part of Farnell) but I'm sure it must be available worldwide. It's the 47246 from Myrra, dual +5v (@400mA) and +12v (170mA) and have a common ground. Here's the link: cpc.farnell.com/myrra/47246/power-supply-4w-5vdc-12vdc-reg/dp/TF01451
@anandjhaveri7828
@anandjhaveri7828 3 года назад
@@RalphBacon Thanks. Very kind of you to share. I will await the video anyway :-)
@davidrichardson376
@davidrichardson376 3 года назад
You can make a "Poor Man's" isolation transformer by connecting two (small) transformers "back-to-back" with their (similar) secondary windings, thus providing double isolation to the second transformer mains voltage terminals. Grounding one side of the intermediate wingings is a bullet-proof way of preventing mains voltage break-through.
@RalphBacon
@RalphBacon 3 года назад
Indeed you can, although the current would be pretty small. But then again we might not need much.
@rodhaas9268
@rodhaas9268 3 года назад
Have you taken into account thermal runaway due to a faulty temp sensor that would indicate a low temp constantly ,perhaps there's an overtemp thermal breaker built into the heater already?
@bipolarchemist
@bipolarchemist 3 года назад
I don't think this is an issue as he is controlling a heater with set limits. The heating unit should have such controls built in already(bimetallic switch) so we just want to turn it on or off. The temperature sensors are more for quality of life as he is essentially building a NEST, or smart thermostat controller. At least that is how I see it. Now if he decides to do more than control whether the device is on or off in the future, thermal runaway might be a concern, but as he won't be trying to pump more energy into the device than it was designed to take, I feel it is a non-issue at this moment.
@RalphBacon
@RalphBacon 3 года назад
Rod raises a good point but @hmx has answered it. The bi-metallic strip can be set to, say, 28ºC as a fail-safe temperature. Not only that, but I will have more than one sensor - more of this to come in the next video.
@rodhaas9268
@rodhaas9268 3 года назад
I refer to your schematic at 5:10 where it seems to me you are bypassing the internal thermal control and going directly across the heating element.
@RalphBacon
@RalphBacon 3 года назад
Only "by-passsing" in the theoretical sense, Rod. In other words, I'd turn it up (like I did in the previous workshop, which had a separate, manual thermostat) to act as a failsafe. But I don't want it to control the temperature, just to make sure I don't burn the workshop down or keep the heating on full all night.
@oleeide9763
@oleeide9763 3 года назад
Friday and Bacon time :-). Annyway you should use a Solidstate relay, and control your heater using a PI controler (D not needed) using PWM (as low frequensy as you can get on the ESP is perfect). Like this you get perfect temperature control, none of this on off rubish. Within profesional building automation, this is a quite normal solution, and has been around since i started back in the early 90s. I recently buildt myself an inline electric water heater for my underfloor heating system, using a 3phase 9kw heater and two sollidstate relays, offcource with overheating thermostats, flow swithc and so on, not that you need any of this since you just use the buildt in thermostat as an overheat thermostat. Annyway it works just perfect, communicating with my Homeautomation system using MQTT, and regulates the temperature just perfect, within 0.05°K of setpoint.
@RalphBacon
@RalphBacon 3 года назад
So you're suggesting switching the SSR on/off multiple times a second using PWM? And increase the mark/space ratio to increase the heating time (and vice versa to cool it down). Does that really work any better than on/off? I guess the heat oscillation would be smaller. Hmm...
@daveholden3935
@daveholden3935 3 года назад
Perhaps the addition of a Watchdog Timer - as per your video 194 - to avoid a processor crash leaving the heater powered ON ?
@RalphBacon
@RalphBacon 3 года назад
Good point, David. Belt and braces. I will consider that.
@akosboda8442
@akosboda8442 3 года назад
Need to program Arduino (mini) on mains potential? Please consider this isolated serial programmer on Thingiverse 4911765.
@RalphBacon
@RalphBacon 3 года назад
Galvanic isolation is always a great idea for us Arduinites, Akos; that's a nice device you have there. As the ESP in this project will be "floating" I _should_ be OK programming it but I do have a USB isolator (somewhere) - I need to get that out.
@stephenbarlin2314
@stephenbarlin2314 3 года назад
Perhaps the rule of KISS is applicable here?
@RalphBacon
@RalphBacon 3 года назад
Not _too_ KISS though, Stephen. After all, if we have the technology we can build anything - just not too overengineered. So no second switch by the door (pah!) but a fairly simple temperature controlled relay that just happens to be Wi-Fi connectable and controllable.
@hoggif
@hoggif 3 года назад
Whopping big isolation transformer? :) I guess it is for arduinos. I used to do lots of power electronics stuff and I have a 3kVA with 15A variac and a secondary 400VA isolation transformer. I think you're on the track. Tiny psu modules are handy and safe. Make sure to fuse it. I would be fine with a capasitive dropper too. I tend to update software OTA and in that case you only need to program it once (when it is not connected to mains). I find it unlikely to need scoping for such a simple circuit. For something like full ESP32 current (200mA or so) capasitive droppers are not that small, probably larger than a tiny psu module.
@RalphBacon
@RalphBacon 3 года назад
OTA is certainly something I want to implement for this project, not least for the very reason you allude to, the mains supply! Good suggestions there too, like a fuse for the PSU module. 👍
@flemmingchristiansen2462
@flemmingchristiansen2462 3 года назад
Nice project, just as usual @ 24:30-ish you said -give some safety, and you turned all blue in the face, is that a coincidence. fear or are you just sitting on something you shouldn't? LOL you could put an opto-coupler in front of your relay or maybe replace it with an opto-triac, i think you done that before with Zero crossing detection
@RalphBacon
@RalphBacon 3 года назад
Yes, I did some work on the zero crossing detection (that also made me go a bit blue in the face) so controlling an SSR should be no problem; I'm not even sure zero crossing is required but I'll see, I don't want clicks and pops on my radio!
@josepheccles9341
@josepheccles9341 3 года назад
Did you ever consider a solid state relay?
@RalphBacon
@RalphBacon 3 года назад
Yes, Joseph, but they are big, relatively speaking, and probably require a heatsink with the current I'm sinking. A standard relay can be quite miniscule, in comparison. Of course, whether it stands the test of time...
@josepheccles9341
@josepheccles9341 3 года назад
@@RalphBacon yes, it would not fit a single receptical junction box.
@RalphBacon
@RalphBacon 3 года назад
Although another viewer just suggested putting the SSR _inside the roomy heater case_ - plenty of room in there. Hmm... options!
@josepheccles9341
@josepheccles9341 3 года назад
@@RalphBacon I like that kind of idea as well. If I were to go that route I would put the low voltage power supply in the heater as well. That way you don't have the 50hz mains along side of the signal lines to fire the SSR.
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM 3 года назад
Use relay or ssr then these ssr use to controll the magnatic swtich the magnatic switch is some high price but its good for controll the high power device u controll the swith with ssr or relay cuz its coil need 220v ...
@RalphBacon
@RalphBacon 3 года назад
The SSR is a good idea and has been suggested. I will see if I can find room in the heater case.
@aclam9839
@aclam9839 3 года назад
would go for a solid state relay , low actuating current , no contact sparking
@RalphBacon
@RalphBacon 3 года назад
And in a previous video I showed the SSR I had bought. Comparatively speaking, it was *huge* , even more so with the ginormous metal heatsink required when passing substantial current. That discounted it for me this time.
@xanamata5386
@xanamata5386 3 года назад
i was thinking of an esp32 washing machine solution to replace the factory circuit . i m still thinking it but i bought a new washing machine :)
@zaprodk
@zaprodk 3 года назад
You can do that but you need to reverse engineer the washing programs first so you can replicate the functions. Also you need a watchdog so it doesn't end up hanging and flooding your house.
@RalphBacon
@RalphBacon 3 года назад
You mean you chickened out of designing a safe, all-singing motherboard for a washing machine? I can't imagine why! 😁
@zaprodk
@zaprodk 3 года назад
@@RalphBacon We had a washing machine in the local hackerspace where the controls went haywire. It's the perfect setting for building a custom controller, but the implications if something went really bad kept me from doing it, so we got another washer instead :D
@ianbertenshaw4350
@ianbertenshaw4350 3 года назад
Ditch the DHT series of temp sensors , they are crap - try the newer SHT30 or SHT40 units . The DS18b20 is reliable , reasonably accurate and can run on one wire .
@RalphBacon
@RalphBacon 3 года назад
I'll (probably) use a DS18B20 within the unit itself but for a remote sensor I might use the BME180 as it seems much more accurate - but that's another project away yet! The DHT11 I've used before (along with a DHT22) but the resolution is only 1ºC - not good enough for this project.
@blic-sx9ix
@blic-sx9ix 3 года назад
OK so you are not planning on using the internal T-stat. If it is a low voltage T-stat inside the heater why not just replace that with a relay. Then your relay does not handle the mains heater current.
@RalphBacon
@RalphBacon 3 года назад
Well, I'll keep the internal stat (as a fail safe) but I'm just about to check whether an SSR will fit inside the heater case. Better all round.
@MrCatchers
@MrCatchers 3 года назад
How the isolating transformer provides improved safety, always mystifies me. Its input is the same as its output, so how is 230V at the input somehow safer than the 230V on its output? Surely my body can’t tell the difference? I suspect the answer is obvious, but not to me.
@RalphBacon
@RalphBacon 3 года назад
The difference is this: the live mains 120v/240v will flow through YOU if you touch the Line (hot) wire because YOU are connected in some way to Earth (yes, even if you're standing on a carpeted floor). Because the Neutral wire is bonded to the Earth the 240v has no trouble flowing through you and to Earth. Ouch! With an isolation transformer, if you touch EITHER wire (but not BOTH) then no current will flow through YOU because the other side of the transformer is not connected to Earth and there is no path for the current to flow - so much safer. But not if you touch BOTH wires! Any clearer? Let me know for further clarification as I cannot afford to lose viewers 😁
@MrCatchers
@MrCatchers 3 года назад
@@RalphBacon I 'm more than happy to take your safety warnings at face value, even if I don’t fully understand them, so no chance of losing a viewer. It is clearer to me now; so an isolation transformers main purpose is to isolate the (intentional) bonding of neutral to earth? So I wonder, why is this bonding carried out? A quick search suggests this has something to do with the possibility of Neutral ‘floating’ up to live potential (more research required). Either way, we are getting a long way from Arduino land, but thanks for your response.
@RalphBacon
@RalphBacon 3 года назад
The main purpose of intentionally bonding neutral to earth (by the power company, either at the station, at the transformer on a pole at your house or even just inside your house) is to ensure that if any live wire touches an earthed case (eg your cooker) then it will blow the fuse rather than electrocute you. These days, if you touch the live wire the MCB (miniature circuit breaker) will trip before your heart stops (we hope) as the current is monitored and any current leaking to earth (via you) is noticed and the MCB will save you. All transformers (eg a 9v wall-wart PSU) are isolating, inasmuch that the output is not directly connected to the mains electricity; there are two separate windings, one of top of the other, bound only by magnetism. Otherwise we'd still get shocks from even a "low" voltage PSU.
@fredflintstone1
@fredflintstone1 3 года назад
A simple timer socket would work
@RalphBacon
@RalphBacon 3 года назад
It has one already, and no, it won't work. Where's the microcontroller?
@fredflintstone1
@fredflintstone1 3 года назад
why not ignore the heartbeat sensor, and set up times for it to work and with a humidity sensor as well and a lower temp after a certain time at night to keep a steady dry temperature, not sure I would trust a chinese relay to operate 2KW switching, maybe a contactor or solid state relay
@RalphBacon
@RalphBacon 3 года назад
If I don't have a heartbeat sensor (I think I mentioned I would do it the other way round and interrogate the sensor: "Are you still running?") how do I know when I have switched off my KILL-switch controlled power? Now, I don't really want the heater on during the night except in extreme cases (eg lower than 9ºC) - electricity costs money when used for heating purposes. I don't mind my workshop getting cold as long as it's warm when I arrive! I will source the relay from a reputable British supplier who has hopefully done all due diligence on the quality of the relays they sell. SSR is too big for this project, nice idea though.
@fredflintstone1
@fredflintstone1 3 года назад
@@RalphBacon solar a windmill and batteries may help go green:-)
@RalphBacon
@RalphBacon 3 года назад
I could freeze on a calm, winter's day, though!
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM 3 года назад
All fancy air coller hair dryer hair straight and lot of other thing use cap droper ......
@RalphBacon
@RalphBacon 3 года назад
Capacitive droppers will be fine if there is zero chance of the user touching _any_ part of the circuit, I agree.
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM 3 года назад
@@RalphBacon 👍
@Ernzt8
@Ernzt8 3 года назад
A heartbeat monitor is a smart decision. If you get murdered in your workshop, CSI won't get fooled by the temperature
@RalphBacon
@RalphBacon 3 года назад
So true, I hadn't considered that if the heater was kept on my body would remain warm... Jeez, Ernst, you've watched too much TV!
@VLandrew
@VLandrew 3 года назад
Tasmota way easier
@RalphBacon
@RalphBacon 3 года назад
If only I had a month or more to dedicate to learning all things Tasmota. I nearly did that a couple of years ago and proved that I could get Node-Red, MQTT and my RasPi all running but I never progressed. It was a long learning curve, but never say never!
@keitholiver3981
@keitholiver3981 3 года назад
Good project, I went down that route with the Pi Mode Red and MQTT works well
@BerndFelsche
@BerndFelsche 3 года назад
Don't really need an RTC if it's on your network. Control the detailed functionality via e.g. NodeRed, not local code and configuration. It doesn't take continuous chatter if you communicate only changes of setpoints when they occur, until they are acknowledged. Indeed there is scope for sleeping. There's no reason not to switch a 5V relay via a MOSFET. You manage your WiFi transmission so that it doesn't happen until the relay has switched the MOSFET gate to open "slowly" by placing a small capacitor on it.
@RalphBacon
@RalphBacon 3 года назад
Hence the "inbuilt" RTC that I mentioned (aka in software). As per my Home Alone ESP8266 circuit which gets the time from an NTP server. I'm not totally with you on the 5v relay. I wanted to avoid using the 5v supply as I could foresee potential issues with the VCC bouncing around as the high current was used by the relay. By using an independent 12v relay this is avoided (well, I hope it is). I've found that ESP32s are pretty sensitive on the old Brown Out Detected messages!
Далее
Редакция. News: 128-я неделя
57:33
Просмотров 1,9 млн
best way out of the labyrinth🌀🗝️🔝
00:17
Просмотров 935 тыс.
#265 Me & My 3D Printer - Just a quick chat!
23:42
Просмотров 7 тыс.
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 698 тыс.
The internet isn't as fast as it used to be
12:46
Просмотров 239 тыс.
Getting what You Paid for using Science
5:52
Просмотров 132 тыс.