The solar cluster here has grown in size since I last put an energy meter on it… a few years back I had a Landis Gyr meter on it as I was writing a comms driver for said meter, and needed a load to be able to know if the load profiles were correctly scaled.

At the time, it was a consistent 80W load.

Since I recommissioned old boards, my cluster has grown and now draws >300W continuous.

The solar controller is a Redarc Manager 30. It'll use solar in preference, but will power everything off mains if the sun isn't producing. It keeps the batteries charged at all times.

I want to make better use of the batteries, so the way forward is to switch the mains off. We have a 240V SSR in a box that's driven with 3-24V DC input… and the TS-7670 has a GPIO-controlled MOSFET output. It also knows the battery voltage.

Perfect… a little bash scripting, and the rest is just `cron`. Job done.

https://gist.github.com/sjlongland/a277159d5dec468201cbf711c2e4f97a

#SolarCluster #HomeServer #SysFSGPIO #TS7670

Controlling a 240V battery charger with a TS-7670 MODBUS 24V switch

Controlling a 240V battery charger with a TS-7670 MODBUS 24V switch - mains-ctl.sh

Gist

Ce week-end, j’ai fini par me faire des câbles maisons pour reprogrammer un token #FST01SZ afin d’y installer #gnuk, le logiciel de token #GPG, en remplacement de #neug, le générateur de nombre aléatoire, installé par défault

Au menu :

- une #cubieboard2
- une vieille prise molex femelle
- un câble avec des fils tout fin
- un peu d’étain
- un coup de #OpenOCD
- du #sysfsGPIO
- et du #SWD

https://shop.fsf.org/storage-devices/neug-usb-true-random-number-generator

NeuG USB True Random Number Generator | FSF Shop