110v-230v AC to Mysensors PCB board
-
@bjornhallberg Maybe I've missed reading something, but why use a varistor for 5 Vdc and not a zener diode?
-
@AWI Thanks! Very true!
-
@m26872 You're probably right, I just followed the BOM. I'll see if I can stock up on some diodes from AliExpress for future use.
-
Whould a 5.1V zener work?
edit: removed the link to the product so that no one would buy it the specs of it is to tight to be used with HLK.
-
Just a stupid question, the "G3MB-202P DC-AC PCB SSR In 5VDC,Out 240V AC 2A " What happens if I forget and plug something more power-hungry like a toaster or a microwave-owen? does any of the fuses blow or does the relay break ?
-
there is no fuse on the relay switch so I guess either the PCB or the relay will fail.
-
I've seen commercial products with a thermal fuse glued to the switching side of the relay. Maybe that would help some in such situation.
-
@korttoma A 5.1V zener is probably too tight. The HLK seems rated 5+/-0.2V.
-
@m26872 Indeed, mine is 5.08V (with no load). I ordered some 5.1V and 5.6V 1206 SMD diodes from Ali for future use. Plus some 3.6V. And a set of DIP diodes.
-
@bjornhallberg said:
I ordered some 5.1V and 5.6V 1206 SMD diodes
Just to remember, the typical zeners are 1W , which gives a max of 200mA of output capacity, pretty enough for Arduino+radio, but maybe not enough for many relays / Leds etc. And if they burn due overload, they will allow all voltage/current flowing from PSU into arduino.
That explains why we suggested the varistor, in order to short the PSU output and trigger its internal protection. Strange that your varistors didn't survive... Bad lot? Maybe they are not 5.5V as stated?
-
@rvendrame
No.
The zener will only lead current during over voltage condition and only needs to dissapate enough energy till one of your (multiple?) over current protection trips. Just as your varistor setup is supposed to work.
-
@m26872 , is it also true in case the PSU itself fail? And what happens if the circuit consumes more current than zener rating? I'm my (poor) knowledge, zeners are more relevant for stabilization, while varistor are effective 'protection' devices...
-
@mvdarend You discover your issue with the relay?
-
@rvendrame
since we're discussing the PSU secondary side (output side), I think we already presume errors with the PSU. A fuse (over current protection) on the secondary is not just there as a back-up if the PSU internal over current protection fails. The fuse will also prevent your over voltage protection (zener, varistor, ...) from overload/burn/start a fire.The current from PSU to load will not pass through the zener and hence the rating is irrelevant from that perspective. In other applications where a zener is used as voltage regulator, the full load current will pass through the zener when in idleing and then the rating is critical.
-
@m26872 so how do we need to rate the zener? Should the zener be rated so that the fuse will blow before the zener brakes from the current it passes due to an over voltage situation? Or is it OK that the zener brakes to as long as it takes out the fuse first. Then an automatic fuse will no longer work.
-
@shabba said:
@mvdarend You discover your issue with the relay?
Sorry, since that post I tried a few small things. But then I got caught up in other projects/work/family and haven't had time time to look into it further.
-
@korttoma Good questions. As always a trade-off of risk, cost, space, taste, etc. They should already be answered in the varistor case though. Personally I think it's overkill with additional overvoltage protection at the low volt secondary side of a good quality PSU and an inexpensive load - fuse, capacitors and regulators should be more than enough. Focus should be the primary side protections.
Edit: Btw. Found some reading. See p.44
-
Just a quick post to confirm I got the relays working as well (with Domoticz). I didn't read the schematic at first and just assumed how the mains and relay external wiring should be done. Still no idea about the smoking varistor.
-
I thought all my relays were shot as I was not getting continuity on the load pins when I applied 5V. I checked resistance and there is just over 2K when 5V applied and infinite when none. I am going to put back together assuming the 240V A/C will pass through just fine.
-
What would cause no power to VCC when connected to mains (even though there is 5V at end of HLK-PM01) - if I bring that 5V with a jumper to VCC it works. Also works fine when connected to the serial port - Bad DC varistor?
-
The only thing between the HLK-PM01 and VCC is Fuse2. Check the Schematic. But yes a shorted varistor will in the combination with the fuse bring VCC to 0V. I experienced this also since the 5.5V varistors I bought from the link in the documentation (Ali seller Unionup Electronic Mall) did not work.
Seems like there is quite many of us that are having problems with the 5.5V varistors. I measured a few from my batch and they all show 0.4ohm with a multimeter, should they not have something like infinite resistance unless they get more then the 5.5V? My multimeter gives 0.6V when it measures resistance.
-
@korttoma Say what...? You measure .4 ohms on your Varistor? I think you found your problem.
I have only ever used Varistor protection on the primary side, so I've got no experience with low voltage Varistors, but I don't think it should ever read .4.. Should be infinite.
-
Hello everyone,
Since we probably wanting this for multiple destinations, what if we used a centralized way at our home powerswitch.
We could stack multiple boards, and just use one arduino nano and one nRF on top of it. We just have to care about link each stack to a different arduino output.
Based in this idea we could create a second pcb for stack mounting, this board will just have the SSR and a deep switch for easy selectable arduino output. To make this ok we should connect each home powerswitch to each stack, another way exist if we use the main supply of the bottom board for all stacks, and place our circuit before our home power switch, but this is not recommendable.
For minimum stack size SSR should be horizontal mounted.
The advantages are obvious, just one arduino and nRF, one ac-dc and regulator for all home switches. Super low volume occupied and no more size constraints inside wall switches.
I don't have time to go forward and design this, so if someone wants it please go for it!!
PS - Since we just use one arduino output per stack, we could avoid deep switch cost and configure by soldering selected track.
-
@BSoft I had this idea also and have been working on a pcb for some weeks now.
Its a 5x5 cm PCB you cut in halv so you get a 2 pcs which are 2.5x5cm - and they are stackable (like a shield).This is how i plan to stack them: (Blue inwall socket behind).
On the bottom you have the high power and HK 240->5v converter.
Then in the middle between the pcbs you have the radio and arduino and on top whatever you wants.
I have made outputs for LCD screen, buttons and/or motion.There are still much work in progress here but so far this is my thoughts... and it fits inside the typical wall hole.
This will not be ready for atleast some week, and the three weeks or so with order/deliver time.I will create my own post to get input on this when im done and If someone else knows and want to improve the design i can send over the files.
-
@sundberg84 Nice work with that sandwich!!
Maybe you could move nrf24 to the other board to get away from ac-dc field and obtain better signal exposure.My idea is to move this node to my home powerswitch and control all my home lights, but as size isn't a problem maybe i'll use this:
http://www.dx.com/p/8-channel-5v-solid-state-relay-module-blue-black-green-250v-2a-213880
-
@aproxx I'm a complete newbie but am interested in exploring this! Do you have a tutorial on the steps to populate this circuit board? I am comfortable with soldering but new to electronic circuits. Is there a particular order in which components ought to be soldered? Would you recommend breadboarding to begin with? Any sample code that can be used to do a sanity test?
Your guidance is greatly appreciated!
-
@aproxx Very nice! Just ordered.... But quite nervous - don't know much about electronic circuits, although I am quite good at following detailed instructions. You wouldn't happen to have a tutorial on how to populate the pcb?
-
OK, this may be a really dumb question, but I need to ask, so please pardon my ignorance....
Clearly one main advantage of this is to control traditional light switches programatically and also through the standard light switch. How would I know whether someone flipped the light switch to turn on/off? How does the program "state" keep in sync with the "state" of the physical light switch?
Sorry again about what might be a rather dumb question.
-
You could connect the regular switch like a binary button, for example between D3 and Grd. The node could monitor both incoming messages from the controller and the state on D3.
-
i hope i can buy this board in the near future
-
Hello
I'm putting a home automation system I want to put in the cabinet
electric power supply to power pc wholes my Arduino pro mini cable this method and these can be well card she could withstand power pc. thank you in advance for aid
-
@ServiceXp said:
@korttoma Say what...? You measure .4 ohms on your Varistor? I think you found your problem.
I have only ever used Varistor protection on the primary side, so I've got no experience with low voltage Varistors, but I don't think it should ever read .4.. Should be infinite.
I how received a new batch from another seller and these varistors show infinite resistance, unfortunately they are 0603 footprint so they are really tiny.
I bet the other seller (Unionup Electronic Mall) just sent me random crap because all of them show 0 resistance at first and then increase to 0.4 ohms, to bad it is too late to open dispute now. Just stay clear of Unionup Electronic Mall in the future.
-
is it the brown or blue varistors that is defective?
Edit: sorry the brown ones are fuses
-
@Cliff-Karlsson the 5.5V SMD varistors I recieved from Aliexpress seller "Unionup Electronic Mall" do not work for me. Now running my circuit with out it instead.
-
@korttoma Thanks for the heads up on Unionup.
-
I don't have any ceramic capacitors. Can I replace them with regualr ones?
-
Nevermind the capacitor question I found some ceramic capacitors now. But Is the "BOM" that shows component placement in the beginning of the thread accurate? only the transistor needs to be turned around?
-
@bjornhallberg said:
@m26872 You're probably right, I just followed the BOM. I'll see if I
I think the first post should be edited with the right components. In the doc it says
100nF + 100pF Capacitors 0.02 Euro AliExpress Link
but in the post is says:C2 100uF capacitor
I have a couple of 100uF 16v but I guess that wont work, correct?
-
Sorry for spamming but regarding fuse 2. Can someone post a link to a fuse that works well. I got alot of those brown PTC fuses but the holes in the PCB are too small. I tried drilling them up but then I got no contact so I had to solder a separate separate wire from 5v to the fuse to get any power to the arduino and the rest of the components.
Or has there been a mistake on my PCB with too small holes for fuse 2?
-
@Cliff-Karlsson the holes for Fuse2 are to smal and this has been mentioned a few times before in this thread. I drilled mine out with a 0.8mm drill and could then use the recommended fuse without any extra wires.
-
Since the 5.5V varistor is not available from the linked AliExpress shop I wonder whether this varistor would work as well?
https://www.conrad.de/de/smd-varistor-we-vs-82537040-4-v-wuerth-elektronik-we-vs-82537040-1-st-1086820.html
-
greeted everyone
look what concerns island link tests on this HLK-PM01
http://lygte-info.dk/review/Power Mains to 5V 0.6A Hi-Link HLK-PM01 UK.html
-
A question about the fuses. The BOM in the Word document links to two 230V fuses, the PTC and slow blow fuse. If I read the schematic correctly one fuse is on the AC side and one is on the DC side. How does a 230V fuse help on the DC side where there should not be more than 5Vdc? Or am I missing something? As I'm quite new to this I'm probably not reading the schematic correctly or missing something
-
@aproxx said:
For those who wanted to see some pictures of the board:
Small notice: These pictures are of a slightly older design. The newer design has a few minor changes like better component placement and a permanent fuse instead of this resettable fuse. But these pictures should at least give you an idea on how everything looks like, and shows how really small it actually is.
Also, I reinforced the traces of the 230v lines, which I absolutely recommend to do! (Although I do recommend to do it slightly more professional than I did on this prototype :))I really like this design, but it would be even nicer when this fits a ESP8266 Maybe the PCB could be even smaller . And it works together with link text .
So is there maybe one of the PCB designer guys who can build /draw / design this 230v to ESP8266 PCB ?
-
WOW, REALLY GREAT JOB!
-
Hello everyone,
This is a gr8 project, i am looking forward to make few sensor for my home. As i don't have any experience with electronics and very new to all these terms and components.
I would request anyone of you to, kindly post some pictures of the board with components in place that i can copy and make my boards.
**Specially 3 pin regulator and Capacitors **My first assembled board is not working, it looks like m doing something wrong with either the capacitors or the regulator. I checked my NRF24l01 VCC pin and not getting any voltage at all.
Please help me guys......
Thanks and Regards
Brij
-
@Brijesh-Mishra said:
I would request anyone of you to, kindly post some pictures of the board with components in place that i can copy and make my boards.
@the-cosmic-gate has already posted images above.
Perhaps you should post a picture of what you've done?
-
Thanks a lot for your response, this is what i have done so far.
-
Could I ask to the smart PCB builder's / designers to make the same 230v PCB but not using an Arduino but one of the ESP8266 versions , the the board could be even smaller and easier to fix in the wholes
-
@the-cosmic-gate, greetings to you. Kindly let me know, is there any issue with the component placement in the board. Not sure why it's not working :(.
Thanks
Brijesh
-
@aproxx Great job. Just started to work with mysensors and I was looking for a power supply alternative to mobile phone chargers. Though one question; the board that you included the relay was really interesting. Why did you not proceed on this? Also, do you sell the PCB's?
-
@Brijesh-Mishra said:
@the-cosmic-gate, greetings to you. Kindly let me know, is there any issue with the component placement in the board. Not sure why it's not working :(.
Thanks
Brijesh
There absolutely nothing wrong, but I want to use the ESP8266 to build in instead of the arduino and 2.4 ghz radio (the ESP8266 is an Arduino incl WiFi) so the PCB can be much smaller I think.
-
@Brijesh-Mishra , I see two issues with your photos. 1) the 3.3V regulator is on backwards. If you earlier in this thread someone comments that the regulator needs to be put on backward. The white design on the board is not correct. That was also my experience with the boards I built. The flat side of the regulator should face the two cap's. 2) more importantly, it appears that you used a thermal fuse in the spot where fuse #1 goes. Fuse #1 is supposed to be a 300ma slo blow fuse. If that is what you have there no problem, but it looks like the thermal discussed in the thread. This board does not have a place for the thermal fuse. I would consider this a serious safety issue, but I am not an expert. Hope this helps.
-
@novicit, Thanks a lot for your help. i will make a new board as per your guidance and share the photos soon.
Regards
Brijesh
-
Hello. Here I soldered all works well. Thank you
-
-
Hi,
I now received PCBs from DirtyPCB. I'm searching components (but not from China sellers).
Can I use this varistor on the AC side?: http://uk.farnell.com/multicomp/mcsr391k10ds/varistor-60j-250vrms/dp/1856880
And on the DC side?: http://uk.farnell.com/multicomp/mcvz1206m050agt/varistor-multilayer-4vac-0402/dp/2462756Thanks in advance!
-
I can not help.I not particularly versed in radio details
-
@aproxx hi wonderful design , i was going to make a similar but i can't find EAGLE part and footprint
for HLK-PM01 ,and actually i don't know how to design the part library .
so please if you can share it i will be thankful
-
-
This post is deleted!
-
I really like that this uses the hlk power supply. Any versions of this floating around that instead of a relay do a digital/analog pinout for you to connect sensors to? That would be like a plain vanilla do anything board with safe power
-
@punter9 check our hardware site openhardware.io
-
thanks! one more question. I am really striking out finding resettable fuses for 120v US application. Anybody conquer this mole hill?
-
@punter9 said:
thanks! one more question. I am really striking out finding resettable fuses for 120v US application. Anybody conquer this mole hill?
I don't remember where I read this but it was advised not to use resettable fuses with the HLK. Basically it was said that if the fuse were to blow the HLK would have already been stressed to the point where it may be unsafe and it's best to replace the whole device. I wish I could remember where I read that but I'm not sure...
-
@petewill said:
I don't remember where I read this but it was advised not to use resettable fuses with the HLK. Basically it was said that if the fuse were to blow the HLK would have already been stressed to the point where it may be unsafe and it's best to replace the whole device. I wish I could remember where I read that but I'm not sure...
I'm 90% certain that was from the guy who did the power tests of the HLK. I believe he was saying that these small PSU's don't handle heat or spikes well and if the fuse goes, you should assume the PSU is unsafe as well and replace it. I think it was in a thread that he was replying to on a different forum but I could be wrong.
-
@TD22057 said:
@petewill said:
I don't remember where I read this but it was advised not to use resettable fuses with the HLK. Basically it was said that if the fuse were to blow the HLK would have already been stressed to the point where it may be unsafe and it's best to replace the whole device. I wish I could remember where I read that but I'm not sure...
I'm 90% certain that was from the guy who did the power tests of the HLK. I believe he was saying that these small PSU's don't handle heat or spikes well and if the fuse goes, you should assume the PSU is unsafe as well and replace it.
Here it is I guess: http://lygte-info.dk/review/Power Mains to 5V 0.6A Hi-Link HLK-PM01 UK.html
Quote: "I would place a fuse or fusible resistor before the converter, the fuse is not supposed to be replaceable, when it blows it is time to replace the converter."
-
@HenryWhite it mean that appart if you make a direct shortcut with a metal part, the only thing that came make the fuse blow, it is because of the HLK part.
So: fuse blow = HLK dead.
HLK dead = you don't need a resettable fuse, as you have to unsolder the HLK to repair the board (if no component seam to be dead after this one).
-
Hi and thanks for sharing your project!!! I'm new here and up to now I've been using Fritzing as PCB design tool. I'm impressed with the 3D preview of diptrace. I've imported your project since is almost what I need, but I need some changes: ESP8266 (E-12/E-04) instead or Arduino and Relay instead of SSR.
When I import your project I can't see 3D preview of HLK. How do I import this 3D part? Where's can I find the Songle Relay part that has been shown above?
Just one more question: why do you use NRF24L01 + Arduino if you can do the same and more with ESP8266?? :o/
Thanks again and best regads!!!
P.S.
I'll share my PCB if you wish.
-
@aproxx said:
Hi all,
After spending a few months on this forum and a few prototypes later, I decided I wanted to build a small but cheap PCB which could be placed in either the wall behind the light switch, or above the lamp.
Besides the boards I've seen on this forum, I wanted these boards to contain a module to go from 230v AC to 5/3.3v DC in order to power an Arduino nano and the NRF module. I eventually ended up with a PCB which is about 4 by 4.5cm. So with all components attached I'm hoping to get in stuffed in a 5x5x3cm plastic printed case.
Modules which I've used to power the board:
[http://www.aliexpress.com/item/5-pcs-HLK-PM01-AC-DC-220V-to-5V-Step-Down-Power-Supply-Module-Intelligent-Household/32319202093.html?spm=2114.32010308.4.19.8oKfZgUPDATE: 2015/09/18
As promised, I've got an update for this project. The board has been tested in the past week, and everything is working as expected. Compared to the previous board I've posted, I have updated the following:
• Solder pads of LE33CZ have been placed a little wider apart to avoid short circuit while soldering.
• Solder pads of the resettable fuse (Fuse2) has been placed closer together to better fit the fuses of the BOM.
• Moved the NRF24L01 connector a bit away from the solid state relay. Should make it easier to solder.
• Moved Fuse2 to another location on the board, away from the 230v circuit.Some 3D pictures (Top and bottom):
Anyone who is interested can order the PCB HERE
Some documentation, complete list of required components and all gerber / DipTrace files (in case you would like to make some modifications) can be found here: MySensors board v3.2.3.zip.
-
Just ordered 10 pcs of this board. Great Job!
-
thanks for the update on the resettable fuses! Another rookie ?. I ordered 0.4A fuses since the 0.3A are sold out. Is this a classic dumb move thinking that 0.1A is no big deal?
-
HLK spec. is max input of 0.2a with small spikes tolerance to 1.0A. I also ran out of 0.3 but are now using 0.2a and that works fine.
-
Does the light switch need to be a SPST or can you use a pushbutton? Curious how this would work with a SPST switch. I haven't looked at the code to see what is setup.
-
-
Hi,
I understand that the question has already been asked, but ... Is there a possibility to adjust the scheme to the ESP8266 instead of Arduino? Anybody can tell or help - how to do it?
Regards,
Nikolay
-
yes, now how to use ESP8266 instead of arduino for the same function that we are discuss in this topics.
-
Hey Guys,
I am working on ESP8266 as well. But I am newbie to electronic designs. But in my view it should be silmple and we can replace Arduino nano with ESP8266 and remove NRF module.One diagram and circuit is explained here http://iot-playground.com/blog/2-uncategorised/77-esp8266-internet-controlled-switch-easyiot-cloud-mqtt-api#materials
@csa02221862 you can use this cercuit with SPST buttons. But Switch will notbe connected to mains. It will be conneted to ESP8266 GPIO of (or arduino). And in Sketch (i.e code ) you have to write code based on GPIO when ever it goes 0 to 1 or 1 to 0 Relay state shoud be toggled.
I hope I make sense
@aproxx you did great job here.
I am looking to reduce its size more if possible and wish to use ESP8266. Also looking to add more then one relays to the board. In some rooms there are 3 buttons on one panel. So thinking to use 3 relays. Will it be a good Idea? I think should not matter as long as I have enough GPIO to control relays and Electric wire connectors can bear the load.
-
yes , I also thinking to use more than one relay.
-
Found something interesting on Aliexpress which is a drop in replacement for the HLK-PM01:
the HLK-PM03
Same size and pin locations, but 110-200 V AC to 3V3 DC.
It fits my multi-power options board perfectly.
-
Nice find GertSanders ... I am planning to use esp8266 which runs on 3.3 volt... best fit ..
If we use this we may have to drop few things from 5.5 board right?
Like no need of 5v - 3.3 converter
change relay to match 3.3v like this http://vod.ebay.com/vod/FetchOrderDetails?qu=1&itemid=401045943120&transid=522355020027&viewpaymentstatus=Anyexpert around? do we need to remove anythingelse (any capacitor?)
-
But 3.3v relay will not match the board. If we use 5.5v relay do we need to add something to circuit?
-
Hi,
Thank you for this pcb. In which program did you do the design? Do you think you can share an editable version of the design?
I would like to modify it to accept the Mean Well IRM-05-5 instead of the Hi-Link.
It is more expensive and bigger AC-DC circuit but since I hace some in my stash i would like to use them.
-
@toabhishekverma said:
change relay to match 3.3v like this http://vod.ebay.com/vod/FetchOrderDetails?qu=1&itemid=401045943120&transid=522355020027&viewpaymentstatus=
That's a link to your shopping cart, we don't have access to...
I'm interested in the relay, can you post a working link?
-
-
I use the same SONGLE relays:
http://www.aliexpress.com/item/5pcs-SRD-03VDC-SL-C-3V-relay-5-feet-10A/32453591000.html
-
@GertSanders thanks for this link.
So do you have working prototype? what board are you using? I am in middle of finalising components and trying to finalise design. With little knowledge of electronics my progress is slow.
Also for 220 to 3.3v there is another converter from Olimex https://www.olimex.com/Products/Power/PWR-90-240V-3.3V0.8A/
overall its abit smaller then Hi-Link... Hi-Link abit better because all covered and less dangerous.Please share if you have any design finalised.
-
@GertSanders @toabhishekverma Do you have the dimensions and/or holding resistance?
-
Sorry I didnt get your questions .. do you mean dimensions of 220-3.3v converter. Here they are.
output 2.5W 3.3V/0.8A +-0.2V size: 30x20x18mmI am not from electronics background so didn't get what holding resistance means?
-
@toabhishekverma No, I meant for the relay
What's the resistance of the 3V coil? I want to know the current flowing when the relay is active.
-
@Yveaux Still no idea about it. Check link if you get something from it. what I know is it can bear up to 10A current and can be controlled using 3v .... my order still in shipping so don't know more then that.
-
@toabhishekverma Ah, ok. Didn't know they were still in transit.
Maybe @GertSanders has them 'on stock'?
-
-
@HenryWhite Awesome! Didn't even think of looking for a datasheet of a Chinese relay
-
Another source :
50Pieces/Lot JRC-21F 4100 3V DC 6 Pins Miniature PCB Relay Brand New
http://s.aliexpress.com/MNVv2myE
-
@Yveaux No, also still waiting for the order to arrive. But a coil resistance of 20-25 Ohm means driving the coil with a FET. Not directly from a atmega328 pin.
-
@Porky6666 : only switches 3A, SONGLE relay can switch 10A.
-
@GertSanders said:
@Yveaux No, also still waiting for the order to arrive. But a coil resistance of 20-25 Ohm means driving the coil with a FET. Not directly from a atmega328 pin.
Correct. Here's how I wired the songle relay on my Lithium Ion Sensor PCB:
@GertSanders said:
@Porky6666 : only switches 3A, SONGLE relay can switch 10A.
I wouldn't trust both of them when it comes to switching high amp devices over 3A. I think there is a reason no german electronics shop sells songle relays
Plus, relays from an electronics shop in your country might cost the same than the songle relays or will just be a tiny bit more expensive.
At least this is true for 5V relays. 3V relays are hard to find (at least in germany)
-
@HenryWhite said:
I wouldn't trust both of them when it comes to switching high amp devices over 3A.
I agree, I plan to switch lights, so my preference goes to the 10A model, just to be sure. I have used the SONGLE 5V versions, and none have ever given me reason to doubt their quality. Since I found a 3V3 powersupply I want to try building a full 3V3 board. Should be fun.
-
@HenryWhite why do we need D1 Diode (if i am write) in that circuit? do this circuit will not work without diode?
(sorry dont know much about electronics)