/smps_driver

Switched-mode power supply driver for ATTinys

Primary LanguageC

SMPS Driver for ATTinys

A switched-mode power supply driver for ATTinyx5 MCUs

Features

  • Adjustable output voltage range
  • Feedback
  • UART info
  • 31kHz PWM (for 8MHz MCUs)

Build and Flash

Get the sources

git clone --recursive https://github.com/VipeOut23/smps_driver
cd smps_driver

NOTE: You might want to create your own device file based on attiny85.conf

Configuring the build

meson setup build --cross-file=attinyXX.conf \
    -Duart=enabled \
    -Duart_tx_pin=PB2 \
    -Dflash_port=/dev/ttyACM0 \
    -Dflash_programmer=stk500v1 \
    -Dflash_baud=19200

You can list the available options withmeson configure

Optionally reconfigure with

meson configure build ...

Compile rom.hex with

cd build
ninja rom.hex

Upload rom.hex with

ninja flash

Example Setup

smps attiny85 symbolic