3bweh
Newbie level 6
can anybody write this program for me i would really appreciate it ...
here is the question
In this part, we are going to use the A/D converter of the PIC to accept two different analogue signals coming from two different boards. Each input voltage will be taken from the board potentiometer. Then depending on the value of the difference between the two input voltages, an LED will light indicating the range of voltage it represents. Make sure to connect the grounds of both boards together.
The program should be able to continuously accept two analogue values from the two board potentiometers and perform the following actions depending on the digital representation of the analogue Difference voltage:
Difference Voltage Range Action by the microcontroller
0-1.8 Volts Light LED5 on the board only
1.8-3.2 Volts Light LED4 on the board only
3.2-4.1 Volts Light LED3 on the board only
4.1-5 Volts Blink LED2 on the board Only with a frequency of 1 Hz
You are free to choose whatever method you like to perform the above actions. BUT note that you are required to use the full 10 bit digital result of the A/D in your program.
here is the question
In this part, we are going to use the A/D converter of the PIC to accept two different analogue signals coming from two different boards. Each input voltage will be taken from the board potentiometer. Then depending on the value of the difference between the two input voltages, an LED will light indicating the range of voltage it represents. Make sure to connect the grounds of both boards together.
The program should be able to continuously accept two analogue values from the two board potentiometers and perform the following actions depending on the digital representation of the analogue Difference voltage:
Difference Voltage Range Action by the microcontroller
0-1.8 Volts Light LED5 on the board only
1.8-3.2 Volts Light LED4 on the board only
3.2-4.1 Volts Light LED3 on the board only
4.1-5 Volts Blink LED2 on the board Only with a frequency of 1 Hz
You are free to choose whatever method you like to perform the above actions. BUT note that you are required to use the full 10 bit digital result of the A/D in your program.