Sub 100 Wh portable power station
Hardware- 33 Devlogs
- 164 Total hours
A small device that gives you AC output, charger, etc. while being flight friendly by being just under 100 Wh ( at 99.9 Wh)
A small device that gives you AC output, charger, etc. while being flight friendly by being just under 100 Wh ( at 99.9 Wh)
Birthday devlog today🎉!
Did a ton more of CAD work, including modification of slots and sketches, and boy was it painful!. I had to re-draw each sketch on top and repeat this once again since I need one for negative extrusion and one for filling the already existing slots. All caused by my poor judgement of the dimensions of the other parts
But here I am! Also, had tweaked the code a little, did some power wire replacements and stuff
Working on the mainboard mount.
The mainboard is planned to be mounted on top of the battery pack. Not sure how I’m gonna figure out how to make mounting holes on the bottom panel. Its 12:20 AM rn, need to go to bed,,,
Probably a really messy workbench right now.
Anyways, once again, did quite a bit of working, especially in CAD and 3D printing.
Finally, I’ve hit 100% of the program storage space in my Arduino Nano when uploading my code. Need to optimize the code.
Had to snap off the screw mounts and the bottom section of the button mount cover for it to fit, fixed it in the later version though.
Also, spent 5 full minutes troubleshooting, opening the mainboard out of its case only to find out that nothing was connected (power button, navigation buttons, etc.). Probably, late night fatigue kicking in,,
Printed out the front panel, got a ton of work to do on the other panels.
Thinking of whether or not to add a fuse in series to the direct source connector..
I feel like fitting all of these components into their designated space might be a very tedious task.
Its just a pain to measure and ensure everything is in its own designated region and every part seats in properly, and also, found a mini bug, which is to be fixed in the code,,
Printed and assembled the chargers part
And also, I’m in the middle of designing the right side panel, gonna take up a ton of time as I’m using hit and trial method
Completed the modelling part of the inverter case, charger panel and probably also the front panel.
Did some minor bug tweaks in the code
Also finished cutting the copper sheet for the inverter module
TERRIBLE NEWS: I lost 3D models of the main front panel, the inverter case AND the chargers panel to a power outage. I know I should’ve saved it but I either complete it and save it or just have them lying in my RAM overnight till it finishes and that power outages are rare for me, but here I am!
Completed the bench power supply part, printed the front side in orange and screwed it on the gray bench power supply mount since I’m planning to use orange on gray as opposed to gray on orange.
Also added an extra master XT60 connector for direct battery access connections.
Officially over the 100h mark! 🎉
Designed the front plate of the chargers, designed a stencil to drill through the copper sheet that acts as a small ‘heatsoak’, soldered some cables and much more
Did quite a bit of various work today, but the one that made me glad is the successfull printing of the bench power supply part after 5 devastating failed attempts.
Designed the case in Fusion 360
Worked on the header connections
Worked on the bench power supply part
Completed the case for the inverter part, switched to digital operation of the fan instead of analog due to never ending problems.
Completed the addition fan and LED interface to the mainboard. I had to add a separate boost converter to the setup.
Still the addition of fan causes fluctuation in time to empty readings, need to fix them in code,,
Finally completed the haptics part, there are still some areas that do not work like intended, but I cannot really do much about it.
Designed as well as printed cases for the main board and batteries for enhanced safety.
My streak has not extended for today despite 3h of work today.,
Worked on the haptics for quite a while, still need to add haptic feedback/notification for other messages displayed on the screen, though it is SOO BUGGY! I had to work on it for 3 full days, yet I still feel like the haptic patterns were inconsistent, gotta do more fixing tomorrow, or probably I might focus into something else for a while.
Messed up and messed around using millis(), need more time to debug and fix it (I’m not an expert when it comes to dealing with millis(), open to suggestions), I don’t want to use delay() since it interferes with my mAh measurement in the code.
Did a weird contraption of a capacitor, polarity protector diode on a perf board in order to act as a power distribution board since the boost converter had only 1 screw terminal..
I have planned to integrate haptics to the power station too, though traditional ERMs felt too cheap and unreliable, therefore I made something called the “Haptic block”, an LRA (Linear Resonance Actuator)-based haptic actuator, similar to the ones found in flagship smartphones (I’m looking at you, iPhone 6S!). Used a 12V, 6N solenoid along with a MOSFET, resistor and a flyback diode for switching the solenoid with the Arduino board.
It works great, started with the coding process, the timings have to be perfect, else, it feels like metal and plastic colliding (though that’s exactly what’s happening XD).
With perfect timing though, it enhances the user experience by a lot!
Took quite a while to try various methods, debug, fix, etc. the MPPT charging. Finally, a transistor pulling the floating 100mV to ground along with an RC filter seems to work, works for now, though not the best way of doing this.
(Literally screamed in joy when it finally worked lol :D)
A week’s worth of devlog, probably I’m gonna switch over to weekly devlogs cuz I’m a bit lazy. Anyways, once again, a ton of changes:
A lot of changes and events.
Spent almost an hour modifying/testing the charging lightning icon on top of the battery.
Fixed the mAh counter
Fixed the time to empty counter
Edited the power value such that only positive values are shown
Killed the boost converter and charger modules, still unsure what caused it but I suspect the boost converter overheating and then finally, a voltage spike killed the charger modules too.
Any ideas/opinions are very helpful..
After 800 lines of code, I finally hit the 2kB RAM ceiling. Did some optimization work on the code. Had to take a backup of the flawless code, try new stuff, in split screen mode between 2 IDE screens
Completed the chargers part (mainly fixed the power measurement bugs).
In addition to that, did the temperature controlled fan part for today, so far works perfectly.
Finally completed the soft-latching power control part in the circuit.
2 Arduino nano(s) were k1lled during the process :*(.
Used an N channel MOSFET at first in order to control power going to the Arduino, failed at it, switched to a relay (big mistake), driven by a transistor, finally got out, bought a P channel MOSFET, still driven by an NPN transistor, and in the end, it works flawlessly, gave me immense happiness watching it work flawlessly :D
Did more soldering work, not the prettiest, has a ton of improvements to be made both on the hardware as well as the software side.
So far, the charger and the inverter switching part works, need to add a transistor in between the system and the battery in order to turn it off completely when not in use..
Open to suggestions and improvements..
Burnt some midnight oil to disassemble the breadboard prototype and start with the actual circuitry, soldered a few components so far, yet there’s a lot more to do so, probably gonna take a month to complete -_-.
Worked on the settings screen for a while. Added maximum power limit as well as basic RGB LED colour setting along with EEPROM memory to store the parameters
Completed drawing the sketch of the portable power station (sorry for the messy work, its the first sketch). Please let me know of any suggestions/improvements..
Did a lot of tidying and reposition work as well as addition of various controls toggles on and offs.
Added 2 pages: Controls and Info, settings page is still pending..
Replaced the 20 A BMS with a 40 A one, in order to achieve the full 27 A capability
Started with the framework of the icons for turning the outputs on or off.
Re-positioned the screen page indicator, fixed a bug that that was present since the start
(fun fact: I thought that it was not possible to fix that till yesterday till I remembered “break” statement exists thanks to a dream I had last night using break statement to fix the same)
Added some adjustments, possibly also a framework of multiple screens.
Completed the temperature reading, temperature warning, as well as temperature controlled fan pwm signal.
Bugs:
Temperature and PWM value fluctuate greatly when connecting an LED as a test for PWM regulation
Bare-bone version of the code is ready, works without any major bugs..
Next step: Continue coding of the remaining features and functions
(Tested and verified on my trusty breadboard setup)