NavigationUser loginPopular contentRecent blog posts |
AVR Tiny13 Voltmeter/AmmeterI'm currently enrolled in a materials fabrication course where our final project is to build an enclosure for a power supply. The schematic and design of the power supply are provided by the instructor. These things use big stupid 0-15v analog gauges. I thought I could design a better interface using a microcontroller and an HD44780 LCD, so here it is. Special thanks to Micah Carrick for the lcd library and Cory Meyer for general advice. The most difficult part of this project was squeezing it all into the 1024 bytes available on the tiny13 microcontroller. I had to add two functions to the lcd.c library; lcd_puts() and lcd_puts_P(). I needed to slim the code down a little bit after I made some changes to the itoa library and removing lcd_puts_P() was the only option. I wanted the display to read like this- Voltage: 20.00 V but it just didn't fit. If anyone has any recommendations on improving the code, please email me (santacruzbob * gmail) or post a comment. I'll add a finished schematic, board layout, and pictures when I've completed the project. The code will need to be modified depending on value of shunt resistor (R11). The two voltage divider networks may also need adjustment if your zener diodes aren't avalanching.
|