Go Down

Topic: Solar power/fuel generator + arduino (Read 1 time) previous topic - next topic


Well my dad bought a house far away form any civilization. No power, so i got him some solar panels, a battery and a solar charger, he also has a power generator (diesel). Now i'd like to make some kind of control panel, simple enough for an average joe (no mad skillz, just some basic on/off, he is over 60 and my mother will probably want to control it).

Solar source is 12V the generator is 220V but i can easily buy a nice encased AC-DC converter that will give me 12V from the generator. So the assumption is that i have two 12V power sources.

The idea is to have Arduino connected to both power sources (solar and fuel), and have i think 3 operating modes.
- automatic, arduino decides witch power source to pass through based on the voltage levels (two voltage meters with resistor voltage dividers and a relay on output to switch the lines)
- manual, you tell arduino witch power source to use
- off, arduino cuts off power to the house, and just waits or gets turned off, this mode might also include a raspberry PI that starts to monitor some cameras for security (off means everybody is out of the house, watch for intruders)

Theese are my assumptions. Some questions i have:
- if the relay circuit, how do i switch between two power sources each 12VDC, what about ground connectivity etc, i saw a project where someone turns 220V lights on/off but that's one power source
- how much juice will arduino take on it's own doing what's it doing, power usage is very important here
- is the idea a good one anyway ? maybe there are better one for this situation.
- i don't know much about power generators, the one my dad has (i consider buying a new one and this question will help in that case) is turned on using a button (no cord to pull), i'd like to connect that button to the panel/arduino, though i don't know how does that work (if at all)

Any advice links, docs are welcome, i'm a serious newbie but want to help my parents. I need to make it as user friendly as possible

Thank you.


Well actually your battery should power your 12v cicuits, your solar controller will keep the battery charged as well as it can, then you just sense when your battery gets below 50% State Of Charge to determine if the generator needs to run. A 3-stage RV converter will be the most economical charger for long term running, but you maybe could find a heavy duty charger elsewhere that will "pump" more in faster. No need to disconnect one when charging with the other.
Actually, voltage measurement is a very poor way to determine battery SOC, total amp hours in and amp hours out of the battery will tell you a lot more accurately, check out Hall Effect sensors or "shunts" for the Arduino.
It sounds like all of you need a lot of education on solar power and "off grid" living, check out these forums
or Google for sites
Here,  for some easy to understand info http://handybobsolar.wordpress.com/the-rv-battery-charging-puzzle-2/
Didn't mean to be condescending, but after 40+ years in electrical and electronics, I was amazed at how wrong I was about a lot of solar info, and how little I actually knew.
Your brain will hurt! There is a lot of info out there, make sure it is right by double checking as many places as you can. Some sites are only interested in selling their stuff, others have no actual knowledge of electronics, some both.
Spend a little more for reliable equipment, you'll never be sorry.
Einstein once said you don't really understand anything until you can explain it to your Grandmother


Well for the solar charger controller i was considering:

It seems like a good choice, it's not a cheap chineese crap you can buy.

I know that the controller will keep the battery running as best as it can, but once it's depleted it will disconnect the load cicuit, and this is when arduino should kick in and switch to the generator (that's my idea). I know there might be some time between the switch (the generator needs to start and it might take a few seconds) but that's ok. Now arduino should also know when the battery is ready and switch back to it, and disengage the generator. I know i need to read a lot about charge levels of the battery, i don't know how to deal with that.

I can't switch back to the battery as soon as the charge controller re-connects the load circuit, since it will discharge very quickly, i'd need to know if the battery is charged at a certain level (let's say 75%) so that when switching to it, it will work on the battery for a significant amount of time.


What are the loads you want to run on this system?

One of the key components of my off-grid setup is an inverter-charger with an automatic transfer switch.  This is wired into the building wiring.  When the generator runs, the loads are switched automatically to the generator.  As long as the generator is running my batteries are charged through a 20A 3-stage charger.  I recommend getting one of these.

With all this in place, the only thing you need to program is when to run the generator, which could a function of the battery state-of-charge.  To a first approximation, it is possible to estimate the state of charge of a lead acid battery if you know the cell voltage, current draw, battery capacity and temperature.


OK, first, your loads to the house do not go through the solar charge controller, that load circuit is only for extra loads that are needed to keep wind generators from spinning to fast when the controller disconnects from the full battery, or diverting extra solar power to a w/h or other resistance load to use up "extra" current when the batteries are full. As I read it you have no wind generator, you would need a separate controller for one anyway.
Also, you made no mention of an inverter, just 12V loads in the house, which can be done, but are you?
An inverter is a whole other set of requirements, you are really getting into a lot of design now.
As gardner said an A/C transfer switch will be required then. There are inverter/chargers out there http://www.xantrex.com/power-products/inverter-chargers/overview.aspx for example, that have built in transfer switches, some even have auto start circuits for the generator, and charge the batteries automatically too.
Got to say, that little 30 amp charge controller isn't going to be near enough (and <400 watts of panels it is capable of running) to charge a whole house  system running off of a large inverter, needing >500 AH of 48V batteries, ect.
Check out the "Off Grid" sections of those forums I gave you, read books on solar designhttp://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Dstripbooks&field-keywords=Solar+system+design, get ready to spend $$$$.
As I said, lots to learn.  Many sites out there that will show you solar is not a cost effective way to supply power to a house UNLESS you are miles away from the grid, which you said you were. Personally, I think the independence is worth it, just can't talk DW into spending $10,000. She'll be sorry when the giant solar flare wipes out all electric grids on Dec 21, or was that the magnectic poles will shift. The sky is falling, the sky is falling!!
Einstein once said you don't really understand anything until you can explain it to your Grandmother

Go Up