The code is been written in c using Avr Gcc.
Download the files for this project HERE
Updated file for supporting 16x4 LCD, just select the lcd_type(16x2 or 16x4) you have
Download the files for this project HERE
This project is just a simple menu with 6 lines and a sub menu with 4 lines
for 16x2 LCD(you can add or remove lines and submenus), the keypad i use is a
common 4x4 keypad. With button A and B you can go up or down at the menu.
I use button # to select the option i want and button * to return. This program
created in C using Avr gcc and the microcontroller is the atmega32.I have created
5 libraries to make the program more clear, one for the lcd one for the adc one
for joystick, one for keypad and one for lcd_menu. There is no schematic so the
basic connections are: Joystick uses the analog portA(the first two pins 0,1)
Keypad uses the port B and the LCD uses Port C.
Important: If you use JTAG programing then change the LCD port and remove
the two lines from main program with the following information
MCUCSR = 0x80;
MCUCSR = 0x80;
![]() | ![]() |

