PIC16F877A interface Nextion HMI sending Variable values to nextion display. Counter Demo.

Опубликовано: 29 Сентябрь 2024
на канале: Learning Microcontrollers
1,056
27

Hello Guys,
Welcome to learning Microcontrollers.
I had made a course for you guys to learn under my direction supervision on Udemy.
This course will make you a master of PIC microcontroller based projects making using MikroC for PIC software.
Please do take this course the link is below. This will greatly help my channel aswell to grow.
https://www.udemy.com/course/pic-micr...

A beautfiul quote:
The road to sucess is always under construction.
/
/
///////////////////////////////////////////////////// Hello guys,
This video is about sending variable values to the nextion touch screen using PIC16F877A microcontroller. This has huge applications specially in the field of sensors based systems or closed loop systems or monitoring systems or machine control using touch screens.

Become a Patreon and support my channel using link below:
https://patreon.com/user?u=81261678

MikroC code is as:
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 Write down less then mathematical sign here 100 );

count1=0; /// increment
count2=100; /// decrement

}


}