Create the MikroC Code for this schematic. It is for controlling and monitoring multiple DC Motors using PIC16F877A.  The temperature sensor will utilize the Analog-to-Digital Converter module of a PIC microcontroller, particularly the PIC16F877A. The temperature reading is then displayed continuously on a Liquid Crystal Display (LCD). The temperature sensor and the LCD are connected to the master microcontroller; on the other hand, the other output components are connected to the slave. The two microcontrollers will communicate using the Universal Asynchronous Receiver-Transmitter (UART) module. For the output part of the system, the robot will do its firefighting task if the sensor reaches a reading of 68 degrees Celsisus. Furthermore, the robot also utilizes RGB LED and a buzzer as an output indicator of the system. For the wheels, the researchers represented it using DC motors connected to relays in order for them to be easily turned on and off. In the same way, the water pump of the robot is also represented using a DC motor connected to a motor driver utilizing the Pulse Width Modulation (PWM) pins of the microcontroller. Flowchart: It starts with the checking of the status of the switch. If the switch is off, then the system will not work. Otherwise, it shall proceed to the reading of value from the temperature sensor. Afterwards, the value should be displayed on the liquid crystal display (LCD). From here, the value can be checked. If the temperature is considerably high, then it will turn on the red light emitting diode (LED) and the buzzer which serves as the alarm and indicator that the area is not safe. Besides this, it will also turn on the motors for wheels. This indicates that the robot is moving to the area with a high temperature. Once the robot has arrived in that area, the wheels should stop. This will be followed by the turning on of the motor for the water pump, and the blue LED that indicates that the fire extinguisher is currently active. After this, the robot shall continuously check the temperature as it decreases. If the temperature is low, then the green LED should turn on, indicating that the area is safe. This shall be followed with the turning off of all the motors. Hardware: 1. PIC16F877A 2. LM35 Temperature Sensor 3. Liquid Crystal Display 4. RGB light emitting diode 5. DC Motor 6. Buzzer 7. Switch 8. DPDT Relay 9. ULN2003A 10. L293D Other minor components included in this system are the resistors, capacitors, ground, voltage source, and crystal oscillators.

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
Question

Create the MikroC Code for this schematic. It is for controlling and monitoring multiple DC Motors using PIC16F877A. 

The temperature sensor will utilize the Analog-to-Digital Converter module of a PIC microcontroller, particularly the PIC16F877A. The temperature reading is then displayed continuously on a Liquid Crystal Display (LCD). The temperature sensor and the LCD are connected to the master microcontroller; on the other hand, the other output components are connected to the slave. The two microcontrollers will communicate using the Universal Asynchronous Receiver-Transmitter (UART) module. For the output part of the system, the robot will do its firefighting task if the sensor reaches a reading of 68 degrees Celsisus. Furthermore, the robot also utilizes RGB LED and a buzzer as an output indicator of the system. For the wheels, the researchers represented it using DC motors connected to relays in order for them to be easily turned on and off. In the same way, the water pump of the robot is also represented using a DC motor connected to a motor driver utilizing the Pulse Width Modulation (PWM) pins of the microcontroller.

Flowchart:

It starts with the checking of the status of the switch. If the switch is off, then the system will not work. Otherwise, it shall proceed to the reading of value from the temperature sensor. Afterwards, the value should be displayed on the liquid crystal display (LCD). From here, the value can be checked. If the temperature is considerably high, then it will turn on the red light emitting diode (LED) and the buzzer which serves as the alarm and indicator that the area is not safe. Besides this, it will also turn on the motors for wheels. This indicates that the robot is moving to the area with a high temperature. Once the robot has arrived in that area, the wheels should stop. This will be followed by the turning on of the motor for the water pump, and the blue LED that indicates that the fire extinguisher is currently active. After this, the robot shall continuously check the temperature as it decreases. If the temperature is low, then the green LED should turn on, indicating that the area is safe. This shall be followed with the turning off of all the motors.

Hardware:
1. PIC16F877A
2. LM35 Temperature Sensor
3. Liquid Crystal Display
4. RGB light emitting diode
5. DC Motor
6. Buzzer
7. Switch
8. DPDT Relay
9. ULN2003A
10. L293D

Other minor components included in this system are the resistors, capacitors, ground, voltage source, and crystal oscillators.

B1
2V
<TEXT>
22.0
VOUT
VDD-
OF
U2
3 LM35
<TEXT>
R1
CRYSTAL
<TEXT>
+0.22
Voltr
13
141
1⁰
Bek HORAS
U1
7⁰
DSC1/CLKIN
DSC2/CLKOUT
MCLR/V/pp/TH/
RADIANO
RA1/AN
RAZIANZREF.
RAGIANG/REF+
VDD-
REDIANEIRO
REMIANEMAR
REZIANTICS
RBO INT
RB1
RB2
RB3/PGM
R94
RBS
RB6/PGC
FB7/P00
RAATOCK
RASIANASS RCD/T1050/TICK
RC1/T10SW/CDP2
RC2/CCP1
RC3/SCK/SCL
RC4/SDUSDA
RC5/SDO
ROBITXUCK
RCT/ROOT
RDO/PSPO
RD-1/PSP1
RD2/PSP2
RD3/PSP3
RD4/PSP4
RD5/PSP5
RDB/PSPO
RD7/PSP7
34
35
136
37
38
39
40
SE5SSZES $2585828
LCD1
LMOL
TEXT>
Temperature is:
21.9 C
46
I
188 NOO
R2.
47K-
<TEXTA
PIC16F877
PROGRAM Newfolder Temp Monitor Usin Pic181877AC0DEmphex
VSS-
A01
DIODE
• <TEXT>
Q1
2N2222
<TEXP
: ㅏ
12V
<TEXT>
Transcribed Image Text:B1 2V <TEXT> 22.0 VOUT VDD- OF U2 3 LM35 <TEXT> R1 CRYSTAL <TEXT> +0.22 Voltr 13 141 1⁰ Bek HORAS U1 7⁰ DSC1/CLKIN DSC2/CLKOUT MCLR/V/pp/TH/ RADIANO RA1/AN RAZIANZREF. RAGIANG/REF+ VDD- REDIANEIRO REMIANEMAR REZIANTICS RBO INT RB1 RB2 RB3/PGM R94 RBS RB6/PGC FB7/P00 RAATOCK RASIANASS RCD/T1050/TICK RC1/T10SW/CDP2 RC2/CCP1 RC3/SCK/SCL RC4/SDUSDA RC5/SDO ROBITXUCK RCT/ROOT RDO/PSPO RD-1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RDB/PSPO RD7/PSP7 34 35 136 37 38 39 40 SE5SSZES $2585828 LCD1 LMOL TEXT> Temperature is: 21.9 C 46 I 188 NOO R2. 47K- <TEXTA PIC16F877 PROGRAM Newfolder Temp Monitor Usin Pic181877AC0DEmphex VSS- A01 DIODE • <TEXT> Q1 2N2222 <TEXP : ㅏ 12V <TEXT>
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Maximum power transfer theorem
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,