Hi,
First time poster so go easy! I've visited the forum for years but am not normally one for asking questions for some reason, that's about to change! I'm a keen hobbyist, I've done a few board layouts, I'm fortunate enough to work for an OEM with daily access to design engineers for help/criticism. I was etching boards in ferric chloride at 15, but fell out of love with electronics for 13 years until I started working where I do now. Any way enough of the life story!
I'm working on a project using an Arduino to monitor Temp/Humidity/RTC, which is displayed on a LCD. The data in also stored on an SD card. The end application is to monitor an incubator for chicken eggs. I enjoy pcb layout so am taking the underlying Mega2560 layout and tweaking it and designing my own based on what I need above. Ultimately I will 3D print an enclosure to house it all.
I've so far got everything working above, I've now decided I'd like to add a few relay outputs for handling heating elements and other bits and pieces, and possibly a mains driven motor for automatic egg turning. Although I may convert this to a servo for more accurate control.
I've currently got the system being powered either by USB or 12V DC, regulators then give me 5V (from 12V) & 3V3. I've picked out some latching relays to conserve power, (I may add battery power as an option later on).
The point of the post is mains isolation from DC side, I've seen various suggestions ranging from opto, mechanical slots, relay is enough etc.
Whats the best approach? Cost isn't really a concern as these are unlikely to go into mass production as incubators with inbuilt systems already exist (buying one isn't this much fun though).
I'd like if possible to power the coils from the common 5V rail, this obviously gives a non isolated route back to the Mega2560, data from Arduino can still be done through an opto. Another thought is to power a separate AC-DC converter with the mains input that will then be switched to the outputs by the relays. This would completely isolate the two systems by utilising an opto.
The only reason for preferring the first option is I may use this for switching 12V DC loads as well, thus the AC-DC converter idea wouldn't work without adding some provisions for input power selection. Again this could be done but I think it all gets a bit messy.
If it worked the data sheet for the relay should be attached to this post, if not....
Anyway, first post and what a whopper.
Cheers, James.