AVR ATmega Projects

4×4 keypad example using AVR-GCC C language

This is as simple routine how to read 4×4 keypad keys using AVR-GCC language. The keypad is connected to AVR microcontroller 8 bit port. In this example it is B port. You can change ports depending on your needs – this is only an example ant it is not the only way to this. Howt […]

4×4 keypad example using AVR-GCC C language Read More »

Servo motor control using Atmega8 microcontroller

Servo motors are so called “closed feedback” systems. This means that motor comes with control circuit, which senses if motor mechanism is in desired location and if not it continuously corrects an error until motor reaches proper point. Servo motors are widely used in robotics, remote controlled planes, vehicles. So they come in many shapes

Servo motor control using Atmega8 microcontroller Read More »

Simplified AVR LCD routines using ATmega8 microcontroller

Controlling numeric LCD isn’t so tricky as it may look like. O course you can find numbers of LCD libraries. One of more universal you can find in AVRLIB library for WinAVR AVR GCC compiler. Main disadvantage of such universal libraries that they compile all functions even if you don’t want them. This way huge

Simplified AVR LCD routines using ATmega8 microcontroller Read More »

Measuring motor speed and display result on LCD using ATmega8 microcontroller

For measuring motos speed there can Optical interrupter used like H21A1. This is a device where IR LED and photo-transistor is coupled in to plastic housing. The gap between then allows interrupting signal with opaque material and this way switching the output from ON to OFF. This device can be connected to Microcontrollers ICP pin

Measuring motor speed and display result on LCD using ATmega8 microcontroller Read More »

AVR-GCC 4 bit and 8 bit LCD library using ATmega8 microcontroller

Standard alphanumeric LCD display controlled by 74HC164 LCD controller can accept 8 bit data bytes or 4 bit nibbles. Earlier my 4 bit and 8 bit LCD libraries were split in separate files as they were used in different projects. Now they are merged in to one library where simple logic is implemented to select

AVR-GCC 4 bit and 8 bit LCD library using ATmega8 microcontroller Read More »

Output number when button is pressed using Atmega16 microcontroller

This is simple demo program of reading button state, lighting LEDs, sending information via USART. 8 buttons are connected to Atmega16 port A, 8 LEDs to port B via current limiting resistors. While none of buttons arent pressed there is running light on LEDs performed, but when any of buttons is pressed then LEDs display

Output number when button is pressed using Atmega16 microcontroller Read More »

Simple signal drawing on graphical LCD routines using Atmega8 microcontroller

During spare time I have been playing with graphical LCD. This time I decided to display simple signals that are stored in microcontroller memory. The idea was to read signal values from look-up table and display waveform on Graphical LCD. To make things more interesting I divided LCD screen in to smaller four screens so

Simple signal drawing on graphical LCD routines using Atmega8 microcontroller Read More »

Programming AVR ADC module with WinAVR using Atmega8 microcontroller

Most of AVR microcontrollers have Analog to Digital Converter (ADC) integrated in to chip. Such solution makes embedded designers life much easier when creating projects and programming them. With no need external ADC PCB takes less space, easier to create programs – it saves time and money. As an example lets take Atmega8 microcontroller which

Programming AVR ADC module with WinAVR using Atmega8 microcontroller Read More »

Running TX433 and RX433 RF modules with AVR microcontrollers using Atmega8

Sometimes in embedded design you may want to go wireless. Might be you will want to log various readings of remotely placed sensors, or simply build a remote control for robot or car alarm system. Radio communications between two AVR microcontrollers can be easy when specialized modules are used. Lets try to run very well

Running TX433 and RX433 RF modules with AVR microcontrollers using Atmega8 Read More »

Scroll to Top