Project Dino-Solar 240

A gadget to charge the Power Tank off AC power.

The Power Tank uses a Victron MPPT 75/15 for battery charging. I experimented with this and found that it would happily charge from a DC power supply connected to the PV input.

I tried several different bench power supplies and also 18V DeWalt cordless drill batteries, and all seemed to work fine. Victron specify that the DC input voltage has to be at least 5V above battery voltage for the charger to start, and then 1V greater for it to continue running, so in practice 24 or 48V DC would be a good input voltage for my 12V system.

I settled on a Meanwell HLG-240H-48A LED driver obtained cheaply on eBay, that supplies 48V DC at 5A.

This worked just fine plugged directly into the solar input, but I decided to complicate things by adding an automatic changeover between solar and AC charging when AC power was present. My first attempt was to use a couple of diodes to OR the solar and PSU inputs, but this didn’t work. The PSU would be dragged into current limit as soon as it was turned on, and the MPPT would then ramp its output voltage up and down searching for a max power point and never find it.

The key to a successful changeover turned out to be to disconnect the solar panels, wait 5-10 seconds for the input voltage to fall to zero and the MPPT to shut down, and then connect the power supply. I made a circuit to do this automatically depending on the presence of AC power.

This junk box inspired design is based on a Europa ECMFT timer relay, and a Raspberry Pi 4 wall power supply that I’d previously cut the DC plug off for some reason. When AC power becomes present, the Raspberry Pi wall wart supplies 5V to a changeover relay, that disconnects the MPPT positive input from the solar panels and connects it to the 48V DC PSU, which is still turned off. After 10 seconds the timer relay switches the PSU on.

When AC power is lost the reverse happens. The 48V PSU turns off straight away, while the Raspberry Pi PSU keeps the changeover relay energised for a few seconds on its stored energy. This avoids the changeover relay having to break the 48V while current is flowing.

The main weakness of this circuit is that it uses a relay to break and make the DC output of the solar panels. Relay contacts typically have much reduced DC ratings compared to their AC rating, and most won’t even handle more than 30V DC.

This isn’t a huge problem, if there was lots of solar power available, why would I even be switching over to AC charging? Also my solar array is tiny and puts out less than 30V DC. However, I paid it some lip service by choosing a relay with a 30V DC rating, and putting two of them in series on the PV side. (What if the 2 relays don’t open at exactly the same time I hear you ask? Next question please…)

I tried a new enclosure construction technique for this, based on a piece of 4″ x 4″ aluminium box section. The ends are made of sheet aluminium and attached to the box section by aluminium angle. The HLG-240H-48A is screwed to the case with a generous amount of heatsink compound to help it lose heat by conduction, which it seems to manage OK.

You might notice that the prototype had a digital voltage and current meter which is now gone. This cheap Chinese meter turned out to be basically a random number generator so I ditched it.

I think it looks great, but the wiring was a real pain and ended up very messy inside, because it all had to be done through the ends. I’m not sure I’d use this technique again unless the innards could be made to slide out as a single unit. That wasn’t possible in this case because of the power supply covered in heatsink grease.

A coat of paint for the “Power Tank”

Fittingly the paint colour is Valspar “Thunderbolt” left over from painting the front door at home. Still waiting on some more industrial looking socket outlets to replace the chrome ones.

I’ve been warned that after going to Powerpole connectors for 12V DC distribution, I’ll never want to touch a cigarette lighter plug again. That sounds about right.

Off-grid power bank

I’ve been renting a 20ft container to use as storage and workshop space, and wanted some electrical power.

The prototype was not very elegant. 😀 The basic components are a 135W solar panel on the roof, a 12V 100Ah AGM leisure battery, a Victron MPPT charge controller, and a 1kW pure sine wave inverter.

The inverter is a reasonably priced “Mercury” branded unit from TLC Electrical. I believe the Chinese OEM is Ningbo Kosun. I may do a more detailed review in another post.

Lead-acid batteries aren’t great for geek points, but I thought it would be the best technology for the job. I only visit about once or twice per week and rarely drain the battery completely. It can also get very hot in there in summer, so the battery figure of merit I’m interested in is basically calendar life when fully charged at high temperature. Lead-acid offers a lot of that for the money.

The first problem I found is that the Victron’s load output is wimpy. It won’t even run a 12V compressor. However the Victron has a good algorithm for turning off the load when the battery gets low to avoid damaging depth of discharge, and I wanted to make use of that.

