ZAdamMac / PETI

A project to brute-force-learn embedded product design techniques by creating a 90s-style virtual pet that runs on the MSP430FR5994 microcontroller.
GNU General Public License v3.0
5 stars 3 forks source link

[BUG] Dev Kit Power Management Insufficient #20

Closed ZAdamMac closed 1 year ago

ZAdamMac commented 2 years ago

There is a design flaw in the Revision B Rear Expansion Board (REB); alternatively in the dev kit overall, depending on the desired resolution.

The REB presupposes that it will always receive "sufficient" power from the two AA batteries held in series. This is nominally true for the purposes of running the MSP430fr5994 and most of the accessory components. However, the SHARP LCD requires a minimum input voltage of 3V.

This power input voltage is driven from the GPIO pins on the MSP430. The 430 has power management, but no voltage regulation, and digital out is always limited to Vcc, which is the voltage recieved from the input pin, ie the voltage of the battery pack.

When driving this with alkaline or carbon batteries, with a nominal voltage of 1.5V per cell, this is fine and we get enough voltage to drive the display. This was how the power circuit was validated before the boards were milled.

However, when driving with NiMH rechargeable batteries, each cell has a nominal voltage of 1.2 V and even in series we fall ~0.5V below the threshold to drive the display.

For the purposes of the Dev Kit this is not necessarily an issue; in fact, the flatened curve makes it faster to test things like battery degredation and handling low battery conditions. However, for the final toy design and maybe even as an experiment with the dev kit, it would be nice to fix this problem, by either:

A decision on how to fix this problem is due by February 28, 2022

ZAdamMac commented 2 years ago

To preserve it for the record, the resolution will be option 1: full regulation of the voltage before supplying it to the 3.3v Rail.

ZAdamMac commented 2 years ago

I want this to be resolved before completing the 0.1.0 firmware release.

I also think that this will give us the ability to indicate a low battery condition through the regulator IC.

ZAdamMac commented 1 year ago

This was validated in breadboard today using the TPS60204. My local branch of the repo has an eeschema file with the necessary changes to the breadboard schematic, but I don't have time today for footprint golf so I won't finish and upload the design for the new PCB until later.

Until then this issue remains open.

ZAdamMac commented 1 year ago

The new eeschema and pcbnew files are finished, and I've rendered new gerbers for the new boards. However, I'd still like to order them in and actually assemble one to validate the new circuit before I upload the files to the repo and close this issue out.

ZAdamMac commented 1 year ago

This was tested and corrected ages ago; the new hardware files are more or less sufficient.

However, hardware data is going to be broken out into another repo soon so I'm just closing this outright at this point.