Pi Zero/Zero W Base Board with Battery Backup
Many of us have a few Raspberry Pi single-board computers lying around, maybe leftover from a project, or one that we bought for some specific reason but never got round to using it. I have a total of 4, and to be honest, I am not using any... least of all the Pi Zero W.
It looked like a very good deal at the time, but when it arrived, I found it just too limited for serious use...
That was until I had a need for a low-power, small profile MQTT server on my local home network. The Pi Zero seemed like the perfect candidate for that, but once again, after doing a bit of research, I put it away.
Why this time: Battery backup. I stay in SE Asia, and while the electricity is usually quite reliable, it is infamous to go out for any reason under the sun, usually with no warning at all... The reason for this is that no real planning is done by the electricity supplier, and to save costs, they use the cheapest electrical contractors available... making it necessary to completely switch off the supply to the overhead cables... Maybe they have never heard of bypassing a section of cable and isolating only the area that you need to work on... anyway, this makes for a lot of headaches.
I looked at a few commercially available UPS type hats for the PI Zero but found them way overpriced. So, I decided to do my own.
It did however require a few things to make me happy, most of which is not yet built into the version I will present today...
1) Battery Backup from a single 18650 Cell, with NO relays of MOSFETS switching over when the mains supply goes on a break...
i.e. It has to be full ONLINE backup.
I found that the MH-CD42 Module will give me just that, with the added bonus that it can supply current while it is charging.
2) A single button shutdown for the PI, that does not conflict with some of the other GPIO functions
3) Battery level monitoring - not currently implemented, to send a signal to switch of the PI safely when the battery gets low.
I also require full access to the GPIO pins, and I want them grouped together by function. clearly labelled, and while there, add some level conversion as well, as most of my sensors are 5v, or not 3v compatible
This is what I came up with, my apologies that it is not 100% completed at this stage ( Post Covid Logistics is a HUGE problem, and components, although ordered well in advance, still seem to linger somewhere in a warehouse for at least 21 days AFTER customs clearance before being delivered :) )
The idea is to have the Pi Zero/W plug into a 90-degree Right Angle 2x20 Female Pin Header. Access to all of the GPIO pins is then made via the relevant Pin Headers on the baseboard.
White is 5v capable, Black is 3v. This is achieved via two TXS0108E Level converter chips ( U1 and U2 ).
The converters are controlled via GPIO25 ( U1 ) and GPIO24 ( U2 ), which need to be pulled HIGH to enable level conversion. These pins are not broken out to any other headers.
For the time being, only SPI0, SPI1, I2C1 and the UART are level converted. I may add more converters in future improvements of this PCB.
All other GPIO is available on a 3v logic level header.
GPIO26 is configured as a dedicated shutdown pin. Please note that it will not restart the PI again. That is done by pressing the Power-Up Button, SW2, once...
Due to the fact that the Female Pin Headers have still not arrived, I am testing the board with power supplied from the battery Module,
via Jumper wires, Orange (3v from PI, White, Black is ground, Red and Brown is 5v supply to the PI Zero.
[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=dwc2
dtoverlay=gpio-shutdown,gpio_pin=26 # Enable shutdown on Pin 26
Pi Zero/Zero W Base Board with Battery Backup
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(2)
- Derek Beaumont Sep 12,2023
- Sergio Oliveira Jul 29,2022
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Jean Redelinghuys MakerIoT2020
- PCB_MCP23008_2023-10-08 MCP23008 BreakoutI designed this breakout to assist me during prototyping my next version of the “RP...
- PCB_XiaoRP2040-Mouse-REV2 Xiao RP2040 Joystick Mouse – revision 2.00Revision 1.0 of the ProjectOver the last few months, I hav...
- Multi Purpose IO Card Multi-Purpose IO CardWhen we are working on a prototype, we always need access to pushbuttons, encod...
- Variable Voltage Power Module Variable Voltage Power ModulePowering electronics projects are always challenging. This Variable vol...
- I2C Matrix Keypad An I2C Matrix KeypadThe completed I2C Matrix KeypadIn a previous post this month I introduced my 4×4...
- ESP32-S Development Board, in "Arduino Uno" form factor UPDATE 24/06/2023:This board now has a Hardware Revision 2.0 available. It is the same board but wit...
- W307186ASC94_Gerber_PCB_USB-Ports USB Power Supply ModuleUSB Ports are quite handy to power all our day-to-day electronic devices, but...
- Atmega 328P based PWM controller Card ATMega 328P Based PWM controller CardAs part of my recent ESP-12E I2C Base Board project, I designed...
- W307186ASC71_Gerber_PCB_ESP-Now Remote Today we will look at the remote control unit for the Robotic Toy Car – Part 6.The project is close ...
- W307186ASV69_Gerber_PCB_Robot-Car-MCU-Board Prototype In our last project, we started working on repurposing an old toy car. In this part, Robot Toy Car –...
- W307186ASV62_Gerber_PCB_DUAL-H-Bridge by makeriot2020 on May 27, 2022Many of us have old toys laying around the house, they belong to ou...
- CAN-BUS Breakout Breadboard Compatible CAN-BUS Breakout ModuleWhat is this:Some of us have already used the commonly ...
- RA-02 Breakout with Level converters Breadboard and beginner-friendly RA-02 Breakout ModuleMost Makers and electronics enthusiasts may al...
- ATMEGA328P Module with integrated LoRa and CAN Bus ATMEGA328P Module with integrated LoRa and CAN-BUSINTRODUCTIONIn my quest to perfect my LoRa telemet...
- Sx127x-Ra-02-Test-Module with ATMEGA328P-AU SX127x LoRa/FSK/OOK Prototype Radio BoardI recently had a requirement to do some automation/telemetr...
- USB-ASP Programmer ATMEGA8 Build your own USB-ASP Programmer CloneBymakeriot2020 FEB 21, 2022 Arduino, ASP programmerUsing mor...
- ATTiny1616-LIGHT-Controller-with-CAN_B_PCB_ATTiny1616-LIGHT-Controller-with-C_2024-09-11 Assembly of the ATTiny1616 Can bus controller PCBThe Assembly of the ATTiny1616 Can Bus Controller P...
- ATTiny1616QFN-CAN-Remote-Neopixel-Ligh_PCB_ATTiny1616QFN-CAN-Remote-Neopixel-2024-09-11_2024-09-11 NeoPixel CAN-Bus Module with local controlAs part of my current project to add NeoPixels to the cabi...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
124 0 0 -
DIY Laser Power Meter with Arduino
173 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
163 0 2 -