For the chosen values of R1 and R2, you can see that the output (Va) from the resistor divider network is 1/4th of the input voltage. Using two resistors, R1 and R2, the input voltage ranging from 0-20V can be down converted to 0-5V. It can be achieved by a simple resistor divider network shown below. So, first we need a voltage scaler that will scale down the input voltage to the safe operating voltage range of PIC16F688. It is too higher than its operating voltage, and the microcontroller could be damaged. You cannot feed a 20V signal directly to a PIC microcontroller’s input channel. The voltage is displayed in an HD44780-based character LCD. Doing some math with ADC conversion (you will see later), this number can be converted to the actual measured voltage. The PIC micro reads the input voltage through one of the 8 analog channels and convert it to a 10-bit digital number using the internal ADC. The range of this DVM is 0-20V, but you can easily increase or decrease the range of input voltage as your requirements after you understand the voltage scaling method described in this project. This project will describe how to make a simple digital voltmeter (DVM) using a PIC16F688 microcontroller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |