
Google Drive Download link to PICKIT 3 Programmer tool :
https://drive.google.com/file/d/1h8sKc69PuWKozUjKmTzmBGTYX-g9jI_9/view
void main() {
UART1_Init(9600);
Delay_ms(250);
while(1)
{
UART1_Write_Text("t0.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text("Learning");
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(500);
UART1_Write_Text("t0.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text(" Microcontroller");
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(500);
}
}
char read1;
void main() {
TRISD.F0 = 0;
PORTD.F0 = 0;
Delay_ms(100);
TRISD.F1 = 0;
PORTD.F1 = 0;
Delay_ms(100);
UART1_Init(9600);
Delay_ms(100);
while(1)
{
if (UART1_Data_Ready() == 1) {
read1 = UART1_Read();
Delay_ms(50);
}
if(read1 == 'a')
{
PORTD.F0 = 1;
Delay_ms(50);
}
else if(read1 == 'b')
{
PORTD.F0 = 0;
Delay_ms(50);
}
else if(read1 == 'c')
{
PORTD.F1 = 1;
Delay_ms(50);
}
else if(read1 == 'd')
{
PORTD.F1 = 0;
Delay_ms(50);
}
}
}
int count1;
int count2;
char count11[10];
char count22[10];
void main() {
UART1_Init(9600);
Delay_ms(100);
count1=0; /// increment
count2=100; /// decrement
while(1)
{
do
{
count1 = count1+1;
Delay_ms(10);
count2 = count2-1;
Delay_ms(10);
IntToStr(count1, count11);
Delay_ms(10);
IntToStr(count2, count22);
Delay_ms(10);
// for increment
UART1_Write_Text("t1.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text(count11);
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(10);
// decrement
UART1_Write_Text("t2.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text(count22);
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(10);
}while( count1 < 100 );
count1=0; /// increment
count2=100; /// decrement
}
}
float tmp;
float tmpC;
char tmpC1[5];
float fH;
char fH1[5];
void main() {
UART1_Init(9600);
Delay_ms(250);
ADC_Init();
Delay_ms(100);
while(1)
{
tmp = ADC_Read(0);
Delay_ms(50);
tmpC = ( tmp * 5 )/ 10;
Delay_ms(10);
FloatToStr_FixLen(tmpC, tmpC1, 4);
Delay_ms(10);
UART1_Write_Text("t2.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text(tmpC1);
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(100);
fH = ( tmpC * 1.8 ) + 32;
Delay_ms(10);
FloatToStr_FixLen(fH, fH1, 4);
Delay_ms(10);
UART1_Write_Text("t4.txt=");
Delay_ms(10);
UART1_Write('"');
UART1_Write_Text(fH1);
UART1_Write('"');
Delay_ms(10);
UART1_Write_Text("ÿÿÿ");
Delay_ms(100);
}
}
Interfacing PIC Microcontrollers with Nextion Touch Screens Using MikroC
This course is designed to teach you how to interface Nextion touch screens with PIC microcontrollers, using the powerful and widely used PIC16F877A and the MikroC for PIC compiler. Whether you're a student, a hobbyist, or a professional engineer, this course will guide you through both the foundational setup and practical implementation of touchscreen-based embedded systems.
You’ll learn how to send data from a microcontroller to a Nextion screen, control outputs like LEDs via the touch interface, and even integrate real-world sensors like the LM35 temperature sensor to build interactive systems.
What This Course Covers
This course begins with a solid foundation in PIC microcontroller basics, including setup, programming tools, and compiler installation. Once the environment is configured, we’ll dive into Nextion touch screen integration, starting from the very first data transfer all the way to building advanced projects.
Key Skills You Will Gain
Understanding the architecture and features of the PIC16F877A microcontroller
Installing and using MikroC for PIC compiler
Installing and configuring the PICKIT programmer tool
Installing and using the Nextion Editor to create user interfaces
Sending text and data from the PIC microcontroller to the Nextion display
Addressing and managing Nextion variables from PIC code
Reading user inputs from the touchscreen and controlling microcontroller outputs
Building advanced projects like multi-counter displays and room temperature monitoring systems
Real-World Applications
This course will enable you to design and implement interactive touchscreen interfaces for a range of embedded applications, including:
Data display dashboards
Touch-based LED control systems
Temperature monitoring and environmental feedback displays
Counter-based systems for industrial use
The knowledge you gain can be applied to both hobby projects and commercial product development.
Why Learn With PIC16F877A and Nextion?
While this course is based on the PIC16F877A, the coding principles, MikroC syntax, and interfacing logic apply universally to other PIC microcontroller families including PIC10, PIC12, PIC16, PIC18, PIC24, PIC32, and even dsPICs. The only differences you’ll encounter are in the pin layouts and I/O configurations, which are easily adjustable in your code.
So by learning with one microcontroller, you’re opening the door to working with hundreds of others — all using the same development workflow.
Course Content Overview
Introduction to PIC16F877A microcontroller.
Lecture 1: Why PIC16F877A ?
Lecture 2: Introduction to PIC16F877A microcontroller.
Lecture 3: Get familiar with PINS and PORTS configuration of PIC16F877A microcontroller.
Lecture 4: Setting up a PIC16F877A for first code programming using PICKIT.
Downloading and installing MikroC for PIC.
Lecture 5: Download and install mikroC for PIC compiler.
Downloading and installing PICKIT programming tool.
Lecture 6: Downloading and installing PICKIT programming tool.
Nextion Touch displays based projects using PIC16F877A microcontroller.
Lecture 7: Displaying your first text from PIC16F877A to the Nextion screen.
Lecture 8: Turning LEDs ON and OFF using Nextion touch screen using PIC16F877A MCU.
Lecture 9: Running multiple counters on Nextion touch screen using PIc16F877A MCU.
Lecture 10: Room temperature measurement system using Nextion , PIC16F877A & LM35.
Need Help During the Course?
Support is available throughout your learning journey. If you encounter any issues or have questions about the course material, feel free to reach out. I’m here to help you succeed.
Start building interactive touchscreen-based embedded projects today. Learn how to interface PIC microcontrollers with Nextion displays using MikroC and bring your embedded systems to life.
Enroll now and take your microcontroller development skills to the next level.