PIC16F877A interface Nextion HMI. Turning LEDs ON and OFF Tutorial. Softwares MikroC/Nextion Editor
ฝัง
- เผยแพร่เมื่อ 21 ก.ย. 2024
- 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.
www.udemy.com/...
A beautfiul quote:
The road to sucess is always under construction.
/
/
///////////////////////////////////////////////////// Hello Guys,
As you know touchscreens and HMI are part of every machinery found in the market. Or even small projects require these screens. To have strong grip on using touch screens and interfacing them with microcontroller is very important is necessary. This tutorial teaches you how to interface a Nextion touch screen with a PIC16F877A microcontroller to turn on and off LEDs using mikroC for PIC coding.
Become a Patreon and support my channel using link below:
patreon.com/us...
MikroC code in the video is as under:
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);
}
}
}
Thank you for sharing this video 😊
You are welcome thanks for encouragment
Excellent teaching sir
Thanks for the encouragment
Nextion software can be use with any HMI or only with Nextion HMI, ??
Nice tutorial , very informative and easy to learn, GOD bless you.
Only nextion
Every HMI has its own tool