ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

ATmega32 to PC Communication with LED Display

13225
1
Mark as Favourite

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 ATmega32 AVR microcontroller and How to send data from microcontroller to computer. Here, the ATmega32 microcontroller will send the string “ABLab Solutions www.ablab.in” character by character to the computer with a delay of 500 milli second between each character. After sending the above string, the microcontroller will send the carriage return to computer. The carriage return is sent to display next string or character in new line and the ASCII value of carriage return is 0X0D. The ATmega32 microcontroller will also display each character of the string “ABLab Solutions www.ablab.in” in the 1×8 LED array. The above process continues forever.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega32 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

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for ATmega32 to PC Communication with LED Display is as follows

  • Steps - 1 ( 0f 9 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 9 )

    Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 9 )

    Connect the RS-232 Driver header of RS-232 Driver with PortD header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 4 ( 0f 9 )

    Connect the DB-9 Connector of USB to Serial Cable to the DB-9 Connector of RS-232 Driver and USB Connector of USB to Serial Cable to PC/Laptop USB port.

  • Steps - 5 ( 0f 9 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 6 ( 0f 9 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

  • Steps - 7 ( 0f 9 )

    Download the ATmega32 to PC Communication with LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 8 ( 0f 9 )

    Open the Real Term software in PC/Laptop and do the required settings.

  • Steps - 9 ( 0f 9 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header with LED header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect the RS-232 Driver header of RS-232 Driver with PortD header of AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 3 ( 0f 9 )

  • Connect the DB-9 Connector of USB to Serial Cable to the DB-9 Connector of RS-232 Driver and USB Connector of USB to Serial Cable to PC/Laptop USB port.

    Steps - 4 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 5 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 6 ( 0f 9 )

  • Download the ATmega32 to PC Communication with LED Display Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 7 ( 0f 9 )

  • Open the Real Term software in PC/Laptop and do the required settings.

    Steps - 8 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 9 ( 0f 9 )

Downloads

ATmega32 to PC Communication with LED Display Project File
  • 50 downloads 0 Kb

Post a Comment

    • KamilMa?kowski
      2018-05-18 20:18:04
      Reply