Hi there Arduino community,
I am living in South Africa where were are facing something our lovely government has dubbed: Loadshedding - Whereby, during certain times when our power grid is faced with issues with the poorly maintained power infrastructure (due to the corrupt government squandering funds, getting rid of skilled workers in favour of Black empowerment [nothing against this, but the lack of skill/experience is the issue, not the colour of skin] etc.), they drop areas from the grid in order to reduce strain on the local power grid.
We see this once in a while and can range from a single (Stage 1 loadshedding) 2 to 2.5 hour outage, to several (Stage 2 to 6) outages that last between 2 to 2.5 hours every 5 hours.
So long story short, I run some horticultural equipment that is to remain powered up for 18 hours per day during the vegetative phase, and 12 hours during the flowering stage.
I make use of high power COB LEDs (Luminus CMX-32 Gen 4) which runs off of Meanwell HLG-150 drivers from our AC 220V supply.
I have acquired some fairly decent 12V 5630 SMD LED strips that I want to switch over to when the AC power is cut, but obviously only during the "lights on" periods - this will be powerd by a few 12V 12 to 15Ah batteries connected to auto cut-off chargers which will maintain/recharge the 12V batteries between outages.
I am really quite excited to look at using an Arduino Uno R3 (locally available) and some relays to seamlessly switch on the 12V LED strips upon AC loss, but I have the following questions:
- Can the Arduino switch from a DC power adapter to battery without losing power in order to power on the 12V LED lights? If so, what voltage is required to run the Arduino, as I've read they are happy with between 9V & 12V - but wouldn't want to risk blowing the unit if connected to 12V?
- What would the required components be to achieve/manage this scenario? E.g. 220V relay that will trigger the switch to 12V relay upon loss of AC 220V, etc.
- Would I be able to program the Arduino to only switch to 12V during specific times of day? E.g. My 220V timers to my Meanwell drivers and other hardware is set to be on between 5am and 11pm, should the AC/mains cut off during loadshedding after 11pm and before 5am, it is to only power the Arduino and 12V exhaust fans from battery and not power on the LEDs connected to my 12V circuit.
I think I have covered everything here, but if you need more info, please don't hesitate to reply, I will keep a close eye on this thread as I am itching to start my tinkering.
Many thanks and regards, and stay safe during this COVID-19 pandemic we are facing globally as humankind.
Much love, respect and blessings from a fellow human being here in South-Africa.