CONNECTION2

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 Post

Jpeg

How to Make your Line Following Robot Faster?

Control Mobile Robot through WiFi with ESP-WiFi Shield (Arduino + Andriod)

Arduino + 2A motor + Encoder

Arduino + 2A Motor Shield + Encoder Motor

ESPresoo Lite V2 Package

Bringing IoT to Everyone – Collaboration of ASEAN Makers

Leave a Reply

Your email address will not be published. Required fields are marked *