[ Log In ]

16x2 LCD (Liquid Crystal Display)

16x2 LCD (Liquid Crystal Display)

$12.50
Qty:
Front of the 128x64 display module

128x64 OLED Display Yel/Blu

$17.95
Qty:
Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

Multimeter Security Banana Plug To Test Hook Clip Probe Lead Cable 500V

$8.99
Qty:
3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

$2.65
Qty:
USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

$4.80
Qty:
Tumbnail: 62 oz-in NEMA 17 Stepping motors (also called stepper motor)

NEMA 17 Stepping Motor (62 oz-in 5mm single shaft)

$19.95 Out of Stock
Qty:
Image of the Atmega324p

Atmega324P

$8.50
Qty:
10K timmer potentiometer

10K Trimmer Potentiometer (Through Hole)

$0.85
Qty:
White prototyping breadboard with 30 tie strips and two power rails on each side.

White Prototyping Breadboard (2x30 columns of tie strips and 2x2 rows of power strips)

$7.95
Qty:

Programming: Sending Commands and Characters to the LCD

A command to clear the screen is 0x01 and is used first. A time delay is needed since the clear screen command takes a bit of time.

The next command is to set the LCD into 8-bit mode using 0x38. This command takes 39 microseconds, so 50 microseconds is used to be safe.

The next command set is done in one statement using a binary notation: the x denotes the location that a '1' would be.
0b0000x000 = to enable this command function
0b00001x00 = to make the display on
0b000010x0 = to turn the cursor on
0b0000100x = to make the cursor blink

The final command is 0b00001110 to turn the display and cursor on, but not blink the cursor.

Another delay of 39 us is needed so 50 us is used.

The sending a character function is used hereafter to send characters.

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):