After years of looking for a versatile energy administration system for initiatives, Erik Rudec of Croatia-based EDrTech determined to design one. The PMG001 is an ATtiny-based energy administration module for a single-cell LiPo battery. It controls the battery output to the load, displays voltage ranges, measures present consumption, and supplies GPIO to handle energy programmatically. The castellated edges make it easy to combine right into a undertaking.
EDrTech’s PMG001 energy administration module is a constructing block that flexibly displays and manages energy from a single-cell LiPo battery. It might probably monitor 4 voltage rails with excessive precision, handle brownout detection (low battery voltage), measure temperature with precision a sensor, and settle for as much as 2 amp charging at 5 volts, providing you with the flexibleness to adapt it to your particular undertaking wants.
PMG001 module (📷: EDrTech)
The 22.225 by 16.51-millimeter circuit board has 16 castellated pins alongside its lengthy sides and packs a number of extremely purposeful ICs. A Microchip ATtiny1616 microcontroller (MCU) supplies general energy administration. The default firmware communicates with a bunch laptop through UART to show the state of sensors. Alternatively, you may write customized firmware utilizing the Arduino IDE and megaTinyCore board help package deal.
PMG001 has a Li-Ion charging circuit that may provide as much as 2 amps. Nonetheless, it solely helps a 5 volt enter for charging. Like all IOs, the battery connects via the castellated pins.
Instance of textual content output from default firmware (📷: EDrTech)
A four-channel Texas Devices ADS1015 ADC displays 4 voltage rails as much as 3.3 volts with 12-bit precision. EDrTech says the PMG001 can monitor increased voltages with exterior circuits like a voltage divider. Extra ADC channels are additionally accessible on the MCU to watch different voltages.
The MCU controls a discrete MOSFET to manage whether or not the battery connects to PMG001’s BAT_OUT pin. The MCU controls this output MOSFET. It might probably allow the MOSFET with pre-programmed logic or an exterior pushbutton/swap.
A number of monitor ICs add protecting capabilities to the PMG001. For instance, an INA219 digital energy monitor IC measures the battery’s output present with a present sense resistor. A Diodes APX803S supplies brownout detection and safety when the battery’s voltage drops beneath a programmed restrict. This supervisor additionally inhibits energy to the load since holding the MCU in RESET disables the output MOSFET.
Demo Equipment with PMG001 put in (📷: EDrTech)
EDrTech additionally presents a demo package that turns the PMG001 right into a full ATtiny1616 improvement board. The package features a CH340 USB to Serial IC to behave as a UPDI programmer/debugger and to supply serial communication via a USB Kind-C connector. This board has a JST-style connector for including a LiPo battery and two push buttons. One button acts because the ON/OFF button, and the opposite is user-programmable.
The well-written datasheet means that EDrTech might supply it as a product sooner or later. For now, you will discover the open supply schematic (PDF) and PCB (Gerbers) within the PMG001 GitHub repository.