Wireless fire detection using Ky-022 infrared & HC-05 module using PIC16F877A microcontroller.

Опубликовано: 21 Октябрь 2024
на канале: Learning Microcontrollers
193
10

Hello guys Welcome to learning microcontrollers,
Guys I had made a course for you guys on Udemy.
This course will teach you how to directly get your hands dirty on arduino and make useful projects to earn money.
Please do take this course on udemy this will greatly help me to grow my channel.
You will assisting my channel by paying for that course.
Here is the link to the course:


https://www.udemy.com/course/learn-ar...


A quote:
Learn from cradle to grave.
/
/
/
////////////////////// 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.
/
/
///////////////////////////////////////////////////// #electronics #arduino #arduinoproject #project #microcontroller_lab #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

Use PIC16F877A to generate a counter and use Smartphone to display and control it using HC-05 Bluetooth module.

PIC16F877A specifications:
This powerful (200 nanosecond instruction execution) yet easy-to-program (only 35 single word instructions) CMOS FLASH-based 8-bit microcontroller packs Microchip's powerful PIC® architecture into an 40- or 44-pin package and is upwards compatible with the PIC16C5X, PIC12CXXX and PIC16C7X devices. The PIC16F877A features 256 bytes of EEPROM data memory, self programming, an ICD, 2 Comparators, 8 channels of 10-bit Analog-to-Digital (A/D) converter, 2 capture/compare/PWM functions, the synchronous serial port can be configured as either 3-wire Serial Peripheral Interface (SPI™) or the 2-wire Inter-Integrated Circuit (I²C™) bus and a Universal Asynchronous Receiver Transmitter (USART). All of these features make it ideal for more advanced level A/D applications in automotive, industrial, appliances and consumer applications.


PIC16F877A datasheet link:
https://ww1.microchip.com/downloads/e...



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

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

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

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);

UART1_Init(9600);
Delay_ms(100);

while(1)
{
if ( PORTD.F1 == 0 ) // bcz when fire is detected KY-022 will send a 0
{
Delay_ms(8);
if ( PORTD.F1 ==0 )
{
PORTD.F0 = 1;
UART1_Write_Text(" ***Fire Detected*** ");
Delay_ms(3000);
}
}
else
{
UART1_Write_Text(" Normal ");
PORTD.F0 = 0;
}

}
}