110v-230v AC to Mysensors PCB board


  • Hardware Contributor

    @tomkxy
    Measure the resistance over the AC terminals of the SSR. It should be very high when "open" en very low when "closed". SSRs do not make sounds when they switch, so sound will not give a clue if they work.



  • Most SSRs cannot be checked this way because they can only switch AC and not DC. See https://en.wikipedia.org/wiki/Zero_cross_circuit



  • I don't know if this has been answered already. But I have some major problems soldering the thermal fuse to the board. It always blows. Any tips ?


  • Hardware Contributor

    @Cliff-Karlsson Be quick 🙂
    I have the same problem - dont know any better sollution atm... solder for 0.5 sec and remove - then you need to let it cool down before adding more solder.



  • I read something before about low temp thermal sensors usally being crimped to place. Do you know how this works and if it is usable on the pcb?

    Also the last times I tried to assemble the parts on the pcb I noticed that the holes for one of the fuses are too narrow for the standard brown(?) auto reset fuse. I have managed to destroy the solderpads every time I tried to drill the holes a little bigger.
    Can I use a standard glass fuse for this one with the same value?



  • Just a couple of questions. Most of the components are 240V, are these the same as used for 110/120v in the US? Also one of the varistors is not available, suggested alternative?
    Thanks



  • Hi,

    thanks for your great work..
    great to have chosed a pwm output for the relay (ssr can be used as a dimmer)
    but is it possible to add a fuse on the ssr output too ?
    and a second switch

    and imho relay's trace is too near a nrf trace..
    and return the draw of le33 😛

    sry for my english
    thanks



  • Hello,

    I love your design!
    However, I must have missed something. Considering I want to retain the ability to turn the light off with the wall switch, this board does not allow to connect the relay as a 3-way switch.

    Also, considering it could be mounted inside the wall (and not only in the lamp base) - having 2-3 relays would be very functional! In my house, it is very common that a single wall mount has 3-4 switches that control 3-4 separate lamps. It will probably make the board bigger, more so if we support 3-way switches (see above comment), but it will be very versatile, especially for 4-way switches (see http://forum.mysensors.org/topic/3173/3-4-way-switch-with-a-relay )



  • Hi Sefi Ninio,
    There are two ways you can do it, Either change relay to SPDT Relay which is two way relay. this option is not feasible with this pcb. But if you are not using same PCB you can try SPDT relays.

    Second option which can work with this setup is ,
    Your light switch has two pins, connect them with gpio and 3.3 power .
    when switch turn on/off gpio pin input goes high(when on) and low (when off).
    You have to write a code to monitor this gpio and if its state changes, you have to toggle the relay state.

    This is my idea, I havent tried it yet. and I am newbie too, Please comment.

    I hope I am clear enough

    Regards,
    Abhishek



  • Hi, @toabhishekverma
    Well, your suggestion might work, I am not sure a switch that is meant to be connected to 220v mains can be connected to the gpio pin.

    I think, adding an additional relay to the pcb and allowing them both to behave like a 3way switch will allow for maximum flexibility.

    1. It could control 2 separate lamps
    2. It could behave like 2 3-way switches
    3. It could behave like a single 4-way switch

    I would have done it myself, but I have no clue 😀



  • I have several lamps where I have done something similar. The bulbs are wireless wemo-bulbs and I have connected the wires behind the lampswitch so that the bulbs are always powered. The I have placed a battery powered arduino witch is connected to the wall switch pin3-gnd.
    Every time I flip the switch the arduino wakes up and the controller sends a toggle command using REST


  • Hardware Contributor

    @Cliff-Karlsson said:

    I don't know if this has been answered already. But I have some major problems soldering the thermal fuse to the board. It always blows. Any tips ?

    Raise the temperature of your soldering iron, and you'll be able to do it quicker with less propagating heat. You could also add some extra bend and length to the fuse legs.



  • @Sefi-Ninio said:

    Hi, @toabhishekverma
    Well, your suggestion might work, I am not sure a switch that is meant to be connected to 220v mains can be connected to the gpio pin.

    I think, adding an additional relay to the pcb and allowing them both to behave like a 3way switch will allow for maximum flexibility.

    1. It could control 2 separate lamps
    2. It could behave like 2 3-way switches
    3. It could behave like a single 4-way switch

    I would have done it myself, but I have no clue 😀

    @aproxx , what do you think about adding another relay (for a total of 2 on board) and making them 3-way?



  • Another question about the thermal fuse. I might be wrong on this, but I guess its purpose is to break the power if the HLK overheats. But If placed in the intended place would not the PCB need to be on fire to have the thermal fuse be warmed up to 73 deg C?



  • @Cliff-Karlsson said:

    Another question about the thermal fuse. I might be wrong on this, but I guess its purpose is to break the power if the HLK overheats. But If placed in the intended place would not the PCB need to be on fire to have the thermal fuse be warmed up to 73 deg C?

    I guess you're supposed to glue the thermal fuse to the hlk and run wires from this point to the designated footprint of the fuse on the pcb.



  • @Sefi-Ninio said:

    @Sefi-Ninio said:

    Hi, @toabhishekverma
    Well, your suggestion might work, I am not sure a switch that is meant to be connected to 220v mains can be connected to the gpio pin.

    I think, adding an additional relay to the pcb and allowing them both to behave like a 3way switch will allow for maximum flexibility.

    1. It could control 2 separate lamps
    2. It could behave like 2 3-way switches
    3. It could behave like a single 4-way switch

    I would have done it myself, but I have no clue 😀

    @aproxx , what do you think about adding another relay (for a total of 2 on board) and making them 3-way?

    OK Guys,
    I've decided to try and use the original V3.2.3 plans and add another relay to them (with your permission, @aproxx).

    The board will have to be a bit bigger, I will have to make room for another relay along side the existing one, and I will have to also make room for its connectors.
    Not a big problem, I think, as it is already very well designed and has a small footprint, but still.

    I need a bit of help from you guys, though - I am a complete noob when it comes to the wiring and electricity. I can handle the coding, no problem, but the electricity is very new to me.

    I am assuming that besides adding the second relay, no other components need to be added - no resistors, capacitors, varistors etc.
    Is my assumption correct?

    Thanks!



  • @Sefi-Ninio said:

    I am assuming that besides adding the second relay, no other components need to be added - no resistors, capacitors, varistors etc.
    Is my assumption correct?

    Thanks!

    You need at least a second transistor.



  • maybe a fuse to protect relay output.. ?
    and plz add a second switch, to control an other node or anything..



  • So basically, I should duplicate the current circuit for the new relay...



  • I am facing a little problem with the fuses. I am using these:

    230V AC: http://de.aliexpress.com/item/TRF250-300U-line-resettable-fuses-0-3A-300MA-250V-Tyco/32368739339.html?detailNewVersion=2

    5V DC: http://www.ebay.de/itm/321697892220?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

    When I connect the pcb to power the LED on the Arduino flashes and then the 500 mA Fuse in the 5V circuit dies. I am now using the 300 mA resetable Fuse for the 5V part as well, which seems to work without problems. How can it be, that the 500 mA fuse dies and the 300 mA fuse does not?



  • Jan Gatzke; chinese brand electronics... who knows what can happens....

    i ordered all stuff needed to make my pcb with maximun 4x4cms to use inside wall switches (like zwave fibaro modules). i will try to reduce that board by not using connectors and solder the cables directly etc..

    Something that i don't know is why use a varistor and fuse on secundary??? arduino already have an polyfuse PPTC Resetable fuse, and someting bad that happens with nrf24 will burn the 3.3V regulator.. its that varistor and fuse realy needed?



  • @aproxx hello. can i know how you rendered your PCB layout to 3D , if any tutorial it can guide me
    to achieve that .

    thanks


  • Hero Member

    Wow, this thread has been really active in the past few months! I'm sorry for my absence, but I kind of got dragged into other projects.. 🙂

    A new version of the board will be shared soon! Compared to the current board following changes have been made:

    • A second solid state relay has been added. This 2nd relay is optional, so if only 1 device needs to be controlled just 1 relay needs to be installed and everything will still work fine.
    • The board size has been increased just a little bit to fit this 2nd relay. Size is still 5x5cm only.
    • Some components have been moved in order to make it easier to solder them (This was a bit tricky on version 3.2.3 because some components were really close to each other).
    • Traces between the relays and the connectors are now 'open air'. So there is no mask on top of the traces. This way it is possible to reinforce the traces. By doing this it shouldn't be any problem to connect a 2A load to the board.
    • A temperature cut-off has been added to the board.
    • The varistor for the low voltage circuit has been removed because it's not really needed anymore with all the extra security measures on the high voltage side of the board.

    Currently this board is still on it's way from China, but as soon as I've received this board I'll share all the documentation and everything else which is needed on this forum! This will probably happen in 3-5 weeks from now, so stay tuned! 😉


  • Admin

    Great @approx, please consider to create it as new project over at openhardware.io, much easier to keep track of things (and a forum thread will be created automatically).


  • Hero Member

    @hek That sounds as a great idea. I'll share it on OpenHardware as soon as I have confirmed that everything works as expected!



  • @aproxx said:

    • The varistor for the low voltage circuit has been removed because it's not really needed anymore with all the extra security measures on the high voltage side of the board.

    exacly what i was talking about!👍



  • bad news 😕 then why have you fuse at home ? 400 000 V has security measures, why add more security ? it's juste our life, childs life !!
    do you know what is a "security transformer" ? the hlk-pm01 isn't one.


  • Hero Member

    @vil1driver said:

    bad news 😕 then why have you fuse at home ? 400 000 V has security measures, why add more security ? it's juste our life, childs life !!
    do you know what is a "security transformer" ? the hlk-pm01 isn't one.

    It's not that I think that security isn't important, but I believe that no security on the low voltage side is safer than having a false sense of security. As I've read above, lots of the low voltage fuses were not reliable. And that's one reason I dropped it in the newer design.

    All that aside: I never ever EVER intend to mount these boards on locations people can reach (unless they intend to). Everything is placed safely behind a light switch or in a completely closed plastic box. The only thing that COULD be touched is the wires to the switch itself (And even those will be out of reach if the lid of the switch is on). But since these switches are only connected to ground and a digital input, those wires don't do any harm.

    But yes, I do know what a 'security transformer' is. And no, I completely agree the HLK-PM01 itself isn't a secure transformer. But considering the price, the added fuses and temp cutoffs, and the plan to mount these in a safe location, I believe the HLK-PM01 does the job well. 😉



  • thanks for your answer,



  • Secure? ... A varistor and a 8v fuse on secundary line! ...
    Never touch devices when powered to mains. A simple light bulb that you can touch on metal part, a tablet charger that can blow up... just don't touch the module and put it inside wall (not wood) or circuit case.

    alt text



  • @aproxx
    what is your progress for new version of two relay switch board?


  • Hero Member

    @jemish The boards were sent to me from China 5 days ago. I don't have a tracking number available, but usually it takes between 3 and 5 weeks before they reach me (Belgium). I already have all the necessary components, so within a week after I received the boards I'll provide this topic with an update.



  • Its been a long time since I built one of these but I recall there were some gotchas. I have a bunch of version 2.2.3. Besides the silk screen showing wrong orientation for the regulator what else was there?
    Perhaps @aproxx could update first post?
    Thanks!


  • Hero Member

    Hi @shabba.
    I assume you mean version 3.2.3 of the board?
    Besides the silkscreen of the LE33 being the other way around, there are a few other things to keep in mind:

    • The drill holes of the fuse/varistor on the 230v side might be a bit small. So it is advised to either make those holes a bit bigger, or to make the legs of the fuse/varistor a bit thinner using some sandpaper.
    • Make sure to solder the components in the correct order (As mentioned in the Word document, which is part of the ZIP file of the opening post).

    I'll update the first post of this topic in a few weeks, which includes the newer board version that fixes all the problems as stated above.



  • @aproxx Thanks - It was a while since I did my last one so wanted to be clear. Looking forward to seeing new one. Great work - appreciated!



  • Ordered the boards... Can't wait!

    Ever thought of implementing ACS 712 ?



  • I waiting for new version of two relay switch board.


  • Hero Member

    @jemish
    Then your wait is almost over! 🙂 I'm currently doing my latest tests on the board, and so far everything works perfectly. I'll try and see if I can post everything during next weekend.



  • @aproxx great news! This is something I look forward to!



  • @aproxx will the second relay be opt-in?
    I mean, will the board function normally with only one relay?


  • Hero Member

    @Sefi-Ninio
    Yes, it will be perfectly possible to just install 1 relay on the board and it will still work fine.
    More news in the next few days! 😉



  • SuperCool!! 😄 😄 😄

    I have business trip to China in the middle of May, so I can take the PCBs directly from dirtypcbs!

    Many Thanks for your work!!


  • Hero Member

    The latest version of this board is available here!
    Because of the large number of request a second (optional) solid state relay has been added to the board. Enjoy!



  • Thanks!!



  • @aproxx Where is the button/ Switch connection pin.


  • Hero Member

    @jemish
    It's on the middle of the board on the top side. 4 pins are present to use as switch inputs. 2 pins are ground, and then pin 4 and 7 are available as well.
    By closing the connection between pin 4 and ground you will switch te status of relay 1. When closing the connection between ground and pin 7 you'll switch the status of relay 2.



  • @aproxx I have a few left-over boards from the earlier release - where the holes for fuse2 were smaller than required (PTC Resettable Fuses 250V 1A TRF250-1000 PPTC Polymeric PTC PolySwitch). I wanted to use up the remaining boards, and wondering if the following fuse could be a substitute (USA-based, leads are smaller diameter and would fit the holes) - MF-R110 FUSE PTC RESETTABLE 1.10A HOLD MF-R110 110 MF.

    Thanks for your guidance.




  • Hardware Contributor

    @Fat-Fly these tiny boards have really bad isolation and are dangerous tu use.
    And did you have a look at this 1-diode "rectifier" ? The ripple is probably awful and the result will affect the quality of the radio transmission.
    Saving 0.5$ compared to an HLK is really not worth it !



  • @bruno tanke you, very good.
    I share it in facebook.


Log in to reply
 

Suggested Topics

  • 87
  • 6
  • 7
  • 1
  • 9
  • 5

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts