Giter Site home page Giter Site logo

attiny85-buck-converter's Introduction

ATtiny85 buck converter

As part of my 3rd year at Grenoble INP - Esisar engineering school, I had to build a buck converter. The specifications were as follows:

  • Input: 24V DC voltage
  • Output: DC voltage adjustable between 0 and 12V
  • Max output current: 2A
  • Controlled so that the output voltage is always as close as possible to the selected voltage, whatever the load applied to the output.
  • Constraint: 1 week and use the components available in the school warehouse.

Choice of components

We used an application note from Texas Instrument to select the components for our buck converter. Taking the calculated minimum values and the components available in the warehouse, we have selected the following components:

  • 680µH inductance. However, we had no information on its saturation current.
  • 470µF electrochemical input and output capacitor to limit ESR (ceramic capacitors of a few µF would have been sufficient according to calculations, but we didn't have any).
  • 1N5401 diode with a max average forward rectified current of 3A and a blocking voltage of 100V.
  • 2N6845 P-channel MOSFET with a max continuous drain current of -4A, a max Gate-to-Source voltage of +-20V and a Vgs between -2V and -4V.
  • AVR ATtiny85 powered by a linear regulator and operated by an Arduino program generating a 50 kHz PWM signal for automation control.

Efficiency

With this homemade converter made with local components, we succeeded in achieving a max efficiency of 55%. This efficiency may not be excellent compared with a commercial buck converter (an LM2596 has an efficiency of 90% for an input at 25V and an output at 12V 3A). But with the low choice of components, in particular the absence of power inductors, the circuit works, and it can output 12V at 1A ! (although with some overheating).

If you wanted to improve this circuit, you could choose better components for the power section: low ESR capacitors, a power inductor capable of passing the rated current of the specifications, a Schottky diode... You could also optimize the ATtiny program by implementing sleep functions when the potentiometer is not moved, and even implement a PI or PID controller to make the circuit even more stable.

For more information, the report produced as part of the academic project is available on the repo, in French only.

The circuit

Circuit schematic

References

attiny85-buck-converter's People

Contributors

estylos avatar

Watchers

 avatar

Forkers

noe0770

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.