Blog2017 ≫ Common earth on the adafruit powerboost worked, up to a point

I had some time to fix my adafruit powerboost experiment, and joining up the earth of the powerboost with that of the raspberry pi just about worked.

Had some soldering to do, and that went well, then had to bend another of the gpio pins through ninety degrees[sup]*[/sup] and did not break it. All good so far!

I forgot for a while that I had put some code in place that said "if we lose mains power, then power down right away", and was trying to use the pi without being connected to the "I have power" output of the adafruit powerboost. So every time I booted up the pi, it powered down again. Got me for about half an hour that one... so I connected everything up and powered up and all good, and then changed the script not to power down but to just log what was going on. And then pulled the mains power, so it was only powered from the battery, and it logged, hooray so all working. But then reinstated the "power down" again, and disconnected everything. And now the raspberry pi won't power up at all, bah.

So all was working as expected for about five minutes, quite pleased. But not pleased any more.

Brief recap of what I'm trying to achieve - power the raspberry pi from a battery in the car. If the ignition is on, power the raspberry pi from the car battery, and stay on. When the ignition goes off, shut down the raspberry pi so as not to drain the car battery. When the ignition is turned on again, turn the pi back on again.

Not quite sure what the pi is going to do in the car, but I do have the sense hat on it right now, so it can log the mad acceleration and g-force I'm generating in the beetle...

[sup][/sup]I didn't *have to bend the gpio pins, but if I want to plug the sense hat in at the same time as having access to the pins that that is not using to connect the powerboost, then I have to do something.

raspberry pi: Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

Paul Clarke's blog - I live in Hythe near Folkestone. Wed + dad to two, I am a full-stack web developr, + I do js / Node, some ruby, other languages ect ect. I like pubbing, parkrun, eating, home automation + other diy jiggery-pokery, history, tree stuff, TV, squirrels, pirates, lego, and TIME TRAVEL.