https://github.com/charkster/ina260_logfile_micropython
INA260 logging to screen and logfile, implemented in MicroPython (using Adafruit QT PY RP2040)
https://github.com/charkster/ina260_logfile_micropython
ina260 logging micropython
Last synced: about 1 month ago
JSON representation
INA260 logging to screen and logfile, implemented in MicroPython (using Adafruit QT PY RP2040)
- Host: GitHub
- URL: https://github.com/charkster/ina260_logfile_micropython
- Owner: charkster
- License: mit
- Created: 2024-04-12T00:06:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T00:44:41.000Z (about 2 years ago)
- Last Synced: 2025-03-10T08:48:30.409Z (over 1 year ago)
- Topics: ina260, logging, micropython
- Language: Python
- Homepage:
- Size: 346 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ina260_logfile_micropython

**INA260 logging to screen and logfile**, implemented in **MicroPython** (using Adafruit QT PY RP2040).
This is a re-write on my [Python script](https://github.com/charkster/INA260) which runs on full-size Raspberry Pi. It is cheaper and boots much faster.
I open this script in [Thonny](https://thonny.org/) and have it run in the REPL. Current and voltage are sampled once per second and displayed in REPL. A CSV logfile is also created on the MCU, which can be accessed using Thonny.
A QT PY RP2040 was used as it has a 2Mbyte flash to store the CSV logfile.
**Use Ctrl-C to stop the script**, which causes the logfile to be closed.