🌈 ESP32-S3 Rainbow: ZX Spectrum Emulator Board! Get it on Crowd Supply →
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

I’ve been accumulating a lot of USB-C devices, it started off with the Mini Hotplate and now I’ve also got a TS80P soldering iron.

USB-C Devices

If you prefer video content, you can see the full video walkthrough here.

Both these devices have a USB-C input and take advantage of the various quick charge and power delivery options to get the most out of their power supplies.

USB-C Power Options

I have got this really nice Galium Nitride 65W USB-C power supply, but it would be nice to be a bit more portable sometimes, particularly with the soldering iron.

Power Supply

Now, I could go out and buy a power bank - that would be the most sensible thing to do - but I’ve had a couple of 10,000mAh lithium cells lying around for a year now. So I thought I might as well buy a charging board to go with them and make a DIY version.

The Parts

The board I’m using states that the batteries need to be able to supply up to 10 amps, so I thought we should probably check that first.

10amps Required

Unfortunately, wiring up the battery to my electronic load didn’t give very promising results - we only got 3 Amps before the batteries cut out. Even with two of the batteries in parallel, we’ll only be able to get 6 Amps in total - nowhere near enough.

My initial suspicion was that this was due to the battery protection boards being a bit too protective. With these types of battery protection boards, it’s actually quite complicated to work out what the actual current limit is - it’s not just a simple resistor. You need to look at the MOSFET and see what its resistance is when it’s turned on. It’s the voltage drop across the MOSFET that is used to detect the over-current condition. The MOSFET on these battery protection boards we have about 0.25mΩ of resistance - which means we can only get about 3amps.

Protection MOSFET

Fortunately, along with the 10 amp requirement, we also have these instructions telling us to remove any battery protection as it’s all built into the board.

Remove Protection

It’s surprisingly easy to do this, we just need to unwrap some of the Kapton tape and then the battery protection board can just be desoldered.

Removing the battery protection board also lets me solder on some much thicker and more flexible wires. The ones that came with the battery were pretty thin and stiff.

Wrapping it all back up with Kapton tape - we have the perfect crime - no one would ever know.

Hacked Battery

With the protection board removed, we can easily get up to 10amps from a single battery. We can even go much higher if we wanted, but 10 is plenty. With the two batteries in parallel, we’d get a whopping 20amps.

10Amps

Connecting the batteries to the board is pretty simple. You can safely wire up lithium cells in parallel provided they have the same capacity - they will just self-balance during charging and discharging.

Wired Up In Parallel

I did make sure before connecting them that I’d discharged them to around the same voltage so there wouldn’t be any big current surges between them.

The control board does have a resistor to set the battery capacity. Fortunately, my board is already configured for 20,000mAh, so there’s nothing for me to do.

Battery Capacity Resistor

It all charges up nicely. The control board is pretty nice and it takes advantage of the various fast charging options to take the input power up to 21W and speed up the charging.

Charging

Hooking it up to my electronic load - the maximum current I can pull by default is limited to 3amps - trying to go above that triggers the board to shut down.

However, I can use my USB power monitor to switch to Huawei’s Super Charge Protocol which gives us 5amps. Not bad at all.

Super Charge

Unfortunately, after the discharge was complete we only measured 12,000mAh - that’s quite a bit lower than I was expecting. But we did have the USB power monitor in the circuit which will have had an impact.

Initial Results - 12,000mAh

I recharged the batteries and tried again.

Unfortunately, this produced some very similar results - just under 14,000mAh over 7 hours.

Second Results - 14,000mAh

I started to wonder if maybe my batteries were not 10,000mAh after all - there is quite a suspicious review on a similar listing on AliExpress for the same batteries.

Dodgy Batteries?

I did what I should have done in the first place. I fully charged the batteries and measured the actual capacity.

And the results for the first battery are: 10099mAh - it’s bang on the money. And it’s a similar result for the second battery: 10039mAh.

Battery Capacity

It turns out the batteries I got from AliExpress are really good - I owe them an apology.

We’ve got 20,000mAh capacity, but we’re only getting 14,000mAh out - does that mean our power bank is only 70% efficient? If true, that would be really rubbish - especially as the datasheet claims up to 96% efficiency on the boost output.

