Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

Raspi EDLC UPS

1.271 Byte hinzugefügt, 23:31, 18. Mär. 2014
== Circuit ==
[[Datei:Raspi_USV.png|UPS circuit for Raspberry using Supercapacitors]]
 
The powersupply goes in at the left side, the diodes prevent that current will be flowing back to the power supply and the resistors R5/R6 limit the current at startup rushing into the Supercaps (otherwise the diodes or the power supply might die).
 
The supercaps C1/C2 must be connected in series and the resistors R1/R2 are used that the voltage over the caps will be distributed evenly, otherwise the caps may degrade quickly. The resistors also discharge the caps slowly when the circuit is not powered (but within a quite long time) that is also good to lenghten the live of the supercaps.
 
With R3/R4 the input voltage of 5V is simply divided by half and connected to GPIO pin 7. When the main power supply fails the level at this pin quickly drops to a low-level, otherwise the Raspi will detect a high-level. A simple shell-script using the "gpio" command is polling every second the state of this pin and trigger a shutdown if the level goes to zero.
 
== Result ==
It works pretty well but those big caps are expensive if you have to buy them. It could be done much better and with much smaller supercaps if a step-up-converter is used to generate the 5V or better directly the 3.3V that the Raspberry only needs (avoiding that power-wasting linear regulator).
1.954
Bearbeitungen