Description: This is a simple application of the internal 10-bit ADC (analog-to-digital converter) of the PIC16F676 microcontroller. This circuit can be used to measure up to 30 V DC. Possible applications include a benchtop power supply or as a panel meter in various systems. The Microchip PIC16F676 serves as the core of this circuit. The internal ADC of the microcontroller, along with a resistor network voltage divider, is utilized to measure the input voltage. A three-digit common anode 7-segment display is employed to show the final converted voltage. In the schematic, the displays are multiplexed, meaning one display is activated while the corresponding digit is shown, and the other two displays remain off. This process continues for each of the displays. More information on driving multiplexed 7-segment LED displays from a PIC microcontroller can be found in Microchip's application note AN557, which discusses a four-channel digital voltmeter with display and keyboard. In the schematic, a 47kΩ resistor and a 10kΩ trim potentiometer are connected in a voltage divider configuration. It is well-known that the default ADC reference voltage for PIC microcontrollers is set to Vcc (+5V in this case). Therefore, it is necessary to design a voltage divider that can scale a maximum input of 30 volts down to 5 volts. This requires a voltage divider ratio of Vin/6, which gives 30V/6 = 5V. To minimize attenuation on the voltage under test, the resistor values in the voltage divider should be kept in the range of a few thousand ohms, allowing for minimal current draw from the source while still providing sufficient current to drive the ADC of the PIC.
The circuit described utilizes the internal 10-bit ADC of the PIC16F676 microcontroller, which is capable of converting an analog voltage signal into a digital representation. The primary function of this circuit is to measure DC voltage levels up to 30V, making it suitable for various applications such as power supply testing or as a digital panel meter in different electronic systems.
The voltage measurement is accomplished using a resistor network configured as a voltage divider. This network comprises a 47kΩ resistor and a 10kΩ trim potentiometer, which are selected to ensure that the maximum input voltage is scaled down to the ADC's reference voltage of 5V. The voltage divider configuration allows for the calculation of the output voltage (Vout) as:
\[ V_{out} = V_{in} \times \frac{R2}{R1 + R2} \]
Where R1 is the 47kΩ resistor and R2 is the 10kΩ potentiometer. This design ensures that at a maximum input of 30V, the output voltage presented to the ADC remains within the safe operating range.
The circuit employs a three-digit common anode 7-segment display for visual output of the measured voltage. Each segment of the display is multiplexed, meaning that only one display is activated at any given time while the others are turned off. This technique reduces the number of required microcontroller pins and simplifies the driving circuit. The multiplexing process is managed by the microcontroller, which cycles through each display rapidly enough that the human eye perceives all three digits as being lit simultaneously.
For further insights into the multiplexing technique and its implementation, reference can be made to Microchip's application note AN557, which provides additional information on driving multiplexed displays with PIC microcontrollers. This note serves as a valuable resource for understanding the intricacies involved in managing multiple outputs from a single microcontroller efficiently.
In summary, this circuit effectively demonstrates the application of the PIC16F676 microcontroller's ADC capabilities, offering a practical solution for voltage measurement in a compact and efficient design. The use of a voltage divider ensures compatibility with the ADC's input range, while the multiplexed display provides a clear visual representation of the measured values.This is a simple application of internal 10-bit ADC(analogto digital converter) of PIC16F676 microcontroller. you can use this circuit to measure up to 30 v dc. the possible applications are on bench top power supply or as a panel meter invarioussystem. MICROCHIP`S PIC16F676 is the heart and brain of this circuit. the internal adc of the mcu with a resistor network voltage divider is used to measure the input voltage. then 3 digest of comm anode 7 segment display is used to display finalconverted voltage. as you can see in the schematic the displays are multiplexed with each other. means we switch on one display and put the corresponding digit on this while other two displays are off this cycle go for each of thedisplay. you can find more about driving multiplexed 7 segment led display from a pic mcu in application note from microchip AN557Four Channel Digital Voltmeter with Display and Keyboard as you can seen in the schematic the 47k resistor and 10 ktrim pot is connected ias a voltage divider configuration.
we all know very well that by default pic micro controller ADCreferencevoltage is set to vcc(+5v in this case). sowhatwe have to do is make such voltage divider that can divide out maximum range 30 volts to 5 volts.
so we need is Vin/6 => 30/6 =5v voltagedivider. and to keep as less as possible attenuation on the under test voltage we have to keep the voltagedivider resistor value in fewthousand ohms because it takes very little current from the target but asmuch to drive adc of pic.
To create a dashboard digital voltmeter circuit diagram that includes a parts list, PCB layout, and component placement, a full PDF article is available for download.
The dashboard digital voltmeter circuit is designed to provide an accurate measurement of voltage levels...
The microcontroller is able to make about 7000 complete line-following decisions per second, which is almost 7 decisions per millimeter when the robot is going full speed. By upping the clock, unrolling loops, and removing my wireless debugging and extraneous...
This project involves an automatic room light controller with a bidirectional visitor counter using a microcontroller. It is designed to manage room lighting and accurately count the number of individuals present. When a person enters the room, the counter increments...
How can graphical LCDs be controlled using a microcontroller? Is there any datasheet available?
Graphical LCDs (Liquid Crystal Displays) are widely used in various electronic applications for displaying complex graphics and text. To control these displays with a microcontroller, several steps...
This smart doorbell system is designed for use in industrial environments. It is microcontroller-based and controls a horn and a flashlight.
The smart doorbell system utilizes a microcontroller to manage its operations, making it suitable for industrial applications where reliability and...
This circuit employs an 87C57 microcontroller along with several peripherals to convert X-10 power-line carrier-code formats from a personal computer for use with an X-10 power-line interface in a home-control system. Software details can be found in the reference.
The circuit...
This is a digital calendar circuit that utilizes a microcontroller to display the date, day, and month on an LED display. The entire system is managed by an 8-bit microcontroller, which operates based on a program embedded in its ROM....
A zener diode placed in series with a voltmeter will prevent the meter from reading until the applied voltage exceeds the zener voltage. Thus, a 10-volt zener in series with a 5-volt meter will allow the condition of a 12...
Microcontrollers (MCUs) are versatile integrated circuits that enhance the functionality of electronics, robotics, and other projects. However, they...
Microcontrollers (MCUs) serve as the central processing unit in a variety of electronic applications, offering programmable control that allows for complex functionalities in...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more