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 pin. For showing distance, we used an LCD. For more information about the LCD library and usage click button below.
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 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.
In this tutorial, we are going to teach how to use an LCD display with an 8-bit PIC microcontroller. We will give you a powerful LCD library and explain how to use it in your microcontroller in this tutorial. We will do examples on the PIC16F628A microcontroller but you can do small changes to use it in your projects. Let’s get started to make LCD Interfacing.
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.