PC Keyboard Interfacing With 8051 Microcontroller
by embedotronics in Circuits > Microcontrollers
5349 Views, 9 Favorites, 0 Comments
PC Keyboard Interfacing With 8051 Microcontroller
![pcinterface.png](/proxy/?url=https://content.instructables.com/FQV/HGUU/JOMTN8YQ/FQVHGUUJOMTN8YQ.png&filename=pcinterface.png)
In this project I've explained you about how we can interface our PC keyboard to 8051 microcontroller.
Software Used :
![8051.jpg](/proxy/?url=https://content.instructables.com/FNC/EWFN/JOMTMCJW/FNCEWFNJOMTMCJW.jpg&filename=8051.jpg)
![proteus.jpg](/proxy/?url=https://content.instructables.com/FLG/VKTV/JOMTMCSA/FLGVKTVJOMTMCSA.jpg&filename=proteus.jpg)
![flashmagic.jpg](/proxy/?url=https://content.instructables.com/F9W/G84Z/JOMTMCO9/F9WG84ZJOMTMCO9.jpg&filename=flashmagic.jpg)
As we are showing proteus simulation so FOR CODING AND SIMULATION YOU REQUIRED:
1 Keil uvision: Their are lots of product from keil. so you will be required c51 compiler. You can download that software from here
2 Proteus Software for simulation: This is the software to show simulation. You will get lot of information to download this software.
If you are doing it in hardware then you would require one software that is flash magic to upload the code in your hardware.
Remember flash magic is developed by NXP. So you can not upload all 8051 family microcontroler through this software. So Philips based controller only you can upload.
Components Used:
![8051_dev_board.jpg](/proxy/?url=https://content.instructables.com/F27/M8F6/JOMTMCWQ/F27M8F6JOMTMCWQ.jpg&filename=8051_dev_board.jpg)
![usb_to_uart.jpg](/proxy/?url=https://content.instructables.com/F9Y/JFNO/JOMTMD1S/F9YJFNOJOMTMD1S.jpg&filename=usb_to_uart.jpg)
![jumper_wires.jpg](/proxy/?url=https://content.instructables.com/FNP/Q5HX/JOMTMJDP/FNPQ5HXJOMTMJDP.jpg&filename=jumper_wires.jpg)
Here in our demo video we are using proteus simulation but definitely if you are doing it in your hardware you will be required these components for this project:
8051 Development board: So if you have this board it will be better so that you can easily upload the code by yourself.
LCD 16*2: This is 16*2 LCD . In this LCD we have 16 pins.
USB to UART converter: This is 9 Pin D type male Connector For RS232 O/p Some Jumper Wires
Explanation:
Here we have connected one lcd to port 2 of 8051 in 4 bit mode. Now we have connected our development board to our PC through USB to UART converter. Now after uploading hex file using flash magic if you type any character from your PC keyboard it will come to your 16*2 LCD. The whole project explanation is given in the video.
Circuit Diagram
![pcinterface.png](/proxy/?url=https://content.instructables.com/FPT/CL06/JOONQU0H/FPTCL06JOONQU0H.png&filename=pcinterface.png)
Code:
From here download our code.
Downloads
Project Video
![Interfacing PC Keyboard with microcontroller and lcd- 8051 UART PART 2](/proxy/?url=https://content.instructables.com/FE4/ATF6/JOMTN7OE/FE4ATF6JOMTN7OE.jpg&filename=Interfacing PC Keyboard with microcontroller and lcd- 8051 UART PART 2)
The whole Project Description is given in above video
If you have any doubt regarding this project feel free to comment us below.
And if you want to learn more about embedded system you can visit our youtube channel
Please visit and like our Facebook Page for frequent updates.
Thanks & Regards,
Embedotronics Technologies