AVR Inductance / Capacitance meter II

Posted on Apr 29, 2012

If this picture (above) looks a lot like the Pretty Good LC Meter also on this web site, that's because its the same meter, but with some significant improvements. At this point, its a good idea to read the Pretty Good LC Meter page because the rest of this page is based upon the Pretty Good LC Meter, and the Pretty Good LC Meter page explains how to build the meter. I have left the Pretty Good LC Meter page intact because it is a complete project and if one wants to build an LC meter based on the ATTINY2313 or AT90S2313, this is a very good project for that.

AVR Inductance / Capacitance meter II
Click here to download the full size of the above Circuit.

To do all these things, I need more flash memory for program space to perform computation. The flash in the ATTINY2313 of the original design was full with the basic LC meter program, so the first order of business was to get a controller with small footprint that has lots of flash - that turned out to be the ATTINY861 -8K in a 20 pin DIP. Oh, but look: there is no UART in the ATTINY861, so in order to send the display information to the LCD display controller, I would have to bit-bang a UART in C, but if I was going to go to that much work, why not bite the bullet and merge the LCD controller function into the ATTINY861. I had written a controller for the 2X16 LCD in assembler, and it was kind of messy, so I wasn't looking forward to doing it in C -at least not while I am still so new to C. That's was when I remembered Peter Fleury's C libraries. A couple of clicks took me to Peter's web site, http://homepage.hispeed.ch/peterfleury/, and another click took me to the page with his AVR software http://homepage.hispeed.ch/peterfleury/avr-software.html. Looking though the offerings - AVR-GCC Source Examples, AVR-GCC Libraries, an AVR Studio compatible Boot Loader, and a test program for his AVR Starter Kit. A couple of these look interesting to me, but it was the LCD library that I was after, so I downloaded the zip file containing the LCD library and had a look. The HTML documentation was very clear and direct -it seemed...

Leave Comment

characters left:

New Circuits



Popular Circuits

13.8V/40A Stabilized high Power Supply
Sobriety Tester with LM3914
Kapagen Winding Diagrams
Diac Applications
Head phone amplifier circuit
GSM Remote Control 2 IN and 2 OUT Part 2 Schematic
DIY Dual Fan Controller Project
Ultrasonic transmitter circuit 555