Hey forum.
First post here so please be gentle
Ok so here we go. I am working on standby PSU that will control relay to switch mains on or off. It will have few possible I/O for control (button, led, IR, additional offboard relay, serial com with optoisolation). Mainly I am making this for my amplifier and preamp but essentially it could be used in other applications.
I have built one prototype but i was not really happy how it came out. No fuse onboard, hard to get ATTiny out of it, no heatsink on regulator. And since I built it I added second relay into specification so pinout on connectors needed to be changed as well.Prototype can be seen in attachments under name avr_v09 I have attached schematic, pcb, and finished product.
Now for second iteration I have changed few things around and added few things to PCB. And I have some questions if I am going to right direction or should i change more stuff. Ill go through list of things that I want second opinion on. See attachment under v01f.
1. I have added two separate fuses onboard one for psu and one for load controlled by relay. Fuses are Littelfuse TE5 369. Rating on fuses should be fine but I am bit concerned since most other product usually use standard 20x5mm but space is a bit of a premium.
2. Changed bjt to mosfet for relay control. And added another mosfet for controlling offboard relay. Now the question is is it better to put mosfet close to relay or leave it on this board. I know I need to put flyback diode as close as possible to relay but I could not find any good information on mosfet placement.
3. Changed relay from Omron G2R-1A to TE RYA31005 since it is a bit smaller and uses less power. Also added snubber to relay contacts (0.1uf and 100ohm). For my application I will be switching on and off 20VA transformer in one application and 300W SMPS in another. I am guessing that relay is still overspecced for my application for not to worry about inductive load.(I hope).
4. Is psu layout good enough or should I change some things around. (transformer is 2VAC 2VA, filtering cap is 1200uF Panasonic FR, regulator is TI LM2940c but I will probably change that because of high Iq, cap behind regulator is 47uF that satisfies regulator ESR.)
Other things changed
5. ATtiny85 moved to different position for easier extraction.
6. Regulator position changed so I can add heatsink on it.
7. Rearranged connectors and changed pinouts. Led and button connector were moved together on single 3pin connector. Serial communication was moved to 3pin connector.
8. Added optoisolation for serial communication. Board can be used as master or slave so one sends and the other receives serial data It just depends on what parts are populated.
9. Changed mains connection to screw terminals.
Any other suggestions are also welcome.
I will put everything to github when it is finished. Also don't mind the versioning of this thing but prototype was named AVR switch and version v09 was actually build. Since then I changed name to Standby psu and version started with v01