Search for question
Question

12 m IM Ve 3 me $ -- -- I have a project in Proteus using PIC18F46K22 that consists of 16 oil wells, and the power supply is 5V DC. I have represented each oil well with a variable resistor (10k ohm), and now I have 16 variable resistors as inputs connected to the ADC pins. Then, the oil flow level is displayed on an LCD screen (16x2) (LM016L), and also an active buzzer is connected to the PIC18F46K22. The requirement: Based on the connections shown in the image, write the code and the required initializations for the LCD and PIC18F46K22 using MPLAB X IDE development environment to measure the flow of each oil well. It should display the well number along with its flow level as a percentage on the LCD screen for five seconds, then move to the next well for 5 seconds, and so on until it reaches well 16 and then stops. When there is no oil flow for a well, the buzzer should sound and "No flow" should be written on the screen. Some important instructions: 1. The code written using the MPLAB X IDE program only. 2. Submit the code by attaching the MPLAB X IDE files. 3. The code is written while adhering to the connections shown in the figure only. 4. The Proteus (simulation) file has been attached and there is no need to build the connections again. R

Fig: 1