Smart Light Switch 220v
-
Here's the data sheet I have for those: G3MB solid state relay.pdf
-
Yes this is the datasheet that I have and used to draw the holes to the relay!
Thank you for the replay @Samuel235 ! Can any one else confirm this to me?
A question! I what to add a ATSHA204A to my board to authentication, but I have a question! Some people use a 0.1uF capacitor and a pull up resistor! Others don't use it! Can any one tell me the reason for that?
@sundberg84 and @scalz what do you think of the layout now, with AC and DC separated?
Thank you all!
When I have all my question answered I can finally order the PCB and test it out! -
Here's the data sheet I have for those: G3MB solid state relay.pdf
-
@Soloam : I have not looked everything but seems better :)
- antenna still above circuit but I guess you want to keep the size. perhaps I would have reduced a little bit trace at AC screwterminals but if you say you have the right creepage, seems ok then.
- For pullup on atsha, maybe not really mandatory, I already tried without one, but it's always better to be sure to have the right voltage level.
- And always better to have it on CS SPI bus pin too. So, if you can add footprint for CS radio pin, it's better too.
- 0.1u capa is for decoupling/filtering/good voltage. Same thing here, it's a better practice to have it for each ic.
- I always try to add a bit more footprints when possible, so I solder what I need. Then if I have trouble I can easily add a component. But it's not always easy as I try to keep things small.
I have not checked everything..but nice rework ;)
-
Hello @scalz ! I'll try the RF in this position! My idea is to put the PCB in wall, and the radio will be facing to the outside, so my hopes are that it will be clear to the signal!
I will try to add the capa and the resistor to the ATSHA204A, but the board is almost full traces!
-
Hello all. I followed your adviesses and moved de NRF24L01 to the top of the board! Now I have all the 220v in the bottom part of the layout! What do you think? (project updated)
I have a question! On the AC 220 Input I have a trace going to the HLK and then to the varistor! I think ther's no problem doing this, but I would like your opinion!
A question, any one knows how to add a Creepage on the KiCad? I looked and can't seem to find it!
Thank you all!
Best Regards@Soloam said:
I have a question! On the AC 220 Input I have a trace going to the HLK and then to the varistor! I think there's no problem doing this, but I would like your opinion!
Can any one confirme 100% that this will not be harmful? This is the only topic missing to make my order!
-
A ended up changing a bit the layout to ensure that the current flows in the correct order! That way I'm 100% certain that it's the way to go! :)
-
End Layout updated! I added a ATSHA204A to the board and revised the clearance on the AC side! The Varistor was reallocated to ensure the "correct" (don't know if it was incorrect in the first place) connection of traces!
I'll make my order today, it will take something like 15 days to arrive after shipping!
I'll test the PCB and if all is ok I'll publish the files for printing!
I must say that I'm not a expert (very very far from that), so if you plan to print and use this board, do it at your own risk! AC current is dangerous!
Thank you all for the ideas and tips!
Best Regards
-
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).