Antonin Pivard
  • Home
  • About
  • Skills
  • Experiences
  • Posts
  • English
    English Français
  • Dark Theme
    Light Theme Dark Theme System Theme
  • Tags
  • 3D Printing
  • Academic
  • Automation
  • Bash
  • CAD
  • Dev Board
  • Electronics
  • Python
  • Script
Hero Image
Battery Logger Script

Objective This script was designed to log battery information from a system, originally for the Razer Blade 15 Advanced (2020) but it can support almost all laptops or battery powered linux systems. It provides periodic logging of battery parameters such as current, voltage, capacity, charge, temperature, and charging status. The script is flexible, allowing you to specify logging intervals, battery paths, output files, and maximum runtime. Additionally, it includes an optional terminal interface to display live data and log size.

  • Script
  • Bash
Friday, December 6, 2024 | 3 minutes Read
Hero Image
STM32 Template VSCode

It allows to generate a PlatformIO project from STM32CubeMX configuration. It is based on the stm32pio tool. Change board in platformio.ini to your board. Working principle It uses STM32CubeMX to generate a HAL library. Then it uses stm32pio to generate a PlatformIO project from the HAL library. It place generated file in lib/cubemx/src and lib/cubemx/inc directories. Original main.c is renamed driver.c in lib/cubemx/src directory. Just include driver.h in src/main.c and you are ready to go.

  • Script
  • Bash
  • Automation
Monday, April 15, 2024 | 1 minute Read
Navigation
  • About
  • Skills
  • Experiences
Contact me:
  • antoninpvd@gmail.com
  • AntoninPvr
  • Antonin Pivard

Toha Theme Logo Toha
© 2025 Copyright.
Powered by Hugo Logo