Introduction: Arduino:The Cursor Show

About: I'm a tech freak obsessed with arduino and computers
This fun arduino project uses an LCD(Liquid Crystal Display) and creates a form of show that shows you different modes of cursors you can display on the LCD.I will also explain the code and its functions.Hope you enjoy it

Step 1: Step 1:Gather Your Parts

You will need:

1) An arduino UNO or any other model will work just as fine.

2)An LCD shield (to make your project easier and more compatible) or any other LCD you know how to connect to the arduino.I'm using a 16 by 2 display if you're using a bigger or a smaller one make sure to change the line of code ill show you.

3)Two hands.

4)A USB A to B just like the ones commonly found on printers.You probably already have one that came with the arduino.

5)And a good mood

Step 2: Step 2:Connect the Lcd to the Arduino

My shield just as any other shield is pushed on the arduino so the pins of the shield interlock with the slots on the arduino.If you're not using the shield here's a tutorial on how to connect LCD s to arduino:

https://www.instructables.com/id/Connect-A-16x2-LCD...

And here's how to connect a Nokia LCD to arduino:

[Play Video]

Step 3: Step 3:Fire Up the Code and Off You Go

The code can be tricky for a beginner but i was a beginner once as well and i'm going to do my best to explain it to you:

First of all include the library of the LCD display.The arduino IDE(integrated development environment) has it already installed for you just click sketch then include library and select the Liquid crystal one.After that you will need to declare the pins the LCD is hooked up to by using the command: LiquidCrystal(same as the name of the library)

(space) give it a name most commonly used name is LCD so ill stick to that

(open parenthesis) and now there are two cases if you're using the shield the active pins are:(8, 9 ,7 ,6 ,5 ,4)

for another display the most common pins are (12, 11, 5, 4, 3, 2)(notice how there's a space after each comma )

after you're done with stating the pins the line should look like this:

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

or

LiquidCrystal lcd(8, 9, 7, 6, 5, 4);

Sorry for the inconvenience but you'll have to change it according to the lcd you're using

next in void setup(){}

write lcd.begin and the number of columns by the number of rows in this case (16,2)

void setup(){

lcd.begin(16,2);

other commands used in this sketch are:

lcd.print (prints a message on the lcd) everything you write should be contained in these bad boys " "

lcd.print("Hello world");

lcd.cursor which sets a cursor at the requested spot on the lcd display

lcd.setCursor(1,0);lcd.cursor();

lcd.blink blinks a cursor in the requested spot on the lcd

lcd.setCursor(0,2);

lcd.blink();lcd.noBlink

stops the cursor from blinking

lcd.noCursor

gets rid of the cursor no matter where he is

lcd.noDisplay

turns off the display

Step 4: Step 4:Have Fun

Once the code is uploaded sit back and enjoy the show.Its a little short but i think its accurate

note:The code can do with some development and is not that good as i'm still new to programming any improvements and suggestions are appreciated

THANKS FOR READING MY INSTRUCTABLE

YOUR COMMENTS ARE WELCOME