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
STL to GLB

This is a simple Python script that converts an STL file to a GLB file. It uses trimesh library to read and export the files. This script support batch processing, it keeps the original file name and directory structure. Installation You need to have Python 3 installed in your system. Its recommended to use a virtual environment to install the required libraries. python -m venv venv source venv/bin/activate You can install the required libraries by running:

  • Script
  • Python
  • Automation
Thursday, February 6, 2025 | 3 minutes Read
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
CSV to WAV

This is a simple python script that converts a CSV file to a WAV file. Useful for listening to data produced by OpenHantek6022. Usage For instance just run python python csv2wav.py -i input.csv -o output.wav -t 0 -v 1. Options -i or --input : input CSV file default is record.csv -o or --output : output WAV file default is record.wav -t or --time-field : time column index in CSV file default is 0 -v or --value-field : value column index in CSV file default is 1 Csv file can be generated by OpenHantek6022 by selecting the “Export CSV” option in the “Export” menu.

  • Script
  • Python
  • Automation
Monday, July 15, 2024 | 1 minute 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