Bukit Mertajam, Penang

PROJECT 13 – UART TO COMPUTER

PROJECT 13

UART TO COMPUTER

Back to Project 12                                                                                                     Go to Project 14

To deal with computer keyboard, we have to know what kind of signal did keyboard giving when you press a key. For this project, we are going to interface the Arduino Duemilanove to computer through USB.

———————————————————————————————————————————————————-

COMPONENT NEEDED

———————————————————————————————————————————————————-

ARDUINO – LCD KEYPAD SHIELD

———————————————————————————————————————————————————-

CONNECTION

———————————————————————————————————————————————————-

For this project, you are only required to plug in the Arduino LCD-Keypad Shield to the Arduino Duemilanove and the also make sure the USB cable are connected to the computer.

———————————————————————————————————————————————————-

ADDITIONAL INFORMATION

———————————————————————————————————————————————————-
As many user may wondering what kind of the output from the keyboard are sending out to our microcontroller. For you information, the output are same as what we trying to send to LCD to display which is call ASCII where all the words and number are in Hex. Please check the ASCII table here.

———————————————————————————————————————————————————-

CODE OVERVIEW

———————————————————————————————————————————————————-

for (int lcd_cursor; lcd_cursor<32; lcd_cursor++)
The lcd_cursor will continuously increasing from 0 to 31 1 step each.

if (lcd_cursor == 15) lcd.setCursor(0,1);
Check if the lcd_cursor is 15. If yes then jump the lcd cursor to next line which is 2nd row, 1st column.

else if(lcd_cursor ==31) lcd.home();
Check if the lcd_cursor is 31. If yes then jump cursor to home which is 1st row, 1st column.

lcd.write(serial_in);
Write a character to the LCD display.

Back to Project 12                                                                                                      Go to Project 14

———————————————————————————————————————————————————-

ATTACHMENT

1. P13 User Manual.pdf
2. Project_13_code.zip

Buy

Related Posts

Comments (1)

As i in the beginning left a comment I visited the actual “Notify me any time brand new feedback usually are added” checkbox and from now on if a remark is actually additional My spouse and i acquire several emails while using same comment. Perhaps there is however you’ll be able to take away people via that will support? Thanks!

Leave a comment

Get 7 Tips for Developing Electronic Projects
We respect your privacy.
Loading...