So my first addition was a large MOSFET solid-state relay that would allow the Victron load output to control a much heavier load at 12V. I made this myself using 3x IRFP7430 MOSFETs in parallel, driven by a Si8712 isolated driver chip. The MOSFETs are rated at 40V, 195A, 1mOhm Rds(on). Turn-on and off seems to be rather slow. The small package on the right is a flyback diode to avoid a large transient when turning off an inductive load such as a motor. The MOSFETs would probably be ok with this, but it could damage other loads on the 12V bus.

The solid-state relay does not switch the supply to the inverter. This is connected directly to the battery to minimise voltage drop.

I modified the inverter to have a remote on/off switch, which was very easy as the internal on/off switch just connects 12V from the positive input terminal to the control circuitry. I simply hacked it so the control circuitry got its 12V feed from the Victron’s load output via a front panel toggle switch. This allows the Victron’s low battery algorithm to turn off the inverter alongside the other loads, and allows me to bury the inverter inside the enclosure with no access worries…

Note that I couldn’t find the official remote control panel for the “Mercury” inverter. I bought what I thought was the correct one on eBay, and on plugging it in, there was smoke… Luckily it all came from the remote and the inverter still appeared to be in good shape.

I also got this 500 amp battery monitor in Renogy’s Black Friday sale. 500A is overkill but it was cheaper than the lower current versions. The accuracy at low currents turned out to be fine.

I wanted a visual indication that the inverter was on, and also some geeky statistics relating to the AC output. This power meter module from Amazon did the trick with its cheery blue backlight. It is powered from the AC supply, and this increases the 12V power draw of the inverter by about 1 watt.

A British Army F632 ammo box was procured to fit all the parts in and… they didn’t fit. To gain some extra space, I added a wooden frame to the front made from CLS studs. I am quite proud of the Stratocaster jack cups as PV input connectors.

I provided 3 DC outputs: two Powerpole connectors protected by 32A circuit breakers and a cigarette lighter with a 10A breaker. Household AC circuit breakers do seem to work on 12V DC. I’ve seen them used up to 48V DC.

The inverter feeds two British standard socket outlets via RCBOs (earth leakage trips). In order for these to function the inverter’s neutral is connected to earth. Battery negative is also connected to earth and in use the earth stud is connected to the container. I believe this is the best overall solution from an electrical safety point of view.

The RCBOs do consume some AC power to perform their earth leakage monitoring function, but the amount is tiny, and doesn’t increase the inverter standby consumption noticeably. I tried Axiom and British General brands, and the BG ones had the lowest consumption.

These also have a 6A overcurrent trip function (the O in RCBO) but the inverter’s own current limiting would probably always operate before they tripped.

The inverter was mounted on a plywood divider and some holes punched in the sides of the box to promote airflow. I also removed the AC socket outlet from the inverter, leaving a large square hole for extra airflow, cut out the fan grill from the inverter casing, and reversed the fan. Hopefully these changes will make up for jamming it inside a relatively small compartment.

To be honest I have no idea if reversing the fan helped the inverter’s own cooling. Stock behaviour is to suck hot air out of the enclosure, and the old rule of thumb is that it’s always better to blow in cooling systems, but the inverter seemed like a quite well balanced and optimised design otherwise, so I can’t believe the designers left much on the table with sub-optimal cooling.

Really it was for my own convenience at a system level, the fan is at the 12V input end of the inverter and I wanted the hot air exhaust at the opposite end to the battery terminals, so I could have shortest possible battery wiring and a neat “signal path” from DC to AC without the inverter’s hot air blowing onto the Victron charge controller.

You might notice the lack of fuses on the battery positive terminal. Every connection to the battery is ultimately protected by a fuse or circuit breaker, but not directly at the terminal.

In use, you can see the inputs from the PV panel and the earth wire leading to an earth clamp on the container. (A steel framed building as far as BS7671 is concerned I guess.) The 12V and 240V wiring are not done yet.

The power bank itself could also do with a coat of paint and some more industrial looking unswitched AC outlets. The chrome ones are a bit flashy. Weighing in at 45kg (perhaps Power Tank would be a more appropriate name?) it also needs some serious handles to assist in moving it around…

I love the way the meter backlights come on when the inverter switch is flipped.

Appliances the inverter has run successfully:

  • Toaster, obviously
  • 1kW electric heater
  • 400W “Eco Henry” vacuum cleaner
  • Clarke CDP102 pillar drill
  • Clarke 6″ bench grinder
  • 1200W travel hair dryer (output sags to 220V, hair dryer only produces 1kW)
  • Ikea TILLREDA induction hotplate (only up to 40% power…)
  • A selection of guitar amps (works surprisingly well with no noise issues)