I have it ,look to my project.. project from example directory working .. but if power on node then register to gateway but not send actual state of relay .. I do it ..
Hi,
nice projet. I am very interested in it.
But why you are using 5 V and not 3.3 V? The ATmea328 works with 3.3 V too and the NRF have to use 3.3 V.
The only restriction on 3.3 V is the clock limitation for the Atmega (8 MHz). But with no crystal it don't care.
For example you could use an HLK-PM03 instead of HLK-PM01 and remove the linear voltage regulator. So you get more space an everything have the same voltage level.
And another point is, it is recommended to use a capacitor (0.1 ยตF) to ground for each voltage pin (Vcc, Avcc, Aref).
@Jonathan-Roberts said in Simple AC/DC Switch WeMos:
@nca78 bummer. So I think 2 options...
What if the Wemos is raised off the PCB. That would be almost 5/8". In your experience would that help?
And maybe the best option, slide the antenna module straight down,. move the relay up and spin it around so the connections are on the outside edge.
I'm trying to make this multi-purpose and allowing both headers to be fully functional to other projects. thx for the advise.
1 would help but not that much. It's already not a good thing to have the transformer just next to it on the side, so you should avoid blocking one more direction with tracks.
I don't understand your necessity to have connectors available for something else on the relay that is too high to put anything on top ?
2 sounds like a much better option, make sure you have nothing right and left of the antenna when you move things around.
The problem you will have with this layout is the USB in that situation...
It doesn't sound like a great idea to me to use Wemos on this board especially for the relay part, it's just a cheap chinese relay with 3/4 components so why not just put them directly on you board to make the layout so much easier ?
I have the feeling that you're trying to make things "easier" by using Wemos and its shields, but in the end you seem to lose more than you gain. And neither does it seem "safer" to use their relay shield as it forces you to have extra wires between main of the HLK and relay shield connector.
@Shivanand-Chanderbally I recently finished a node using the acs712 and found it to be very sensitive to nearby magnetic fields. It is best to have it as far away from these as you can.