Description: This is another version of an older digital voltmeter (DVM) project that was based on the PIC12F683 microcontroller. The previous version displayed the measured voltage on an LCD driven serially by the PIC12F683 using three I/O pins. The new version utilizes the PIC16F688 microcontroller, which does not require a serial driver, as it has sufficient pins to directly drive an LCD in 4-bit mode. The underlying theory and calculations remain unchanged. A regulated +5V supply is essential for accurate output, as the ADC uses Vdd as the reference for conversion, and all computations are performed with Vdd set to 5V. A regulated +5V can be achieved using an LM7805 linear regulator IC.
The digital voltmeter (DVM) circuit operates by employing the PIC16F688 microcontroller, which enhances the design by allowing direct interfacing with an LCD in 4-bit mode. This reduces the number of required I/O connections and streamlines the overall design. The microcontroller's architecture supports an integrated analog-to-digital converter (ADC), enabling it to measure the input voltage accurately.
The circuit begins with the voltage source being fed into the ADC input pin of the PIC16F688. The ADC converts the analog voltage into a digital value, which is then processed by the microcontroller. The reference voltage for the ADC is set at +5V, which is derived from a regulated power supply. The LM7805 linear regulator is utilized to ensure that the voltage remains stable and within the required range for accurate readings.
In terms of the LCD interface, the PIC16F688 is configured to operate in 4-bit mode, which allows it to control the LCD using only four data lines and additional control lines for enabling and command functions. This configuration not only saves valuable I/O pins but also simplifies the wiring and layout of the circuit.
The software running on the PIC16F688 is designed to periodically sample the input voltage, convert it to a digital value, and display the result on the LCD. The display is updated at regular intervals to provide real-time voltage readings, and the code includes necessary functions for initializing the LCD, sending commands, and formatting the output for clear readability.
In summary, this updated DVM project showcases the advantages of using the PIC16F688 microcontroller for direct LCD interfacing and maintaining accuracy through a regulated power supply, while preserving the core principles established in the earlier PIC12F683 version.Actually this is the another version of my older DVM project that was based on PIC12F683. The older version displays the measured voltage on a LCD that is driven serially by PIC12F683 using 3 I/O pins. The new one uses PIC16F688 microcontroller that doesn`t require the serial driver as it has got enough pins to drive a LCD directly in 4-bit mode.
The theory and math is just the same. You can read my PIC12F683 version of this project here. Important: You need a regulated +5V supply for accuracy of the output. The ADC uses Vdd as the reference for conversion, and all computations are done with Vdd = 5V. You can get a regulated +5V using a LM7805 linear regulator IC.
The bus is connected to the 2G-5 shrouded connector N9. The two CAN bus signals are routed to the PCP2551 CAN bus transceiver U2. The output from U2 is directed to the UART transmit and receive signals on the PIC16F688...
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...
The difference between these two ICs. A microcontroller is a specialized type of microprocessor designed to be self-sufficient and cost-effective, while a microprocessor is typically intended for general-purpose use, such as in personal computers (PCs). The microcontroller integrates several useful...
Displays up to eight different DC voltages on a CRT terminal of a microprocessor under keyboard control, using BASIC commands and a BASIC routine provided in the article. Utilizes a modified Motorola MC14433 dual-lamp integrating analog-to-digital converter. An unknown voltage...
The initial step often taken when learning about any microcontroller or embedded system is to make an LED blink. The circuit presented below illustrates the setup for interfacing an LED. Note: Due to the large dimensions of the circuit diagram,...
The schematic is illustrated in figure 10. The circuit can be hardwired onto a breadboard, or a printed circuit board (PCB) can be purchased, as shown in figure 11. The LCD display utilized is a 2-line by 16-character display. An...
Large LCD devices with one or more displays exhibit significant driving capacitance to the driver circuits. To address this issue, the drive circuit incorporates a buffer amplifier for each of the three common lines. Each amplifier can be programmed independently...
This page is a work in progress. The board and source files will soon be available for building and programming to play custom songs. After assembling the board, communication with the programmer was verified, and both the LED and switch...
The schematic for controlling the motors is divided into three main sections, each serving a distinct function. The primary components featured in the schematic include the PIC 18F252 microcontroller, the SN754410 motor driver, and 2N2222 transistors. At the top of...
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