Skip to main content

Write Strings to LCD With Two Buttons

In this project, we are going to write strings to an LCD display with two buttons. The first button will change the position of the cursor and the second button will change the character. In this way, you can write the strings that you want. For this project, we are going to use the PIC16F628A microcontroller and XC8 compiler. To understand how can we write to LCD display click the link below and read the tutorial.

Circuit Schematic

We are going to use the circuit that we use in LCD Interfacing with PIC Using XC8 tutorial.

Circuit for Write Strings to LCD  using PIC16F628A microcontroller.
LCD Display Circuit

Write Strings To LCD XC8 Code

The “config.h” file is the same as in LCD Interfacing with PIC Using XC8  tutorial. We add some speed effect for writing faster. You can see how it works in the video below.

With this project, you learn how to write code that can write something to an LCD display with just two buttons. You can make code to write numbers and add 1 button to change characters in another direction. Stay healthy and see you in the next tutorial or project.

Comments

Popular posts from this blog

How to Make Blink LED with PIC16F628A

How to Make Blink LED With PIC16F628A In this project tutorial, we are going to make blink-led projects with a pic microcontroller. After you read this tutorial you can build a PIC microcontroller project with XC8 on MPLAB IDE. We are going to make 3 different blinking projects. These projects are basic. Just learn how to make a basic project with a PIC microcontroller. You can see below which projects we are going to make; Blinking LED with 1s delay, LED with button, Blinking LED with a button.

Ultrasonic Sensor HC-SR04 With PIC Microcontroller

How Ultrasonic Sensor Works An ultrasonic sensor is a very useful sensor that measures distances with sounds. We used the PIC16F628A microcontroller for this project. This microcontroller has TMR1 which we are going to use. We need 2 I/O pins for TRIG and ECHO pins. For showing distance, we used an LCD. For more information about the LCD library and usage click the button below. LCD Interfacing with PIC Using XC8

DC Motor Speed Control With PIC16F628A

DC Motor Speed Control Simulation In this project, we will control the speed and direction of a DC motor using the PIC16F628A microcontroller. We will write the software in MPLAB IDE with the XC8 language that will send a PWM signal to L293D to control the motor. Finally, we will simulate it through the Proteus software. PWM (Pulse Width Modulation) You can get more information about the PWM signal from the link above. Now let’s examine the L293D motor driver.