#225

  Переглядів 8,510

Ralph S Bacon

Ralph S Bacon

День тому

From circuit design, through PCB and project construction. Your help is needed!
► JLCPCB $2 for 5 boards, any colour including purple, and Aluminium! www.jlcpcb.com/cyt
► My Github has more information!
github.com/RalphBacon/225-Pro...
00:00 Welcome Back
00:35 JLCPCB introduction
01:14 Where to start
04:33 Step 1 - Source Your Components
12:19 Step 2 - Design Your Circuit
13:15 Step 3 - Create all Symbols & Footprints
16:28 Step 4 - Design, Rinse, Repeat
26:02 Step 5 - Ask for peer feedback
So you're an Arduino project maker noob? Feeling a bit overwhelmed by it all? Where to start? What could possibly go wrong?
I describe what I do to maximise project success, from the schematic (circuit diagram), the PCB and obtaining all the parts, using my Smart Heater Controller that I'm building for my workshop as an example.
PARTS I'M USING (UK sourced, mainly, but available worldwide)
► 20mm Glass Fuse holder (240v 1A) rarecomponents.com/store/blx-a
► XE1201 snubber (and datasheet) cpc.farnell.com/unbranded/xe1... www.dem-uk.com/roxburgh/Data/...
► Myrra 47000 series electronic transformers (PSU) (I'm using the TF01451) cpc.farnell.com/myrra/47246/p... www.farnell.com/datasheets/60...
► Multicomp Pro miniature power relay (12v/16A @ 240v) and datasheet cpc.farnell.com/multicomp/hrm... www.farnell.com/datasheets/13...
► Waterproof Plastic Electronic Box Enclosure, Case Cover, Various Sizes www.banggood.com/custlink/3mG...
► ESP32 Mini (dual row of pins, not the easiest to use) from the UK warehouse, 1 week delivery www.banggood.com/custlink/333...
► An easier to use ESP32 Dev Board, half the price too (when bought from China)
www.banggood.com/custlink/G3K...
INFORMATION
► The GNU GPLv3 lets you do almost anything you with this project, except distributing closed source versions.
► List of all my videos (Special thanks to Michael Kurt Vogel for compiling this)
bit.ly/UKpostsVideoList-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
------------------------------------------------------------------

КОМЕНТАРІ: 182
@willofirony
@willofirony 2 роки тому
A very welcome example of the realities of engineering design. I was reminded, somewhat, of my time as a chemical engineer student. We spent an inordinate time learning to calculate the required size of a heat exchanger for various situations. Thermodynamics entail calculations that are not so much difficult as they are tedious but we were required to come up with results of very fine tolerance. After graduation, we were all to discover that said heat exchangers were not bespoke items but were, in fact, "off the peg" components. Most of the time we would be require to select from, maybe, four or less items way bigger bigger than our precise calculations demanded. Further experience taught us that, unless one was designing a formula one racing car, ones life was filled with Hobson's choices. This video was valuable for sharing such compromises that are the basis of all design. All too often, maker videos skip this stage of design, leaving the viewer with the impression that the choices of components spread out on the camera table were the obvious choices and if you couldn't see that, maybe you should leave the designing to your betters.
@RalphBacon
@RalphBacon 2 роки тому
There's a huge gulf between _theory_ and _practice_ , I agree. During my time as a professional web developer, I was told that I was spending too much time (ie the company's money) in getting it "perfect". I think the phrase was "Platinum Plated". Hence I quickly learned to adopt the 80/20 rule which, roughly stated, says that the last 20% of development takes 80% of the time. Good enough is Good enough. Stop developing and get the project to market! Unfortunately, it seemed that documentation and testing resided in that last 20% - we all know where that leads to. Sigh. But these days there's no boss on my back hounding me so I try and do it right. It never is 100% but that's my aspirational goal!
@mikehensley78
@mikehensley78 2 роки тому
Another popular box is called a "hammond box". They are made of aluminum and other various materials. They are also very affordable and easily cut or drilled. I did a project last fall similar to this one. It kicked a heat lamp on when the temp got too low for my kids rabbits. I love these projects but never have time in the warm months BUT! winter time is coming. Great video! :)
@RalphBacon
@RalphBacon 2 роки тому
Thanks for the info, Mike! However, in this case (no pun), the last thing I wanted was metal. Using a plastic case with no exposed parts I'm quite happy it will be safe. But I will look up those boxes for future projects, thanks again for the info.
@RalphBacon
@RalphBacon 2 роки тому
Here's a link to a UK supplier but probably available worldwide: www.rapidonline.com/hammond Many types of boxes not just aluminium.
@420basco
@420basco 2 роки тому
great video, i was actually thinking of designing a pcb so the timing od this upload was on point!
@RalphBacon
@RalphBacon 2 роки тому
I had this strange vibe that you were thinking of designing a PCB! But as another viewer says, you need to quadruple check the PCB in all aspects before sending it off; including the silkscreen!
@stephenremillard9462
@stephenremillard9462 2 роки тому
Sir, I love your videos. The way you explain the topics, the tone of voice, everything is perfect. Thank you from Canada.
@RalphBacon
@RalphBacon 2 роки тому
Glad you like them! Of course, I do speak The Queen's English, just without any plum in my mouth. Drat! Now I want a plum.
@claudiomoles
@claudiomoles 2 роки тому
Very good project, I know you do not want to change your project, which is looking very good indeed, but one thing I would do is to move the relay and put it sideways to the transformer, so tha the low voltage coil stays on the low voltage side. I get very nervous when I see low voltage tracks running in the same side as mains. You know arcs are unpredictable. I would also move the slots underneath the transgormer and relay to avoid any arcs making visits to the low voltage side. I made a soft start for amplifier I am doing and run into the same issue of mains in the same PCB (and in Brazil we have 110V only). My contribution to the excellent work you do.
@RalphBacon
@RalphBacon 2 роки тому
Thanks Claudio, I shall investigate what you say later this weekend. Thanks for the feedback.
@dom1310df
@dom1310df 2 роки тому
Toolstation and CEF sell PVC back boxes and blanking plates, which will drill fine. They also have a knockout at the top (or bottom) for 20mm conduit, but you could put a gland there instead.
@RalphBacon
@RalphBacon 2 роки тому
Very useful to know, Dominic, I find those boxes very useful and, most importantly, don't look out of place in a domestic environment.
@boblewis5558
@boblewis5558 2 роки тому
Hi Ralph. Really nice to see someone going through the overall mechanical design process as I find it immensely frustrating that videos appear of neat tools/circuits but zero consideration of how they'll be fitted/mounted/used in anger! Good job ... More please. Some points for you to consider for any future majns control projects. 1. Complete isolation of control electronics from mains level can easily be achieved by using an opto-coupler like a PC817. These (or similar) are ubiquitous in computer ATX supplies ... One reason to NEVER bin them but scavenge out ALL the parts ... mechanical, electrical AND electronic. Others have proposed moving the relay to have the low volts on the low volt side BUT most relays will have the common pin (high or mains power) sitting in between the coil supply pins ... NOT the best scenario! Using an opto-coupler completely removes this problem. Coil power can be derived simply from the mains side by a simple resistive or capacitive dropped with some suitable filtering caps. The input side is fully Arduino) ESP compatible requiring only a simple series resistor from the output of the MCU to provide the right drive current for the input side. It also means that no tricky slot cutting around the common pin is required and separation on the opto is significantly greater anyway. 2. Many people also don't realise that there are dedicated triac opto drivers that INCLUDE zero switching technology so BUYING a commercial "electronic relay" is generally completely unnecessary since the triac is either on or off and does BOTH at the zero point when required (for YOUR type of design) Again, it's FULLY isolated to >1 or 2 kv or more, minimal external components, as small in total footprint as a small relay, minimal heatsinking required (it's either fully on or fully off for your requirement) and 100% directly compatible with MCU output levels. Switching up to 13A for a wall heater can use a low cost T2035H-6I 20A, 600v, 1v trigger, 5(£1.28 - 1 off from CPC/Farnell). PLENTY of practical design ideas online for the MOC20xx series optos ... Worth taking a look at. 3. When cutting out PVC/ABS front panels by hand, whenever possible, mark up and cut from the inside out as any slight errors or slips can more easily be disguised. 4. Fit displays with bezels to the OUTSIDE of the case wherever and whenever possible and make up a short jumper cable to achieve an even more professional looking finish ... Also hides those slight cockups we all make when hand cutting. 5. When cutting rectangular holes in plastic do NOT use the sharp edge of the blade ... Use the BACK of the blade to 'scrape' through instead. Tape a metal ruler to the panel along the OUTSIDE of the line you are going to cut. Use the edge as a guide and ONLY cut a max of just over halfway from each corner so that you don't cut past them. Do each line in turn ensuring you finish on a long edge for maximum accuracy and control. Hope the above provides some useful input for your viewers as well as yourself. Bonus tip: One final thing which is a pet thing of mine ... Try, wherever possible to use ferrules (bare ones are fine) when connecting wires to screw down terminals, even IF they have the protective internal tabs ... They insert MUCH more easily and are WAY more secure. Crimped is best but for those with limited budgets and/or tools, soldering is fine and still better than bare or soldered wires.
@RalphBacon
@RalphBacon 2 роки тому
Lots of great info here Bob, thank you so much. I hadn't considered opto-couplers here (even though I have a whole bunch of them) as I'm not sure that complete galvanic isolation is required (the relay is the only "touch point", so to speak). Regarding ferrules you are preaching to the converted, Bob. I have a whole selection of sizes and use them a lot, especially on mains cables. I even have the proper crimper, works very well.
@jonathanmartins7744
@jonathanmartins7744 Рік тому
This video is much better that any university!
@RalphBacon
@RalphBacon Рік тому
Wow! High praise indeed, Jonathan! 👍
@andymouse
@andymouse 2 роки тому
Hi Ralph, yep lots more to do when you have the software and hardware running on the bench ! I have had PCB designs sitting there for ages and I check them over and over again and I have found problems on my second and third time through so its well worth taking your time at this stage ...measure twice cut once !.....cheers.
@RalphBacon
@RalphBacon 2 роки тому
I'm amazed at how much I find wrong with my PCB designs even after several checks, and printing out the schematic, checking off each and every pin. I long for the days when I had a team to do peer checks. Well, I suppose I have now!
@cirdiam1800
@cirdiam1800 2 роки тому
Big Clive always seems keen on slots in the pcb to isolate mains traces from low voltage traces. Seems like a good idea to reduce mains voltage/current from tracking through surface dirt and grime from mains area to low voltage area over the years.
@RalphBacon
@RalphBacon 2 роки тому
I'm pretty sure air gaps are to separate high voltage tracks where they may jump if too close together; whilst they _may_ also prevent some sort of strange, high resistance leakage due to grime over the years, I'm pretty sure they are not needed here. Maybe I need to look at Clive's videos on the subject.
@tim_bbq1008
@tim_bbq1008 2 роки тому
lots of good information here, thanks for sharing
@RalphBacon
@RalphBacon 2 роки тому
My pleasure, Tim, I hope you found it interesting _and_ useful!
@avejst
@avejst 2 роки тому
Great walkthrough of the problems with making a new design/Project Thanks for sharing your experiences with all of us :-)
@RalphBacon
@RalphBacon 2 роки тому
Glad you enjoyed it!
@satchell78
@satchell78 2 роки тому
I was just pondering this, regarding experience. School can only take you so far. UKposts is invaluable for showing broad theory. Thank you for sharing some insight Ralph
@RalphBacon
@RalphBacon 2 роки тому
As they say, You Can't Learn Experience. Sometimes, we just have to watch and then DO stuff - and be prepared to get it wrong, sometimes - that's the bit they call Experience! As they also say, Experience Doesn't Come Cheap. Tell me about it.
@gpTeacher
@gpTeacher 2 роки тому
Hi Ralph. Great video. You may want to use noBacklight() to turn off your LCD display instead of having to use a relay to turn off the LED via the jumper. Dimming probably won't make that much of a difference as you probably can't read a dim display from your desk anyway. noBacklight() will turn of the LED completely from inside your sketch. Safe yourself some wire. Thanks for a very informative tutorial. Best wishes, Gord
@RalphBacon
@RalphBacon 2 роки тому
Thanks for the tip, Gord! Although I'm not using the relay to turn off the backlight, I'm proposing to use a MOSFET (so I can dim it). We'll see how it goes.
@chrismolloy131
@chrismolloy131 2 роки тому
Well talked through.
@RalphBacon
@RalphBacon 2 роки тому
Thanks, Chris, hope you enjoyed it!
@Tekwyzard
@Tekwyzard 2 роки тому
You can PWM that pin on the display directly from a GPIO pin, it is only a single LED after all. I know you want to do it right, but that method works perfectly on my 2004 heating controller and climate readout display run by a Tasmotised Wemos D1 mini, to make it a nice but not full brightness throughout the day, and to dim it at sunset so that it doesn't burn my eyeballs out later on. Also check out your local electrical suppliers for enclosures, I use 'Gewiss' boxes, which you can drill or cut to your hearts content, and they are very robust while being suspiciously cheap for something so good.
@RalphBacon
@RalphBacon 2 роки тому
You are doubtless correct, Ken. If I'm going to drive an LED via a MOSFET, why not drive it directly. Hmm.
@DuckDonald1969
@DuckDonald1969 2 роки тому
Hello Ralph, first of all many thanks for the project. It is really great. But I would have a few objections: 1.) Try (as Superdau already described) to separate the 230V AC from the extra-low voltage better. I got a stomach ache that you have 230V on one side of the board and 12V on the other side directly above each other. Better: Place the relay below the transformer and then really all 230V lines on the right hand side. 2.) Supply the DS18B20 sensor with 3.3V. Not with 5V. First: It works (probably not) I tested this some time ago with the ESP8266 and second: The inputs of the ESP32 are (in my opinion) not 5V tolerant. 3.) Check if the P-Chanel MOSFETS are really completely switched off at a gate voltage of 3.3V (at a source voltage of 5V). Better: Use a combination of N- and P-Chanel MOSFETS. 4.) I would turn the ESP32 by 180degrees. Then the USB connector is on the left side and you could connect (with a small hole in the case) a USB cable. 5.) Make sure that the line to the DS18B20 is far away from 230VAC lines. 230VAC are very "dirty" and cause interference on the One-Wire bus when switching. (Unfortunately I had to make this experience) 6.) Check if the traces for the 230V circuit are wide enough. After all, 8A must flow here. These seem a little "thin" to me. I have already made some 230/5V boards. There is already really a lot to consider. But, as I said great project. Keep it up. Best regards Frank
@RalphBacon
@RalphBacon 2 роки тому
Good points, Frank. I will get out my EasyEDA circuit and go through each of your points over the weekend. BTW regarding the traces for the 8A mains, I intend to solder a 1.5mm wire onto the trace so that it won't evaporate the instant I turn on the heater!
@cclumist
@cclumist 2 роки тому
Thanks for sharing
@RalphBacon
@RalphBacon 2 роки тому
Thanks for watching!
@superdau
@superdau 2 роки тому
Ahhh, gotta gouge my eyes out after seeing an auto-routed board, especially a simple one like this. Fixing the auto-routing will most likely take as much time as having in done manually in the first place ;) . Putting the *relay besides the PSU brick* should easily possible. Then the mains/low voltage separation would be much more obvious. Not that it is a problem, if you move the tracks a little, there's enough space for separation. But better component placement would get rid of the need to even think about it (and not using the auto-router ;) ). I've never used EasyEDA (was an Eagle user in the pre-autodesk times, now KiCad user), but there should be an option for a keep-out zone/clearance around a *hole* (and not only for copper, but also solder mask for example). I can't imagine something basic like that would be missing from EasyEDA. What pretty much does what you did, but without having to manually draw circles, is to *insert a pad not connected to any net* . Set the pad diameter to the diameter of the screw head/washer plus some wiggle room (and pad drill diameter to screw diameter obviously). You will have a copper pad around the hole, but since it won't be connected to anything it doesn't matter (and your way of drawing the circle has that anyway). The best option would obviously be to not use the auto-router, then you wouldn't have to worry about tracks suddenly being to close to a hole in the first place. Did I mention that auto-routers are pretty bad? ;) The *connection of two of the MOSFETs is weird* . It looks like you are switching the high side of the with an N-channel MOSFET. Same thing with the LCD PWM MOSFET (although I don't see where the "LED" signal is coming from). I'm pretty sure those FETs are on the wrong side. Does the ESP-module have integrated level shifters? I don't see pull ups for the I2C bus. You are also pulling "DQ" to 5V. An *ESP32 is not 5V tolerant* on its pins. Without logic level shifter you are using the ESP's internal ESD protection diodes to clamp the "DQ" pin voltage to 3.3V plus a diode drop through the 4.7k resistor. I don't know, if the internal diodes can handle that continuously (check the data sheet for the maximum clamping diode current).
@RalphBacon
@RalphBacon 2 роки тому
I've tested the MOSFETs at 3v3 (which is why I've lots of these 2N7000s) and they seem to work well without getting warm. The DS18b20 is definitely taken to 3v3 not 5v. I wonder if I posted an older schematic as you are not the first to say this. Oops. I just 💘 the autorouter! It can route a whole board in seconds rather than me faffing about. OK, in this instance there are some tweaks needed but usually it's pretty good (and has got a lot better just lately). I know, typical amateur approach!
@superdau
@superdau 2 роки тому
@@RalphBacon I looked at the schematic and board layout in the video, which seems to be the same image as on your git repository (showing 5V). With 3.3V at the gate the MOSFET can barely be called "on". It will most likely have an R_DS_on in the order of tens of Ohms. Definitely not suitable to drive a load of more than 100mA. A NPN transistor would be much better suited for switching with 3.3V. But while driving an 2N7002 with 3.3V is an issue, it's not the main one here. You connected the MOSFET in a way which isn't right. Just because something somehow works, doesn't mean it's ok. You put the n-channel MOSFET on the high side of the load (the beeper). There are only very limited cases where you'd ever do that and it usually involves an extra gate driver chip. Here is the reason why it's wrong: assume you can turn on the MOSFET with 3.3V at the gate. In the on state the MOSFET should have a very low R_DS_on resistance, which means drain and source will be at a very similar voltage. You connected the drain to 5V, so the source will be close to that voltage (minus the voltage drop due to R_DS_on and the load current, the exact value doesn't matter). The gate is still at 3.3V, but the source at something close to 5V. How can the MOSFET be "on" when the voltage from gate to source is negative? Well it can't, that's the point. Depending on the load, how the tracks are laid out, what batch of transistors you got and other unknowns it will either oscillate wildly or be in some analog limbo state where the 3.3V at the gate keep the MOSFET barely open and the FET drops a few Volts to keep the source at lower voltage than the gate. Something similar with LCD PWM. You just can't reliably pull up to 5V with an n-channel MOSFET and a gate voltage of 3.3V.
@MUHAMMADYAWARIFRAHEEM
@MUHAMMADYAWARIFRAHEEM 2 роки тому
Very nice video Sir
@RalphBacon
@RalphBacon 2 роки тому
Thanks and welcome! Good to see you here, Muhammad!
@arniep740
@arniep740 2 роки тому
Thanks for this video. I wonder if you could give some more detail as to how to create the 'boundary rings' that you mention around 20:30 to keep the HV traces away from the mounting holes. I look forward to all of your videos!
@RalphBacon
@RalphBacon 2 роки тому
The rings were just circles on the top and bottom layers. Quite thin, 10mil or so. No NET name. But there is apparently another way to do this, read the later comment -= basically creating a Design Rule for a certain NET which will be the hole. I'll be trying this later this weekend.
@LeeLayland
@LeeLayland 2 роки тому
When we designed a project at work - in prototype form, we used an OHP transparancy.Print any letters etc you want, and create a window for your display, then mask the display area, and spray the back of the film. You end up with a neatish front cover that hides a multitude of sins!
@RalphBacon
@RalphBacon 2 роки тому
Ah yes, any kind of printed front cover "sticker" would work, I've done that before. Make something nice on a printer, print it on photo paper (or similar) and stick it on. Looks very professional. I'd forgotten about doing that! Good suggestion!
@CXensation
@CXensation 2 роки тому
Nice stuff. If you only need the reset button for emergency cases, you could drill a tiny pin hole through the front plate., right over the switch. Much like the emergency release on DVD players
@RalphBacon
@RalphBacon 2 роки тому
Good tip! I'd thought of that, but since then I've discovered that the LCD gets corrupted whenever I do an OTA update so I will probably just have an on/off switch (momentary, NC) switch somewhere.
@MrGoatflakes
@MrGoatflakes 2 роки тому
Ah yeah good ole UPCI (Universal Paperclip Interface), one of Apple's better inventions 😹
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 2 роки тому
remember you need to check the creapage and clearance distances between the mains and any low voltages. plastic screws for the display would help keeping the box double insulated, so i would drop the metal clad leds. Avoid bringing any metal that can be touched out of the box. if the live fails to the low voltage these could become live. for the reset fit the switch behing a hole maybe on the side of the box.
@boblewis5558
@boblewis5558 2 роки тому
Metal bezel LEDS on a plastic case will be isolated to at LEAST 1kv so not a problem. On a metal case the panel should be earthed directly to mains earth for safety obviously.
@RalphBacon
@RalphBacon 2 роки тому
All good feedback. Yes, I'm using plastic screws for the display and, for different reasons, I might yet opt for those plastic LED push-in panel holders (they are smaller, that's why). I'll bear in mind all the other stuff you mention. 👍
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 2 роки тому
@@RalphBacon Want to sell you kit in the EU or UK (CE mark & UKCA mark) then You need to show compliance to the requirements of:- • Low Voltage Directive (LVD) • Electromagnetic Compatibility Directive (EMC) • Radio Equipment Directive (RED) (if it has an esp8266 or esp32) • Restriction of Hazardous Substances Directive (RoHS) • Waste Electrical and Electronic Equipment Directive (WEEE) By your statements in the Declaration of Conformity (DOC) The DOC needs to be signed by a responsible person. (Poor bugger to take the blame) And of course all this backed up in your technical file. Who would want to do this for a living?
@RalphBacon
@RalphBacon 2 роки тому
My "real" electronics engineer friend had to jump through many hoops to get one of his designs tested for RFI, heat tolerance and many other things that I didn't really understand. It passed (I did say he was a _real_ electronics engineer) but it was for his company, so the cost was not his to bear. Took a long time but it was required, as you say. I can't imagine _anyone_ doing that for a living. Unless...?
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 2 роки тому
@@RalphBacon Well i did spend a few years and close to £1.5M on CE and E-mark testing, on medical, industrial, and lighting and equipment control systems on emergency vehicles. Medical and E-marking being the worst to do IMHO as there is so much more paper work than normal CE. Have been doing EMC testing on and off for about 30 years on mil avionics. But now I just do it for fun. ;-)
@philipreed2758
@philipreed2758 2 роки тому
Hi Ralph, love watching your videos and your finally doing one around my field. as ever you know what your doing, but if i can throw in a few pointers i would have done differently, which others may have suggested, 152 comments atm was way too many to scroll through lol. firstly the tracks for your mains on the PCB. you mention 8 Amps for the heater, so i would check out the track widths which look way too thin as i see them, also worth checking the technical data for the terminal block you are connecting the mains with, just to be sure it is rated for the application. on another note, when putting mains onto a PCB, i tend to only have them on one layer, usually the bottom layer which helps minimise any risk of contact. and lastly, the importance of protection, i see you have not allowed for a fuse? other than all that at first glance, it looks fab. oh regarding the cut outs on boxes, i sort of cheat as i have a laser cutter. if ever you need any cut outs doing, maybe i could help in the future. Cheers Phil
@r1273m
@r1273m 2 роки тому
I once saw someone build a mains circuit using 0.15in VERO board. The flash and bang were quite spectacular but what was interesting was the way the VERO failed at every hole because the track was reduced in cross section by the holes. It's not just the track width of course, it's the thickness of the copper also.
@RalphBacon
@RalphBacon 2 роки тому
I'm soldering thick wire onto those tracks to take all that current. The tracks them become almost incidental. I did not allow for a fuse in the main (8A) feed, as it is protected by the MCB in the consumer unit (the same as it is now) but the heater itself is still using a 13A plug with suitable fuse.
@flemmingchristiansen2462
@flemmingchristiansen2462 2 роки тому
Great work, good explanation. You could have placed the relay next to the transformer and thereby keep the low voltage on the left side and high voltage on the right side. -Are you soldering the LED's to the board? -that could give you a hard time mounting them, even more when yo need to open the box. Love to see it finished.
@RalphBacon
@RalphBacon 2 роки тому
I'm using header pins/Dupont cables for the LEDs (probably) as I'd like to be able to remove the lid entirely. I hear you about the relay positioning...
@ludgermimberg2908
@ludgermimberg2908 2 роки тому
Ralph, you asked for it (peer feedback)... Your FETs Q2 and Q3 won't work as intended. They are n-channel FETs and would need a gate voltage higher than 5V to turn them (fully) on. BTW: The 2N7000 may not turn on all the way even on location Q1. At least it will not turn on to a very low resistance. Check the Vgs voltage in the datasheet. The ESP only drives 3.3V signal levels, or did I miss a capability? And since we are at voltage levels. The DS18B20 DQ pin is pulled up to 5V. So please check if that pin is 5V tolerant. I actually use the DS18B20 with a VCC of 3.3V and it works fine. So you can supply it with and pull it up to 3.3V.
@RalphBacon
@RalphBacon 2 роки тому
I used the 2N7000 MOSFETs as, during testing, they performed admirably, Ludger. I seem to remember that the VGS(th) is quite low; at least, it worked in all my breadboard tests. Just checked: between 0.8v (min) and 3v (max). Re the DS18b20 I have connected to 3v3 with a 4k7 resistor to DQ; that too is fine during testing. Phew! I think we're good to go.. well, good to proceed very cautiously, thanks for the feedback, it certainly made me check a few things!
@ludgermimberg2908
@ludgermimberg2908 2 роки тому
@@RalphBacon OK, then. You can actually turn on the buzzer when the FET is at VCC? It probably works fine when at GND.
@qzorn4440
@qzorn4440 2 роки тому
yes a lot of our new EE's have weak how-to info, and the O-scpoe is more of a Zero-scope checking things like 480vac, encoders , etc...:/ as usual another great vid...💪 thanks.😁 easyEDA looks interesting, however about a year ago KiCad was what i went with... another fun learning curve...😘 and made footprints, etc. the PCB came nice...:)
@RalphBacon
@RalphBacon 2 роки тому
Believe me, I tried and tried to like KiCAD. Whilst I could do (most) things with it, it just annoyed me intensely. I found it hard work and eventually decided to focus on EasyEDA which does enough of what I want and it's very intuitive (for me, anyway).
@jensibek
@jensibek 2 роки тому
Hi Ralph! I'm glad that i some 15 years ago decided to learn how to make 3D drawings. The 3D printers was in their childhood and i knew that i would be able to afford one at some point. And whats the point of having a 3D printer, if you can't express in drawing, what you want to achieve :-) That gives me an enormous freedom to day, when drawing PCB s and enclosures. And further more, - I know where i can send the complain if somethings does not fit. Have fun, and have a nice day Regards Jens
@RalphBacon
@RalphBacon 2 роки тому
Very cool! That was certainly good forward thinking on your part, Jens. However, I learned PCB design (sort of) in about 2 years so maybe if I apply myself I can do the same for 3D design. Maybe!
@jensibek
@jensibek 2 роки тому
@@RalphBacon - Oh. - I'm quite sure you can. Just search for like - Fusion 360 tutorial here on YT, watch 2 or 3 of them and decide for your self.
@jensibek
@jensibek 2 роки тому
@@RalphBacon - But something else,- I think it will interest you a lot to find and read the User Manual for the PicoMite (Draft). You can find it on TheBackShed Forum - Microcontroller and PC projects. I would have link it but YT have made that impossible.
@RalphBacon
@RalphBacon 2 роки тому
Funnily enough, I got notified of your original comment (3 times!) but, as you say, YT seem to have zapped it. Probably a bot. I'm looking at the MMBASIC manual right now. If I think it will appeal to my (noob) viewers I'll take it further. I think it's main focus should be school kids; the school can afford a few PICOs, I'm sure, the software is free to download and the kids can flash an LED in no time. After that, Robot Wars will rage in the classroom. Thanks for sharing.
@RalphBacon
@RalphBacon 2 роки тому
Your reply was "This comment is no longer available". I think you've really upset YT at some point! But exciting times indeed! (The only bit I got to read).
@YTbxg
@YTbxg 2 роки тому
Theres a lot of wifi mains sockets suitable to plug the heater into, so no need to put any electronics into the heater enclosure just plug the heater into the smart socket. For your low power control box you could incorporate a mains socket, sort of inserted into a cutout in the back of the control box enclosure. You could then plug in a wall wart, but maybe instead of a 3 pin power outlet in this mains socket there are usb power outlets designed to fit the pattress box and you could then feeds your low power circuit board with a simple usb lead all inside your enclosure. Your esp32 then sends appropriate wifi commands to your wifi enabled heater socket. Ok, smack my wrist, this is a bit of a redesign suggestion which is probably not appropriate, but it does eliminate any possibility of getting anywhere near mains voltages.
@RalphBacon
@RalphBacon 2 роки тому
Smacked wrists indeed, BG! I had actually thought of using my Sonoff unit to switch the heater on and off (works with Alexa), using MQTT/Node Red and a RasPi but it all felt a bit plug-and-play. I want to design from the ground up and get my hands dirty.
@TheEmbeddedHobbyist
@TheEmbeddedHobbyist 2 роки тому
you could move the relay closer to the psu so that the low voltage to the coil does not need to go close to the mains. it the heat and stby leds are on the case you don't need the pcb area taken up by the body shape of the LEDS, just a 3 pin connector.
@RalphBacon
@RalphBacon 2 роки тому
As per my previous post, all good things to consider.
@MrGoatflakes
@MrGoatflakes 2 роки тому
21:55 don't forget that in many commercial products that they also don't bother to line up LEDs on the circuit board and instead use light pipes. You could do the same with a piece of slightly oversized acrylic rod. Or same sized if it doesn't bother you that the brightness might vary between units that are off by varying amounts.
@RalphBacon
@RalphBacon 2 роки тому
I have some commercial devices (eg USB hub) that use light pipes (I never knew they were called that!) and it's still a possibility if I can figure out how to secure the acrylic rod to either the PCB or front panel. Any ideas? The one in my hub is custom formed to clip in.
@CTCTraining1
@CTCTraining1 2 роки тому
Excellent video explaining your thought process. Only thing I would have added into the consideration (which you probably did but just didn’t voice) was that it is worth not modifying components like the fire which I might expect to replace when they fail. If I put a lot of effort locating a hiding place for the electronics inside this particular heater is there any guarantee, when I need a replacement, that I can get exactly the same model, or one with a similar hidey-hole? Do I want to repeat the steps to re-embed the controller int9 this new unit? Sounds like work I don’t need. Much better to utilise the interface that most heaters provide ie the lead and keep things simple. Great project and thx for sharing. 😀👍
@RalphBacon
@RalphBacon 2 роки тому
If the actual heater had a place that I could have used (easily) I might well have considered it. As it happens, as you say, I can now replace that heater with another, non-identical model and it will still work without any modification. I like that approach, it's true.
@markcummings150
@markcummings150 2 роки тому
Thanks for the tip on how to create a slot in a pcb. I’ll have to see if my pcb app supports that.
@RalphBacon
@RalphBacon 2 роки тому
Yes, very useful for creating slots for a cable tie to hold things securely, as you saw in my video. Or separating high and low voltages with an air gap, which in this case I didn't need.
@schwalbefahrer
@schwalbefahrer 2 роки тому
Awesome video. I like the level of detail. My two cents: For housing and finding the right box: maybe 3d printing is also an option you didn't mentioned. For PCB design: I like KiCAD :) ....
@RalphBacon
@RalphBacon 2 роки тому
If only I had a 3D printer (and knew how to use it)! But as for KiCAD, I've said it before, "Designed by geeks for geeks". I just found it hard work, powerful though it undoubtedly is. 🙄
@ismzaxxon
@ismzaxxon 2 роки тому
keep your low voltage the same distance away as the relay pins and from the contacts. Cut your slots there. Make your mains power tracks at least twice what you have now or you will burn out the tracks on inrush current. Leave tracks open and fill with solder if you need to. An overloaded track will coil up and short out. Whilst you may have a 15 amp relay, you have two amp PCB tracks. Slots are nice, but when it comes to inspection, they use distance. CE rules are a minimum of 6mm.
@RalphBacon
@RalphBacon 2 роки тому
I'm going to solder wire that can carry all that current on top of the tracks (effectively making the tracks redundant), Terry. I've read up about slots, I don't think any are required here, you reckon between the coil contacts and the other relay contacts?
@ismzaxxon
@ismzaxxon 2 роки тому
@@RalphBacon When i had products put through for testing, these were the requirements. I even had to choo opto isolator pads to get the 6mm
@OsoPolarClone
@OsoPolarClone 2 роки тому
I enjoyed your sharing your thinking process on the design and future changes that might happen. VERY INFORMATIVE. Thanks. P.S. One question. Why didn’t you orient the relay and the transformer next to each other so that one end of the PCB was mains and the other side of the PCB low voltage with a gap in the board between them? Was it a limitation of the size of the box?
@RalphBacon
@RalphBacon 2 роки тому
One limitation was certainly where the LCD screen would impact anything underneath and after 100 iterations of what would fit where, I sort of settled on this design - not perfect and maybe I will improve upon it as per your comments, Bruce. Thanks for the feedback.
@jyvben1520
@jyvben1520 2 роки тому
printing the 3d view on a 3d printer would be nice for some projects, to test fit inside a case or with other boards. 11:30 calipers can also be used for depth, using the "tail"
@RalphBacon
@RalphBacon 2 роки тому
The box is still too deep for the callipers, Jyv, I tried each and every way. Yes, if I had a 3D printer I would use it for this.
@fredflickinger643
@fredflickinger643 2 роки тому
Hello Ralph, I found both the schematic symbol and foot print for the Myrra 47246 on Farnell via Ultra Librarian which is always a good source.
@RalphBacon
@RalphBacon 2 роки тому
Drat! Now that I've designed both myself! Well, it's good to know of a source of future symbols and footprints, and I got more experience in having to design my own! Thanks for the post, appreciated.
@zaprodk
@zaprodk 2 роки тому
You use the long pointy thing at the end of your caliper to measure things in deep holes :)
@RalphBacon
@RalphBacon 2 роки тому
It just won't fit! I wanted to measure the distance between holes but there was not way any part of the calliper (pointy or not) was going to fit in there. But they are a godsend when measuring components!
@jeffbluejets2626
@jeffbluejets2626 2 роки тому
I have cut 16x2 lcd's into a case lid the same as yours, quite neatly by marking out with an ink type marker pen (fine tip) and then cutting, ever-so-carefully and a bit at a time using a steel rule to begin with as a guide and a stanley knife. Start in one corner then cut about half way along, reverse and cut from other direction. Have to be really careful though as any slip with a finger in line will be disaster. Still, your box is a couple of metres away so who will know. :)
@boblewis5558
@boblewis5558 2 роки тому
Sorry, hadn't read your comment before I included your tip almost verbatim ... With one extra thing though. Never use the blade edge to cut but rather the back edge of the blade to "SCRAPE" the plastic away. This provides a VERY clean cut and automatically leaves blade clearance. Just make sure your straight edge is aligned such that you are cutting the INSIDE part of the cutout so any minor slips won't matter as they'll end up on the piece being removed.
@RalphBacon
@RalphBacon 2 роки тому
I did the 16x2 cut-outs exactly as you described, Jeff, but without enough of the "ever-so-carefully" I guess! But I do have some bezels that will smarten things up (= hide my bad cutting). ☺️
@jeffbluejets2626
@jeffbluejets2626 2 роки тому
@@RalphBacon Interesting about the bezels...where did you get them. I've looked many places before but could never find any........short of a 3d printer I imagine.
@600lester
@600lester 2 роки тому
Hi Ralph great video just one thing, the track size on the pcb look a little on the small size for carrying the current of the heater?
@RalphBacon
@RalphBacon 2 роки тому
They are indeed, as they stand. I'll be augmenting them with some high current carrying wire soldered to the track. I've seen Sonoff do this and it works well. The current is carried by the wire rather than the track.
@BerndFelsche
@BerndFelsche 2 роки тому
SSR can be mounted on any thermally conductive surface of sufficient area. I've used steel enclosure side panels. Read the device datasheet for guidance.
@RalphBacon
@RalphBacon 2 роки тому
But, presumably, not inside a hot, heater area? And I would not want to mount it _externally_ so I ran out of options, to be honest Bernd.
@MrEdwardhartmann
@MrEdwardhartmann 2 роки тому
I don't remember if you are into 3d printing yet, but if you were, you could easily print a black bezel to snap over the cutout for the led just to dress it up. Purely cosmetic. Ether that or invite Clickspring over with his micro-files to clean up the edges for you!
@RalphBacon
@RalphBacon 2 роки тому
Not yet, Edward, although I did spend a couple of hours on Sunday doing some Fusion 360 training. Slow going (always is for me) but the 3D printer I hanker after is now 1m closer to my workshop! BTW I have _bought_ some 3D printed bezels that might work. We shall see.
@gazzacroy
@gazzacroy 2 роки тому
yer you made a nice lay out there that half the battle lol.. trying to make all the holes and slot alright is a night mare, sometime using masking tape on the front plastic helps to make markers and helps drill slippage (of which im a pro at lol). nice video again sir, i do like your content. please keep up the good work :)... it must be a night mare comming up with videos i guess theres only so many things we can make lol.. see you soon fella :)
@RalphBacon
@RalphBacon 2 роки тому
It's taken forever to get round to this project and it's the _hardware_ that takes (and is taking) so long. The software takes long enough but getting all the hardware "just so"... that's a different kettle of fish entirely! But it will be done, so keep tuned!
@gazzacroy
@gazzacroy 2 роки тому
@@RalphBacon man have you seen the price of some of them plastic boxs.wow a bloody weeks rent lol
@RalphBacon
@RalphBacon 2 роки тому
They have always been expensive, decades ago to now. That's why it's cost effective to make your own with a 3D printer, if you have one.
@SteveRaynerMakes
@SteveRaynerMakes 2 роки тому
Hi Ralph. I'm curious about your choice of the fuse. I saw in another comment you are using a 1Amp glass fuse. I was wondering in what circumstances would you have selected a ceramic version? Also with it feeding a transformer will you be using a T (time-lag) or an F (fast blow)?
@RalphBacon
@RalphBacon 2 роки тому
I'm using a quick blow 20mm glass fuse. A ceramic fuse is normally chosen when there is a high(er) current as the ceramic fuse (normally filled with a type of fine sand) will prevent any 'explosion' of the fuse. More info here: forum.digikey.com/t/glass-vs-ceramic-fuses-whats-the-difference/8475
@daque1960
@daque1960 2 роки тому
I have to learn not to send off a pcb until a few days after my layout is done. About the time the fab house does the solder mask I think of something I missed 🤔🤭😕
@RalphBacon
@RalphBacon 2 роки тому
You and me both, David. However, this time it will be checked many, many times before I send it off. What could possibly then go wrong?
@DustinWatts
@DustinWatts 2 роки тому
In the spirit of community feedback, I see a trace coming from the RST pin going to the keep out zone for the antenna. But it looks like it is not going anywhere :)
@RalphBacon
@RalphBacon 2 роки тому
Indeed. Autorouter gone mad. I replaced the schematic part of that circuit in case I had done something stupid but the track remains. I'll remove it manually from the final PCB (if I remember).
@AJB2K3
@AJB2K3 2 роки тому
When I was doing work experience in school, I went to an electronics factory. I was in the planners off looking at the schematic and the phone rang just as I spotted an error. Turns out the customer was calling about the error I spotted. Planner wasn’t happy that a school kid found the error!
@RalphBacon
@RalphBacon 2 роки тому
I'm sure you went on to bigger and better things, Adam! That planner needed another set of eyes (a peer review, basically) and you were them. Good job.
@AJB2K3
@AJB2K3 2 роки тому
@@RalphBacon Bah ha ha, I ended up servicing fire extinguishers and have to teach myself electronics!
@StigBSivertsen
@StigBSivertsen 2 роки тому
Thanks for the video, Ralph. I'm currently working on a PCB as well. How on earth do get frost at 18c? A UK phenomenon? Here in Norway, we are at 10c now but nowhere near frost :-)
@RalphBacon
@RalphBacon 2 роки тому
Night-time temperatures can get pretty low, Stig, even if daytime temperatures get to the mid-teens. Right now we're getting higher than average September temperatures (over 20C) but come October I expect morning temperatures to be below 10C - too cold for my workshop!
@StigBSivertsen
@StigBSivertsen 2 роки тому
@@RalphBacon So it's the same as here then.... It is getting darker and darker, perfect time for tinkering :-)
@automation_jeff
@automation_jeff 2 роки тому
Good Info on getting started on a PCB project. With 3D printers coming down in price, why don't you just custom design an enclosure to accommodate your display, pilot lights and other components, then just print it out on the 3D printer per your specifications? I'm sure you can get a lot of use out of the 3D printer for other projects. If would make for another good UKposts video.
@RalphBacon
@RalphBacon 2 роки тому
From your lips to God's ears, Jeff. Yes, I really want a 3D printer but until I can master (well, use to any meaningful extent) a 3D CAD program then it will just sit in the corner of my workshop doing nothing. So I'm practicing Fusion 360 but it's a long (and winding) road ahead...
@chrismolloy131
@chrismolloy131 2 роки тому
What about swinging esp32 board around 180 deg. Put a hole in the side of the case for usb connection to reprogram and serial monitor.
@RalphBacon
@RalphBacon 2 роки тому
Certainly an idea. Especially for serial monitor use. Programming is done via OTA though (works very well).
@ulfmodig136
@ulfmodig136 2 роки тому
I have followed your videos and now I thought I should try making my own PCB. I made a working prototype, created a schematic in EasyEDA, converted it to a PCB and routed. Actually no serious problems. But.. how do I select the components? Do I have to select the specific component already in the schematic? Even if I try to do that JLCPCB does not have them as basic. Most videos I watch just skip out the actual component selection. May be you can fill that gap in the future? Thanks for all your videos.
@RalphBacon
@RalphBacon 2 роки тому
When I create the schematic, I choose the components from the LCSC/JLCPCB list of components, looking very carefully at the size of the component, otherwise you end up with a 1W resistor when you wanted an 1/8W device. Never done that, nope, not me. Having found the correctly sized component then it doesn't matter where they are sourced from, they should all fit. Sometimes I have to design my own, both schematic device and footprint but that took me a couple of years of using EasyEDA before I got any good at doing that. I say "good", I mean getting the pins the right way round and the dimensions almost correct.
@eddyrubens4336
@eddyrubens4336 2 роки тому
Hi Ralph, what about routed air gaps between the high and low sides of the PCB? I'm no electrical engineer and I don't know the best practices concerning them, but maybe someone can chime in on the subject?
@RalphBacon
@RalphBacon 2 роки тому
Yes, worth considering and I investigated. Air gaps are used to provide a non-conductive section where we have (higher) voltages and where the voltage might otherwise "jump" (spark) across tracks. In this design, all the high voltage tracks are spaced far enough apart and well away from the low voltage area. I'm happy this is safe (I don't want my workshop burning down). You raised a good point, Eddy, and in my workshop heater repair (video #133) I used air gaps between L and N as per the original PCB. It's still working!
@MrMartinB1962
@MrMartinB1962 2 роки тому
The relay footprint looks very different to the HRM2-S relay. For a start your footprint is for a surface mount relay, not through hole?
@RalphBacon
@RalphBacon 2 роки тому
Ah yes, I was intending to mount the relay onto a daughter board (another viewers suggestion) that could be swapped out easily if (when) it failed. I've had seconds thoughts about that since, as it was not going to be so easy to swap out at all.
@jstro-hobbytech
@jstro-hobbytech Рік тому
The older red led color is so much richer than modern ones when not lit. They're almost like a translucent blood red
@RalphBacon
@RalphBacon Рік тому
Perhaps they should call that colour Vampire Red? Sounds good to me. I should patent the name.
@davidmaruska1641
@davidmaruska1641 2 роки тому
You could have used the metal case of the heater as the heat sink for the SSR. LOTS of metal.
@RalphBacon
@RalphBacon 2 роки тому
But it would have been mounted _externally_ , right, otherwise it would just get hotter and hotter. But that SSR was a fake (OK for testing) and a real one costs big bucks.
@Mrstrikerace
@Mrstrikerace Рік тому
I'm watching this a year after you've done it but I can't find the final video that shows what ever happened to this. Is there another one? I want to do this very thing... sort of. I want to put a wireless thermostat across the room from the unit and have a receiving circuit box that will cut off the mains to the heater at that point. Really it is not that much different from what your doing here I dont think. Is it??? Thanks.
@RalphBacon
@RalphBacon Рік тому
There's a bit more about this project in video #238, but I know I give quick shots of it in other videos when I refer to certain "features". However, let's just consider your requirements. A wireless thermostat across the room (yup, got that) to turn off/on the heater elsewhere. Yup. You've just described about 50% of what my project does. I use ESP-NOW for the sensor to communicate (you might like to watch video #223) with the ESP32 in the main controller. That receives the signal from the remote sensor and turns the heater on/off accordingly. It's been running since September 2021. It does more than just that, however. I have it remotely controlled from my phone (Wi-Fi enabled) so I can turn on the heater for a while from the comfort of my home so I don't walk into a workshop at minus 5ºC! I showed this (briefly) in another project, my Barrel Pond Controller (video #254). It also receives the temperature from my Attic (via ESP-NOW) so I can monitor all this on my phone (simple web page). If you want more details/suggestions just email and I'll see what I can tell you.
@Mrstrikerace
@Mrstrikerace Рік тому
@@RalphBacon very grateful thank you. Very good videos 👍
@YTbxg
@YTbxg 2 роки тому
Interesting video as always. But I see you need to add another plaything to your kit, a 3D printer. Its ideal for printing electronic enclosures. Put it on your Christmas list :-)
@RalphBacon
@RalphBacon 2 роки тому
It's been on my list for several Christmases now but the problem is I would not know how to design for it. I'm trying Fusion 360 but that is _hard_ work. I might try a simpler CAD program just to get me going!
@YTbxg
@YTbxg 2 роки тому
@@RalphBacon A bit of a leaning curve with Fusion 360 but I found that just to do boxes with various cut-outs and screw holes etc is not too bad. Learning to do real engineering drawings would be a huge effort. To get going I remember I followed along a youtube tutorial on building a box and, after a bit of playing around, my first box emerged. It probably took me a week of playing around for a couple of hours each evening. Now I can knock up an enclosure in an hour or two, which can then take 8 hours to print. Almost as quick as an Amazon delivery :-)
@RalphBacon
@RalphBacon 2 роки тому
And twice as expensive? 🤭
@YTbxg
@YTbxg 2 роки тому
​@@RalphBacon Just on filament cost terms probably more like half the price, but factor in the cost of the printer then for a few boxes a year they are very expensive boxes :-( . But who counts the cost for a veritable work of art. (just don't let the missus know of the cost or I might have to print a protective helmet or some other protective box....)
@AJB2K3
@AJB2K3 2 роки тому
Yup tried using the back box and cover before both parts shattered!
@RalphBacon
@RalphBacon 2 роки тому
Been there, done that! But do check out the alternative PVC blanking cover plates, they would be fine to drill. But not the backbox.
@digihz_data
@digihz_data 2 роки тому
Ralph! Don't you have a 3d printer for making enclosures? Or you are not able to use a cad program? I do most of my enclosures from a 3d printer.
@RalphBacon
@RalphBacon 2 роки тому
I wish! 1. I don't have a 3D printer. 2. I don't know how to use a 3D printer CAD program (yet). It's on my list of things to learn how to do, maybe this winter I will be able to devote more time to this.
@digihz_data
@digihz_data 2 роки тому
@@RalphBacon once you have a 3d printer you are going to regret that you did not have it before. If you have any questions about 3d printing i will try to help you out Ralph.
@RalphBacon
@RalphBacon 2 роки тому
Thanks, Hans. What do you think of the Prusa Mini? I want a 3D printer that "just works", like my car. I do *not* want to be constantly lifting the bonnet, tweaking the carbs, adjusting the timing... enough of the car analogies but you get the picture!
@digihz_data
@digihz_data 2 роки тому
@@RalphBacon I replied to you but the content went away for some reason.
@deterdamel7380
@deterdamel7380 2 роки тому
Hello Hans. Nobody prevents you from contributing a 3D printable case. Ralph offered a housing solution to complete the construction management.
@daveholden3935
@daveholden3935 2 роки тому
A Bezel around the display hides hides errant saw/file cuts. Easy to 3D print.
@RalphBacon
@RalphBacon 2 роки тому
I have some! But one of them is too big and doesn't hide anything. The other might be OK, but until I put it all together I won't know. As it's in my workshop I'm prepared for the 80/20 rule - good enough is, well, good enough. Perfection inside the house but in here...
@jp040759
@jp040759 2 роки тому
How about a DIY SSR with zero crossing triac optocoupler driving a power triac and a flat stock strap of aluminum for a heat sink for the triac. Small and flat form factor you can slip in anywhere in that case. No moving parts to wear out also. I just don't trust those mini relays that say can handle such huge amperages.
@superdau
@superdau 2 роки тому
You can't beat a relay for an application like this. Semiconductor switches like triacs have a voltage drop of 1V and higher. For a up to 2kW load, so more than 8A, the switching component will need a good heat sink coupling to get rid of several Watts. And their capability of fast/frequent switching is completely wasted for a heating controller. Relays that are tested at their rated current for 100,000 electrical actuations aren't expensive, even from brand name manufacturers (and I'd only trust those to meet their specs).
@RalphBacon
@RalphBacon 2 роки тому
I concur with superdau's point about relays. I'm underrating the relay from 16A to 8A which should give it a long(er) life. Should it fail, I hope to be able to swap it out reasonably easily - but maybe I won't ever have to!
@jp040759
@jp040759 2 роки тому
@@RalphBacon I just thought you wanted solid state since you mentioned the puck SSR. Relay should last since the load is resistive and not inductive.
@DoktorJeep
@DoktorJeep 2 роки тому
Honestly I have seen so much madness going from schematic to PCB, that after a while I just started to design on the PCB editor and skip the schematic. With enough experience that becomes easier anyway. Schematics are really more for making it "official". Even creating the footprint is just "place pads and know your grid spacing".
@romancharak3675
@romancharak3675 2 роки тому
I frequently do the same, @Doktor Jeep. A quick pencil sketch of my circuit and straight to PCB design.
@RalphBacon
@RalphBacon 2 роки тому
If this works for you, go for it! You do miss out on automatic checks on NET names, whether you have missed a connection altogether and you never have the schematic to refer back to in the months to come (a quick pencil sketch is not going to survive long!) But you must do what you think works best.
@akkudakkupl
@akkudakkupl 2 роки тому
Would have went for a triac and an optotriac with zero crossing detection for switching instead of a relay - way more robust for resistive loads.
@akkudakkupl
@akkudakkupl 2 роки тому
And also has good galvanic isolation of both sides.
@RalphBacon
@RalphBacon 2 роки тому
What about the size, though? Quite a difference. And does the relay provide any less galvanic isolation, in real terms? If the SSR were the same size I'd choose it in a heartbeat. As it is...
@akkudakkupl
@akkudakkupl 2 роки тому
@@RalphBacon I think a TO220 triac and DIP8 or DIP6 optotriac to trigger it are not that large ;-) You even can go to a TO247 triac (if you can find one). This way you can have all your 240 VAC stuff on one side of the board and logic on the other with superior isolation :-)
@ReneKnuvers74rk
@ReneKnuvers74rk 2 роки тому
Do not use a heat sink in a heater. You will sink the heat from the heater into the SSR. It is all about the thermal balance. If ambient of the sink is hotter than the junction, it will just heat up the junction. Rather than a good coupling you want thermal decoupling of the heater ambient and the SSR. If you would like to use that at all. I wouldn’t in this case (pun intended)
@RalphBacon
@RalphBacon 2 роки тому
No, I think we've agreed that (a) there is no room in the heater and (b) it would be too hot anyway. Just as well, it would cost a fortune to buy a genuine SSR product.
@Mr.Leeroy
@Mr.Leeroy 2 роки тому
I would have totally made it temperature controlled directly connecting to heater element. You'd need a realtime uC, like 328p as well and SSR or triac though. Let me know if you want me to share a well tested AC PDM source code that you could use.
@RalphBacon
@RalphBacon 2 роки тому
Woah! Leeroy, you been smoking funny tobacco again? "Directly connected to the heater element", you say. I feel a bit woozy after reading that. I'm far happier using a transformer for the low voltage stuff and a relay to control the life-endangering voltages, frankly. Thanks for the offer but I'll decline this time 😲
@Mr.Leeroy
@Mr.Leeroy 2 роки тому
@@RalphBacon Using optoisolators obviously. I meant directly control heating resistive element and not the heater as an appliance.
@Bob_Burton
@Bob_Burton 2 роки тому
Your link to the case on Banggood does not work
@RalphBacon
@RalphBacon 2 роки тому
You're right it doesn't, because Banggood have withdrawn that selection of boxes. I've substituted a different link to one of the same box types with various sizes - thanks for letting me know!
@jstro-hobbytech
@jstro-hobbytech 2 роки тому
What's your patreon link Ralphy?
@RalphBacon
@RalphBacon 2 роки тому
I ain't got one, Joey! Others have suggested it, over the years, but it just didn't sit well with me. Not sure why. But if things get financially desperate...
@jstro-hobbytech
@jstro-hobbytech 2 роки тому
@@RalphBacon its not about whether or not you need the money brother. It's a sign of respect and thanks for the fact someone has learned something from you that helped them and you put effort into making that happen. I'll tell ya Ralph, I'm a software engineer by trade but went into policing instead and now I'm 42 and retired with ptsd and this hobby saved me. I seen a video about arduinos in my feed so I ordered a kit, done all the lessons and there was a 2n222 left over that wasn't covered. I had no clue what it was an investigating it lead me to digital electronics as a hobby and now I make things and sell them for charity. I give away kits and teach guitar.
@ForwardGuidance
@ForwardGuidance 2 роки тому
A lot of great comments here, love reading what everyone is thinking.
@RalphBacon
@RalphBacon 2 роки тому
I'm getting great feedback, to be sure!
@gazzacroy
@gazzacroy 2 роки тому
hi
@RalphBacon
@RalphBacon 2 роки тому
You got in first! Speedy, that's for sure. Oh, you commented again a bit later, OK we'll chat again when I get to it.
@gn6034
@gn6034 2 роки тому
DANGER POTENTIALLY LETHAL DESIGN ! Ralph I am a UK sparks - you are wrong you NEED an earth. You are passing AC THROUGH the 'double insulated box' not containing it inside. Your design has lost the earth connection to the heaters metal enclosure. You are unprotected should a should a fault develop and the metal becomes live and you touch it!!!!. Just use 3core in for the incoming and outgoing and just join the earth wires inside your box with a terminal block or crimp(ideally). Additionally, you need to consider your fusing. You have 2 AC paths 1 heater & 1 PCB both sides need a fuse. Suggest you use an externally accessable panel fuse for AC heater. Don't forget the fuse in the plug doubles as protection for cable. So 13A in plug, 10A slow (glass) within box and 500mA (slow) glass, on PCB for electronics. Stick the snubber in for end/emi reason and also to limit radiated wireless emissions from arcing relay contacts, you still might have esp or even local wi-fi/radio connection issues
@RalphBacon
@RalphBacon 2 роки тому
I'm always willing to hear from a sparky, but I still don't quite get the need for an earth. Let me explain. The standard T&E goes to the socket below the heater controller. I'll just disconnect the L from that socket and run it up into this controller along with the N (separate, additional single wire, not disconnected from the socket). The switched L (via the relay) then goes back to the socket. No different to a simple switch really. The L & N also goes to the tiny transformer which I've fused with a 1A glass fuse. But that's almost incidental. This surely means that the E has not been touched. It still goes to the original socket to which the heater is plugged in via the 13A plug it has. I'm guessing you're unaware that the heater still has its 3-core fused plug and goes to the original, earthed socket. I should have mentioned this in the video (I did so in a previous video - what? You didn't watch that one? Write out 100 times: I must watch ALL of Ralph's videos. Oh alright then, 20 times as you were good enough to comment here!) And yes, I'll fit the snubber anyway as I have no (easy?) way of determining whether sparking is occurring in that sealed relay. I'm very happy that you're thinking of my health here, GN, but I'm pretty sure it is as safe as I can make it.
#224 🛑 STOP using Serial.print in your Arduino code! THIS is better.
26:39
#226 ROTARY ENCODER with no switch bounce 🤓 - you MUST use this
25:49
Ralph S Bacon
Переглядів 27 тис.
маленький брат прыгает в бассейн
00:15
GL Show Russian
Переглядів 3,7 млн
#202 Using Assembler 😵 within an Arduino Sketch - easy to do! 😊
27:30
#186 Measure Current with an Arduino  - Digital or Analog? Easy!
31:12
Ralph S Bacon
Переглядів 18 тис.
#266 ESP32 Deep Sleep Project - Door Open/Closed Detection with ESP-NOW
25:18
#BB9 Organising your code🧹for easier debugging and maintenance✅
18:45
3D Prints Outside for 7 years: What happened? RMRRF2024
29:36
CNC Kitchen
Переглядів 99 тис.
#228 ESP32 Over the Air (OTA) Updates with ONE LINE are EASY!
23:26
Ralph S Bacon
Переглядів 27 тис.
#BB4 MOSFETs - From an Arduino Perspective
15:10
Ralph S Bacon
Переглядів 21 тис.
#218 Dual Switch Detection using Diodes and an Arduino 😲
18:42
Ralph S Bacon
Переглядів 7 тис.
Лучший Смартфон До 149 Баксов!!!??? itel s24
20:25
РасПаковка ДваПаковка
Переглядів 54 тис.
🤯Самая КРУТАЯ Функция #shorts
0:58
YOLODROID
Переглядів 3,3 млн
Он Отказался от БЕСПЛАТНОЙ видеокарты
0:40
ЖЕЛЕЗНЫЙ КОРОЛЬ
Переглядів 1,6 млн