Select to expand quote
decrepit said..
This is mind boggling!
Now my small battery and otterbox have arrived, ready for moving tests, as soon as either GPS is detected and a new file started the Pi crashes and turns off.
I really get the feeling I'm not meant to be doing this.
Don't be disheartened. Its a learning experience. Sometimes though you can find things that just don't want to work together, even when they should. I am staying away from Rpi solutions as it takes more than my knowledge to understand how it all works. At least with the Arduino stuff its pretty basic.
What are you guys using for powersupplies for the Raspberry Pi?
I have ended up with a combination of modules and a lithium ion battery. You can get generic Li-Ion charging modules that also have a low-voltage cutout, but they deliver the battery voltage through to the load, which can be 4.2v or down to 2.5v, so normally not useable to power an Arduino.
So, I have then coupled that with a '5v UPS' that boosts the voltage back to 5v to power the Arduino... which runs at 3.3v anyway.
I have some buck/boost 3.3v modules on order from ebay, as it needs to be a boost circuit when battery voltage is low, and a buck circuit when battery voltage is high. 3.3v is what I really need as the Arduinos I am using have onboard regulators to 3.3v anyway, so its more efficient to just deliver the correct voltage instead.
The benefit of these modules is that they are dirt cheap and can provide good functionality. The disadvantage of these types of modules is that they don't tend to come with much in the way of instructions and in some cases no description of what each terminal does. So, for the charging circuit I had to run it up with a variable power supply instead of the battery connection, just to find out if it has a low voltage cutout, which is essential for not killing Li-Ion batteries. It turns out they do (I have two different modules of essentially the same circuit), and the cut-out is 2.5v.
So, I then had to run the 5V UPS module with the same power supply to see what it does, and it turns out it is able to provide 5v all the way down to a 2.1v input.
Without trying this, I wasn't even sure the charging modules had low voltage cutout and if the boost module could cope with the low voltage. The good news is that I can set the Arduino to measure the supply voltage and effectively shut itself down at 3.3v or so, which is essentially the limit of what you really should draw from the battery, and if it keeps getting lower the circuit cuts it out before it can damage the battery.
I guess it has some benefits over using a power-bank type setup, in that in theory I have more power available and I can use pretty much any lithium ion batteries I can find.