Data Sheet

Well, it turns out that as always things aren’t that simple and I was making a schoolboy error.

When looking at power bank efficiency we should be looking at the energy and not the amp hours.

There’s a great website here that explains this in detail - worth a read if you’ve ever wondered why your power bank doesn’t seem to be as good as it should be.

Our two batteries give us 20Ah, and they have a nominal voltage of 3.7 volts. That gives us 74Wh of stored energy. Eagle-eyed readers will have seen that as well as the mAh value our discharge monitor also gave us the watt-hours - we measured 69 watt-hours of energy on the output - this means our efficiency is actually over 93% - that’s a pretty good result. Our power bank is actually very good!

Energy Out

Now, this shouldn’t really be too surprising. The actual control board is pretty amazing - there’s really nothing on it all the heavy lifting is taken care of by this one chip - the SW6206 - so you would have to really mess things up to make it not work.

SW6206

The IC supports a completely bonkers number of output options - absolutely amazing.

Output Options

The other ICs are just MOSFETs for controlling the outputs and a single-chip battery protection IC - the XB8089A.

We can test the output options using my USB power monitor - these are really handy little devices and you can pick them up for not very much money.

On the USB-C output, we get these options.

USB-C Output Options

And on the USB-A outputs, we have these options.

USB-A Output Options

The only slightly annoying thing with the power bank is that it has the usual auto shut-off function - if not much current is being drawn the power bank turns itself off. You can put it into a constant output mode by holding the button, but then the power delivery options don’t seem to work.

Trying out the TS80P soldering iron - it works ok. On the USB-C output, it only uses 9v which is ok - but it’s not fantastic. But on the USB-A outputs, we get up to 12 volts which is the maximum voltage the TS80P can run at - so it will work nicely.

TS80P

The Mini Hotplate is not as promising - with my Galium Arsenide power supply, it will draw 20V and heats up really quickly. But with my power bank, it will only draw 12 volts - so it heats up quite slowly.

Mini Hotplate

Now of course - this is not that surprising, it matches what we saw with the USB tester and it matches the spec of the control board - it only goes up to 12V on the output.

20v Not Available

On the question of DIY vs Buy - was it worth it?

Including shipping, the cost for the batteries was around 17 pounds, and the charge control board was 4-5 pounds. So our total cost was around £22.

This comes out slightly cheaper than some of the commercial versions on Amazon. So I think it’s a bit of a toss-up - it’s a fun project, but you would probably be better off just buying one.

There are 65W power banks available that would be able to run the mini hotplate at full wack - they are slightly more expensive - but maybe an extra 10-20 pounds or so would be worth it.

There is a nice 100W control board on AliExpress that I think is worth investigating - it’s a bit more expensive, but it’s a lot more powerful. The only downside is that it only has one USB-C output.

You can get the components I used from these links:

Related Posts

