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.
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.
Step by step
Solved in 3 steps with 1 images