Concept: You are Making a Harness for Whatever Battery You Have
The Mothbox is set up to run off 9-36V DC batteries of any sort! So you can hook up car batteries, old motorcycle batteries, solar panel boat batteries, generally whatever you need! The DC regulators we use tend to be most efficient around 12V, and so we tend to use a 12V one, but the circuits should be flexible!
Because batteries can be so difficult to get to many places, the design stays pretty open so you can try to fit whatever battery you can in there. The main limits for the battery come from the voltage regulator which takes 9-36v and outputs regulated 12V.
If you have a battery like that, than the main thing you need to do is use the holes to strap it in.
Use Your Own Battery The Mothbox PCB basically just wants regulated 12V. This can come from the regulator + a battery, or if you have a battery with REGULATED 12V you can use that too (note that most “12V” batteries are not actually regulated and actually vary between 14-10 (like a car battery).
Thus, you can be a little creative with this part of the guide. There are basically holes in a board that you can weave zip ties through in a way that holds things in place securely.
Battery - Talentcell PB1202b 12v
For the purpose of this tutorial, we will show you how to use the cheapest, most power dense battery we have found that you can still take on commercial planes around the world. That’s the 12V talentcell batteries. These batteries can also be daisy chained together (if they are both fully charged already) so you can double the life of your device easily! (They have to charge separately, and there’s instructions at the bottom for how to set up a system like this)
You will also be using as 9-36V 5a 12V regulator. This ensures constant brightness of the lights over the discharge rate of different batteries. We could have built this circuitry directly into the Mothbox PCB, but after years of field trials we found that if electronics due fail after many months of use, it’s almost always the voltage regulator that fails (Also we haven’t had any failures since we started using this version that has a big metal heatsink!). So we made the design decision to have this cheap ($15) ubiquitous part be replaceable, so if it does fail, you don’t have to replace the entire board!
Prep the Regulator
The regulators tend to ship with short little wire leads. Trim the ends off. You want about 1cm exposed.
Attach Battery and Regulator to Board
Charge your battery fully before attaching it. It will help troubleshooting later. You don’t want to ever start a new mothbox with an uncharged battery.
Positioning the Battery
Seet the battery with the text facing up and the heatsink on top it like this. It can be useful to put a little piece of tape here on the board to keep the battery from wiggling while you are attaching.
I have also used sticky tack to hold batteries in place, and that works great too! The cable ties will be what actually secures the device, you just want to add something here to add a bit of friction to keep your parts from sliding around while you are assembling.
Position: The battery needs to be oriented so that
- Text on the battery is facing up (so it can be easily inspected)
- The “front” of the battery with the ports is facing the electronics ports on the left side of the PCB
- The holes surrounding the battery are not fully blocked. These holes have a white circle around them
holes along bottom of battery are clear
holes between Pi and Battery are not blocked
holes on the back of the battery are clear:
holes on front are looking ok:
Horizontal Strap
Take a zip tie up through the hole in front of the ports of the battery. It will pass in front of the battery and between the wires coming out the regulator. It will go up and over the regulator and in between the two ports of the battery and split the wires of the regulator.
Your cable tie will probably not be long enough to go over the whole length of the battery, so just attach another one to it and pass it through the hole at the battery’s butt end.
Lock down the far side of the strap with the head of another zip tie.
Middle Strap
Put a cable tie through this middle hole, put it around the battery, and lock it in with another strap on the other side.
Try to have the strap hold down the camera cable which will help keep it out of the way.
Pass it through the other hole on the other side of the board
and then lock it into place:
Regulator Strap
You will pass that cable tie over the regulator and through the hole at the bottom of the board. You might need a second zip tie to extend the length of your tie.
Then lock that tie down with another tie on the outside.
Back Strap
Now we will attach another strap to the rear of the battery to hold it firmly in place. Add a zip tie from these bottom holes at the bottom of the PCB.
Bonus Horizontal Strap
For extra security, we can now pass one more big long strap along the battery.
You can kind of weave it under your other straps to help hold it in place.
Lock it off on the other side, and don’t block any LEDs.
Trim Straps
Tighten up all your straps really well. Then snip off all the dangly parts!
Wires: Connect Regulator to Board
We are going to connect the regulator wires to their slots in the board. (Don’t worry, it’s easy!)
The regulator has 4 wires.
Black is Ground and negative (or the - sign)
Red is regulator INPUT and positive (+ sign)
Yellow is regulator OUTPUT and positive (+ sign)
First we will connect the yellow. Find the socket-box that says “Regulated 12V +) Use your finger to press down the spring levers, and slide the yellow wire into one of the holes marked with a “+”
Repeat for the 2 black wires, but put them into sockets marked with “-“ sign. Note that the black “-“ wires are interchangeable and can go in any “-“ port, but the ports shown here are reccomended.
Finally, put the red wire into the socket with a “+” sign in the “Regulator Input” block. Double check your wiring with this image.
Give a gentle tug to make sure your wires are firmly connected.
Connect Battery Power to Board
Make sure the BATTERY IS OFF. While you are connecting wires and electronics keep the battery OFF! (For batteries and most electronics the “0” symbol means “OFF” and the “1” symbol means “ON”
You now need to get two barrel jack plugs and one 2 wire lever nut connector.
Prep the barrel jack wires by trimming some of the insulation off their ends like this:
OUTPUT PLUG
Next plug the BLACK wire into a “-“ port on the “RAW INPUT” socket-box. Then plug the RED wire into a “+” port of the “Raw INPUT” socket-box.
With the BATTERY STILL OFF, you can plug the plug into the battery’s “OUT” socket.
INPUT PLUG
Note, if you can find them, you can replace the Socket-Levernut-Plug we are building below with just one simple cable like this female-male barrel jack cable. Make sure to find one decently long
With the other barrel jack wire, load its wires into the lever nut: Leave the other side of the lever nut empty (for now). You can plug it into your battery for now, or just set it aside (you will pull it back out of the battery in a later step)
(Optional) Connect the Epaper Display
If you got an epaper display (Highly recommended!), it’s super duper easy to connect it!
Just line the 40 pin socket on the back of the Epaper hat with the pins sticking out the front of the mothbox! Gently press it in, and that’s it. Note the pins won’t go entirely into the hat, there’s supposed to be a little gap there.
Celebrate! you should have a functional Mothbox!
At this point, you should have fully functional Mothbox electronics in your hands!
There is still some assembly left, but if you want to double check your electronics, you can follow the steps below! If you just want to finish the assembly, please just jump straight to the next step
- Make sure your battery is FULLY CHARGED!
- Make sure to flash the firmware onto your SD card
- Then proceed!
If your battery was all the way charged, and you have the Pi image flashed to your SD card in your Pi, then you are set to go!
Press the power button on the battery and let it turn on.
The first time a mothbox starts up with a new SD card, it can take 1-10 minutes for the card to boot up (after that it’s much quicker).
The LED on the pi should flicker green to show that its processing. If your display is connected, you should see the Pi refresh the Epaper with information about your new Mothbox!
Chances are the Mothbox will immediately shut itself down, which is normal because I didn’t tell you to flip the “Active” switch yet, so it should still be in “OFF” mode. If you want to see the mothbox’s lights flicker on, you can flip the “Active” switch and depending on the schedule it will either run fully, or give a quick flash before it goes into “Standby” mode.
You could also flip the “Debug” switch and go into Debug mode if you have an advanced desire to deeply configure your mothbox.
Experimental Dual Battery Setup
We will present another option here for hooking up your mothbox in a slightly different way.
This is an experimental Setup!
We haven’t thoroughly tested this dual battery setup, and it needs a bit more mindfulness when using.
Why a different setup? More airlines and mail are cracking down on how to send Lithium-Ion Batteries that are over 100watt-hours of capacity.
So the idea is that we could get TWO of these batteries that are only 77 watt-hours
This has some advantages:
- easier to transport around the world
- Different battery chemistry (LiFePO4 - safer! longer battery age!)
- redundant!
The disadvantages are:
- It’s kinda weird to hook up two batteries like this
In theory we should be able to connect two batteries like this, but we need to be a little bit careful. Both batteries need to be fully charged before they are connected in parallel to the board. If the batteries are at significantly different levels, they could potentially start trying to charge each other. This is much less risky with LiFePO4, but it won’t be good for the batteries.
Pre-Charge both batteries all the way
Charge up both batteries until they are full.
Put the Two Batteries in Place
Keep some space open in front of the batteries for the regulator later. Put the first battery down with some sticky-tack under to hold it in place a bit. Then add some more sticky tack on top and add the second one.
Add the regulator in front (since it might not fit on the top of the stack. Add some more sticky-tack or tape between them to hold them in place a bit.
Zip the Horizontal Strap
Like the single battery, first put a big single strap across the length of the battery situation.
Finish the other side of the zip on the right side of the board:
Add Middle Vertical Strap
It is useful to use the middle strap to hold the camera cable out of the way.
Add Secondary horizontal strap
Just like before but with the additional holes for more support
Add Diagonal Straps
Add two last straps to try to keep everything in place. You could just go vertically again, but i felt like experimenting and made two criss-crossing diagonal straps.
Connect Your Two Batteries
These batteries come with a socket to dual-wire adapter:
Plug the wires from two of this adapters into the input section of the board. Then, once the ends of those wires are securely in place, you can connect the sockets to the batteries’ plugs.
Lastly you will need to connect your charging ports to two of the ports at the bottom of the box. Remember you need to charge both of these batteries together, so they stay charged up together or discharge together.