No Power? No Problem! A Wireless Pi Doom Machine - In my latest wireless charging experiments, I got my hands on a set of wireless charging PCBs and dove into testing different voltage inputs and their efficiency levels. It was interesting to realise that the 5V input managed to provide a decent efficiency of 73%, while 12V input struggled and heated the receiver board excessively. With the perks and limits of this setup explored, I took a whirl at creating a wireless Pi Doom machine. It worked like a charm! However, I quickly noticed the need to split charging and boost board into two different modules - a project to look forward to. Half the fun is getting there! Check out the video [here](https://youtu.be/glCIuOoFm7U) for more detail on the project.
Picking up Free Lithium Cells Off the Street and Making them Safe for Use - This blog post reveals how you can salvage lithium cells from the many discarded, disposable vape devices that get littered in our towns and cities. With a pair of pliers and some bravery, I managed to rescue some decent batteries, which still had a good amount of power in them. However, with no in-built protection in these cells, I also demonstrated the importance of adding a battery protection board to ensure they are safe for use in various projects. Conclusively, through rummaging in the trash, I not only acquired useful components for my projects but also took a step towards making the planet a cleaner place.
More Updates on the ZX Spectrum Board - I'm gearing up for production with some updates to our prototype, including switching to a 4-layer board to improve EMI, and refining USB power filtering. Check out the video for a deep dive into our battery charger and an exciting expansion port for potential HDMI output. The main goal now is to get our boards ready for manufacturing and shipping through Crowd Supply!
Minimalist Microcontroller: Building a Bare-Bones Dev Board - In a thrilling DIY endeavour, I attempted to build the most minimalist ESP32 dev board possible. Diving deep into the schematic of the ESP32 S3 WROOM module, I chopped out the non-essentials and whittled our needs down to bare bones. The experiment saw me juggling USB data lines and voltage regulators, waving goodbye to an array of capacitors and connectors and boldly embracing the simplicity of direct connections. Despite a few hitches, the miniature Frankenboard came alive, proving that sometimes less is more...at least in the world of microcontrollers.
75% Less Power! - Saving the Planet With Motion Sensing and Image Processing - In this blog, I was dealing with a conundrum on how to reduce the power consumption of my cool magic mirror that was always on, always drawing power. I considered options such as a PIR (Passive Infra Red) sensor and a doppler radar microwave motion sensor. The latter worked brilliantly except for a few too many false positives. Things got technologically fancy when I introduced a camera for motion detection and face recognition, even recognizing who is in front of the mirror! However, while it was fascinating, it upped the power consumption which was against our original goal. After combining everything into an impressive package and even forming simple state machine, I found that the sophisticated system needed more work. Conditions like lighting and screen turn-on time presented challenges. However, it did make a significant difference - nearly running at 25% of the original power consumption. Definitely a promising and interesting project worth looking into further!

Related Videos

DIY Power Bank: 20,000mAh? - Discover the efficiency of a DIY 20,000mAh USB-C power bank compared to commercial versions, as a control board and lithium batteries charge up an array of devices, including a soldering iron and mini-hotplate, while also considering the project's overall cost.
Train Surgery - I take a fun but unbelievably loud battery train and give it some train surgery: measure the 4xAA pack (~6 V), gut the coal car, shoehorn in an 18650 with a charge/protect/boost board set to about 5.5 V, wire it up, sanity-check polarity, and get the wheels turning. Then I tame the racket by putting a potentiometer inline with the speaker, chop some plastic so the knob pokes out, and hot-glue it all in place. Result: rechargeable power, adjustable volume, same charm—minus the living-room headache. (Quick shoutout to PCBWay for the boards.)
World’s Smallest USB-C Li-Ion Charger?! - I found some super compact USB-C lithium battery chargers on AliExpress, and they're tiny! The PCB is just 10mm by 6mm, but it packs a punch with a linear lithium-ion battery charger chip, LP 4054. It's equipped with indicator LEDs for charging status and includes essential resistors and capacitors. Be cautious, though, as it can get warm during use. I've decided to recreate this neat design in Keycad, showing you each step, paying tribute to our Patreons and PCB Way along the way. Let's see how the design translates and if it passes all checks!
Simple Multi USB-C Power Module - With my growing list of USB-C powered devices and just one cable, I found myself underpowered on my bench. My solution? Scouring the depths of AliExpress for USB-C power delivery, QC2, and QC3 step-down converters. After initially purchasing individual boards, I struck gold with an ultra-convenient 4-in-one board. Paired with a Meanwell power supply, I enjoyed pushing my new setup to its limits with the MiniWare electronic load tester. Although managing to pull a decent 65W, I'm dreaming up a 3D printed enclosure and eyeing up MiniWare's display modules for future improvements. I reckon, while I'm battling delayed PCBs and dodgy components, it's certainly a fun way to help power up my bench!
ESP32 Touch Spectrum - Battery and Expansion port test. - It's time for a bit more testing of the boards from PCB Way, and I must say, these boards have come out amazingly well. Check out PCB Way – there's a link in the description! Today, we're focusing on testing the battery charging and the expansion port. The battery charging circuit seems successful, and even when playing music, everything is running efficiently. I've looked into some optimizations for the speaker side, such as adding more decoupling capacitors. We also tested the expansion port, successfully running an emulator on the Pico that drives the display via the expansion port. Excitingly, I wired up an HDMI breakout board and now we have a big screen! This is still experimental, but it's looking promising. Next steps include more focus on EMI and EMC as we prepare for production. Stay tuned for more updates!
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts