ATtiny814 Power Analyzer
1. Overview
Programmable electronic constant current dummy load with two high side voltage and current sensors for an automatic analysis of power supplys, DC/DC converters, voltage regulators, batteries, chargers, power consumers and others. The device can be controlled via USB serial interface using a serial monitor or the provided python skripts. Data can be exported to spread sheet programs or directly be analyzed by the Python skript.
2. Working Principle
The ATtiny814 controls the electronic dummy load with its internal digital to analog converter (DAC). All of its 5 internal reference voltages are being used in order to get the maximum accuracy and resolution of the DAC. The DAC is connected to an OpAmp which acts as a unity gain amplifier controlling the resistance of the MOSFET. Voltage and current are measured via a high side 8 mOhm shunt resistor connected to an INA219 with a resolution of 4mV/1mA. A second INA219 is connected to another 8 mOhm shunt resistor between the PWR-IN and PWR-OUT terminal. The Power Analyzer is connected via USB to a PC or a RaspberryPi. Commands to the Analyzer can be sent via a serial monitor or by the GUI-based Python skript. The Analyzer has different built-in automatic test algorithms. The collected data is sent back via the serial interface/USB to the PC/RaspberryPi. The ATtiny814 constantly measures power and temperature of the heatsink. It controls the fan and cuts off the load when the temperature gets too hot.
3. Test Algorithms
- Using a serial monitor: Test algorithms can be started by sending the corresponding command via a serial monitor. The collected data will be displayed in the serial monitor and can be exported to a spread sheet program for further analysis.
- Using the GUI-based python application: This is the easy way. Everything should be self-explanatory. All following example pictures are created by this application.
- Command: "l maxloadcurrent[mA: 17..5000] minloadvoltage[mV: 0..26000]"
- Example: "l 2500 4200"
- The Power Analyzer continuously increases the load from 17 mA up to maxloadcurrent. It stops automatically if the voltage drops below minloadvoltage. It continuously transmits the measured values via the serial interface in the format: current[mA] voltage[mV] power[mW] (seperated by the SEPERATOR string).
- Command: "g maxloadcurrent[mA: 17..5000]"
- Example: "g 3000"
- The Power Analyzer changes rapidly the load between 17 mA and maxloadcurrent. It continuously transmits the measured values via the serial interface in the format: time[ms] current[mA] voltage[mV] (seperated by the SEPERATOR string).
- Command: "e maxloadcurrent[mA: 17..5000] minloadvoltage[mV: 0..26000]"
- Example: "e 4000 2500"
- The Power Analyzer continuously increases the load from 17 mA up to maxloadcurrent. It stops automatically if the voltage at TEST-IN drops below minloadvoltage. It continuously transmits the measured values via the serial interface in the format: current[mA] voltage[mV] efficiency[% * 10] (seperated by the SEPERATOR string).
- Command: "b maxloadcurrent[mA: 17..5000] minloadvoltage[mV: 0..26000]"
- Example: "l 1000 2700"
- The Power Analyzer sets a constant current load of maxloadcurrent. If the voltage drops below minloadvoltage it constantly decreases the load to maintain minloadvoltage. It stops automatically if the load current drops to 0mA. It continuously transmits the measured values via the serial interface in the format: time[s] current[mA] voltage[mV] capacity[mAh] (seperated by the SEPERATOR string).
- Command: "m interval[ms: 2..65535] duration[s: 1..65535]"
- Example: "m 18000 18000"
- The Power Analyzer measures voltage, current and power delivered to the test device at every interval for a total of duration. It continuously transmits the measured values via the serial interface in the format: time[ms] current[mA] voltage[mV] (seperated by the SEPERATOR string).
4. Notes
- Use a good heatsink with a 5V fan for the MOSFET! Attach a 10K 3950B NTC thermistor to the heatsink close to the MOSFET!
- Be careful with high power loads! Make some tests to figure out what can be achieved with your cooling solution!
- Due to the limitations of the cheap OpAmp the minimum load current is around 17mA. You can choose a better OpAmp if you like (must have same pinout, must be rail-to-rail and unity gain stable), but for most cases this is not neccessary.
- The maximum load current is 5A, however for small voltages it might be less.
- The maximum PWR-IN/PWR-OUT current is 8A.
- Do not exceed the maximum voltage of 26V on all connectors !
- In order to make the design much simpler all connectors including USB share a common ground. Keep this in mind when making your test setup in order to avoid ground loops or shorts. Using a USB isolator between the Analyzer and your PC is not a bad idea!
- · You need a UPDI programmer for uploading the firmware. You can find (https://www.pcbway.com/project/shareproject/ATmega_UPDI_Programmer_SMD.html) or you can use an Arduino as a jtag2updi. The software is still in development. There might be some minor bugs. New functions and test algorithms will be added in the future.
ATtiny814 Power Analyzer
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(4)
- Engineer Feb 05,2022
- Engineer Jul 27,2020
- Engineer Jul 20,2020
- Konstantin Apr 28,2020
- 2 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
-
10design
-
10usability
-
10creativity
-
10content
-
10design
-
10usability
-
10creativity
-
10content
More by Oleg Oleg
- Development Board STM32F103RET6 Development Board Series STM32F103RET6Resources on the board3.3/5.0/12V power input/output pinReset ...
- DAPLINK and STM32 minimum system combination DAPLINK and STM32 minimum system combination, one data cable can complete the download and debugging...
- USB to RS232 This is a program verification board. The main verification content is the function of USB to RS232 ...
- ESP Air Burner The ESP downloader with Air Burnner interface uses probes instead of DuPont cables.
- Docking station USB3.1 Using GL3520 USB 3.1 HUB chip,Supports super high speed, high speed and full speed USB connection, f...
- RX5808 open source receiver 5.8g open source receiver, can receive 5.8g signal, AV video signal output. Rx5808 dual-reception fu...
- 5.8G image transmission module It can be used for AV signal audio and video wireless transmission; baby monitor; wireless camera se...
- GRBL-ESP32 esp32s 3d is suitable for GRBL and marlin software
- STM32 Sensor Node A Small STM32F103C8T6 board with all functional pins exposed. Similar to the BluePill Board except:N...
- 2.8 inch TFT touch screen The module uses a 2.8-inch TFT color LCD screen. The module is compatible with punctual atomic 2.8TF...
- LED dot matrix clock LED dot matrix electronic clock based on 51 single chip microcomputer.Based on STC15W4K series ultra...
- STM32F411Cx 401Cx minimum system + J-LINK debugger The STM32F411 / 401 microcontroller belongs to the STM32 Dynamic Efficiency series. These devices ar...
- Small passive DC constant current electronic load IntroductionA small passive DC adjustable constant current (CC) electronic load with temperature-con...
- Small jlinkV9 downloader V1.0 Adopt typec interface, stm32f205 master control, lead SWD, SWO, support virtual serial port, resista...
- IP2325 dual string lithium battery charging module Miniature charger for dual lithium batteries.Since the IP2325 does not have a charge balancing funct...
- Electronic switch The operating voltage is within 30V. Depends on the PMOS voltage.
- Power supply module NAE20S08 Is based on SY8288A / JW5068A series power supply ic Volume: 10x10x6mm Input range: 4-23vin Output: ...
- Solder paste dispenser A portable miniature intelligent electric SMT solder paste dispensing pen supports quantitative extr...
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
125 0 0 -
DIY Laser Power Meter with Arduino
182 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
165 0 2 -