PC to ATmega16 Communication with LED Display
Several devices collect data from sensors and other input devices and these data needs to be sent to another devices, like a computer, for further processing. Data communication between two devices is generally done in two ways: parallel and serial. In the parallel communication, data transfer is fast and uses more number of signal lines. This mode is good for short range data transfer. Serial communication on the other hand, uses only one or two data lines to transfer data and is generally used for long distance communication.
There are many ways to interface microcontroller to computer; the easiest way is through serial port of computer. But the current generation PCs and Laptops do not have Serial Ports in them. So, we will use a USB to Serial Cable with computer. A USB to Serial Cable creates a virtual serial port in the computer. The communication between a PC and a microcontroller through serial port can be achieved by using USART protocol in asynchronous mode, MAX232 and a terminal software. USART is a full duplex communication protocol used to transfer data between two device serially, MAX232 is a level converter which converts the CMOS logic levels from microcontroller into RS232 logic levels of computer and vice versa. And the terminal software is used to send data from computer and to see received data in computer.
In this project, we will learn How to interface a PC with AVR ATmega16 microcontroller and How to send data from computer to microcontroller. Here, data from the computer will be sent to ATmega16 microcontroller through the RealTerm terminal software. We will press different keys from the computer keyboard and the RealTerm terminal software will send the ASCII value of the each pressed keys to the microcontroller through the serial port of computer. The microcontroller will receive each data sent by computer and it will display it in the 1×8 LED array. The above process continues forever.
Softwares Required
- AVR Studio 4 Software
- WinAVR 2010 Software
- SinaProg Hex Downloader Software
- USBasp Driver
- RealTerm Terminal Software
- USB to Serial Driver
Hardwares Required
Name | Quantity |
AVR Trainer Board-100 with ATmega16 | 1pc |
AVR USB Programmer | 1pc |
12V, 1A DC SMPS Adaptor | 1pc |
RS-232 Driver Board | 1pc |
USB to Serial Cable-Y-105 | 1pc |
10 to 10 FRC Female to Female Connector | 3pc |
Post a Comment
Thank you.
Knoweldge Centre
Popular Post
Line Follower Robot with ATmega16 using Analog IR Sensor ...
LED Blinking with ATmega16 ...
16X2 Alphanumeric LCD Interfacing with ATmega16 ...
4X4 Keypad Interfacing with ATmega16 and LCD Display ...
HC-05 Bluetooth Module Interfacing with ATmega32 ...
L293D based DC Motor Driver Interfacing with ATmega16 in 5V ...
LM35 Temperature Sensor Interfacing with ATmega32 and LCD Di ...
PC to ATmega16 Communication with LED Display ...
Analog IR Sensor Interfacing with ATmega16 and LED Display ...
00 to 99 Display in Quad 7-Segment Display with ATmega16 ...
Get Socialize With us