How to detect vibrations/knock with piezoelectric sensor using PIC16F877A microcontroller.

Опубликовано: 10 Июль 2026
на канале: Learning Microcontrollers
1,698
22

Guys, My lectures are free for everyone.
If you want to support my channel, then become a Youtube member by following link below:

   / @learningmicrocontrollers3561  

Seek knowledge from the cradle to the grave
/// /////////////////////////////////////////////////////**********************************///////////////////////////////// Hello guys,
Welcome to Learning Microcontrollers youtube Channel,

Guys I have also compiled course on Udemy as well. Where you will learn under my direct supervision in a more supervised way.
Here is the links to the courses I have on Udemy, By taking any of these courses you will be supporting my channel aswell.
This will help me to make more videos with better hardware in the future. I hope you look forward to it.
Courses Links:

1- https://www.udemy.com/course/pic16f87...
2- https://www.udemy.com/course/mikroc-f...
3- https://www.udemy.com/course/mikroc-f...
4- https://www.udemy.com/course/pic-micr...
5- https://www.udemy.com/course/learn-ar... ///////////////////////////////////////////////////// #electronics #arduino #arduinoproject #project #microcontroller #circuitdiagram #circuitdiagram #simulator #simulation #proteus #proteus8 #pic16f877a #arduinotutorial #electronictutorial #embedding #embeddedprojects #embedded_system #embeddedprojectcenters #embedded_system #diy #diycrafts #diyideas #diyproject #diyarbakır #toggle #toggleswitch #switch #bluetooth #hc05 #wireless





1- How to download and install MikroC for PIC full version for free from official website. 100% Legit.
   • How to download and install MikroC for PIC...  

2- Tutorial on downloading, installing and using PICKIT 3 programmer tool.
   • Tutorial on downloading, installing and us...  

3-Setting up a PIC16F877A/PIC16F887/PIC18F****.
   • Setting up a PIC16F877A/PIC16F887/PIC18F****  

4- PIC16F877A a basic Introduction.
   • PIC16F877A a basic Introduction  

5- If you guys like my work you can support my work using Patreon link below:
patreon.com/user?u=81261678

6- MikroC for PIC code for current video:

void main() {
TRISD.F1= 1;
Delay_ms(100);

TRISD.F0= 0;
PORTD.F0 = 0;
Delay_ms(100);

while(1)
{
if ( PORTD.F1 == 1 )
{
PORTD.F0 = 1;
Delay_ms(2000);

}
else
{
PORTD.F0 = 0;
}


}
}