Skip to content

Working code for ESP32 3-Channel Power Logger Hackaday Project

Notifications You must be signed in to change notification settings

ethanajohnston/PowerLoggerPCB_Hackaday

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerLoggerPCB_Hackaday

Working code for ESP32 3-Channel Power Logger Hackaday Project

This is much better code written for the power logger here: https://hackaday.io/project/187504-esp32-3-channel-power-logger

The repo is a PlatformIO project. I fixed most issues with the source code and also some in the INA3221 library.

The board uses the ESP32C3. More info in the platformio.ini.

Changes:

  • Disabled Wifi and Time Server. (This is usually not needed but can easily be uncommented back in. By default was programmed to wait until wifi is connected before doing anything else which I found annoying.)
  • Better debouncing and button responsiveness.
  • Very fast loading time.
  • Changed INA3221 lib and source code functions to provide info in the advertised units.
  • I have a 50mOhm shunt on Ch1, 33.33mOhm on Ch2 and 100mOhm shunt on ch3. I will likely change all channels to 33.33mOhm so it can measure up to 4.9A. With the default 100Omhm shunt, the max measurable current per channel is 1.628A.
  • Fixed bugs with text not being cleared when changing between some screens.

Changing Shunt Resistor Value:

Notes:

  • Probably don't put more than 5A through the traces that connect to the shunt.
  • Make sure your shunt resistor is rated for the MAX amount of dissipated power.

About

Working code for ESP32 3-Channel Power Logger Hackaday Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages