Electronic Circuits Schematics Projects




Voltage Ampere and Temperature meter with PIC16F877A

Rating: 1.00/10 (56Votes cast)

Category: Microcontroller Circuits / PIC Microcontroller
Views: 3110
Rank: 3

This project was designed and constructed as enhancement to the 0-30V Stabilized Power Supply Project with the DIY electronics hobbyist in mind. The circuit uses a single PIC Microchip to perform the Voltage, Current and Temperature conversions and display functions. The PCB Board uses large tracks and can easily be made using the `press-n-peel` method and a hobby drill. Components should be readily available anywhere in the world. Furthermore the hex files are available for the PIC16F877A and the PIC16F887 and the display can either be LCD or LED. There is only one warning - do not attempt to construct this project unless you are sure what you are doing. Nobody else but you can make the decision to construct it and therefore you are solely responsible for what you are doing or not doing with it.The PIC Microchip Processor must be programmed before it will function as a Volt & Amp meter. There are many internet sites and PIC programmers that you can use. I used a Microchip MPLAB ICD 2 during the project. You might need to made changes to the circuit to accommodate a different type of programmer, do read the programmers instructions carefully. The circuit relies on the internal analogue to digital converter (ADC) of the PIC Microchip Processor. The accuracy is dependant on scaling the input voltage for the ADC for all three measurements. The good news is that both the PIC's which can be used for this project have 10-Bit resolution ADC units which should work adequately in most circumstances. In order to determine the resolution, simple to advanced mathematics can be used - I will use simple mathematics and present a basic explanation in order for you to get going on the project. The Voltage of the PSU can be adjusted from 0 to 33V depending on the components in your circuit. The PIC can only measure voltages between 0 - 5V and represent the values measured as a 10bit binary number from 0 - 1024. In order to determine the voltage increments which can be measured one has to divide the scaled input voltage by 1024 and that equals: 33V/1024 = 32.2mV. Similarly the current range is 0 to 3A. Which means that we can measure in 3.0/1024 = 2.9mA increments in a near perfect circuit. Best Voltage resolution at 33.0V - 32.2mV Best Current resolution at 3.0A - 2.9mA Features: ? Either a LED or LCD display can be used ? LCD Output is compatible with most LCD Displays with a HD44780 drive chip, it was designed for a 2 line x 16 character display ? 6 x 7 Segment LED Display using Common Anode displays ? Configuration via RS232 terminal to set Voltage and Current conversion factors ? Two PIC16F processors are supported, the 16F877A and 16F887 - separate hex files provided for download here ? IPSC Connector for Programming the PIC in circuit ? Separate -12V - 0 - +12V, Power Supply visit page.

The PIC Microchip Processor must be programmed before it will function as a Volt & Amp meter. There are many internet sites and PIC programmers that you can use. I used a Microchip MPLAB ICD 2 during the project. You might need to made changes to the circuit to accommodate a different type of programmer, do read the programmers instructions carefully. The circuit relies on the internal analogue to digital converter (ADC) of the PIC Microchip Processor. The accuracy is dependant on scaling the input voltage for the ADC for all three measurements. The good news is that both the PIC's which can be used for this project have 10-Bit resolution ADC units which should work adequately in most circumstances. In order to determine the resolution, simple to advanced mathematics can be used - I will use simple mathematics and present a basic explanation in order for you to get going on the project. The Voltage of the PSU can be adjusted from 0 to 33V depending on the components in your circuit. The PIC can only measure voltages between 0 - 5V and represent the values measured as a 10bit binary number from 0 - 1024. In order to determine the voltage increments which can be measured one has to divide the scaled input voltage by 1024 and that equals: 33V/1024 = 32.2mV. Similarly the current range is 0 to 3A. Which means that we can measure in 3.0/1024 = 2.9mA increments in a near perfect circuit. Best Voltage resolution at 33.0V - 32.2mV Best Current resolution at 3.0A - 2.9mA Features: ? Either a LED or LCD display can be used ? LCD Output is compatible with most LCD Displays with a HD44780 drive chip, it was designed for a 2 line x 16 character display ? 6 x 7 Segment LED Display using Common Anode displays ? Configuration via RS232 terminal to set Voltage and Current conversion factors ? Two PIC16F processors are supported, the 16F877A and 16F887 - separate hex files provided for download here ? IPSC Connector for Programming the PIC in circuit ? Separate -12V - 0 - +12V, Power Supply http://www.electronics-lab.com/projects/mcu/008/index.html

Related circuits

Solar Recorder

Build a simple data recorder for solar energy lab. The Recorder uses a calculator solar cell as the input sensor and a Multimedia Memory Card for nonvolatile data storage. The device used for measuring daily insolation has been developed. The device was built with a PIC18F458 and the 128MB...



PIC-Programmer 2 for PIC16C84

This Programmer is powered by the RS-232 and it works with RS-232 levels at only < ±8.6V. It programs PIC12C5XX, 12C67X, 24CXX, 16C55X, 16C61, 16C62X, 16C71, 16C71X, 16C8X, 16F8X and ISO-CARD`s with ASF. Other serial programmable chips by adapter. The high Vpp is obtained by using negative...



IR 4 channels remote control with PIC12F629

The circuit above illustrates using the IR receiver module along with a PIC12F629 microcontroller to decode 5 individual IR remote control keys so the circuit will only toggle one of the 4 outputs when a particular key is pressed. The 5th key is assigned to the master clear function...



Race Track Grid Start Lights

When the circuit is first powered on LED's D2 and D4 light just to indicate the circuit is operating. When the start button (SW2) is pressed all the LED's turn off. They then illuminate sequentially at one second intervals until all five LED's are on. After a random interval between 0 and...



Voltage programmable square wave generator

Here's another daft yet interesting PIC12F675 idea I came up with. When I wanted to show someone how logic gates worked I could only find a NAND gate which wasn't very handy for demonstrating AND's OR's, NOR's and ExOR's. I also wanted to have a play with the A/D converter on the 12F675 so I...



Night Light Saver (PIC12C508)

A Microchip PIC12C508 8-pin CMOS Microcontroller turns a night light on and off with preset time everyday. Save Energy, No EMI, No Battery, Built-in Lamp Fixture, and Peak Shaving. It`s time for 8-pin microcontroller Microchip PIC12C508, the SAVER V3.2, my latest design of a device that turns a...



F84-Programmer

Build a low-cost and very simple serial programmer for a PIC16F84 Microchip Flash Microcontroller. Below picture is my personal writer for F84 chip, it works very nice with Nigel WPicProg V1.20.



12F675 as a D-type or JK-type flip flop

Since I implemented a D type flip flop using the PIC Logic Elements I thought I might go the other way and implement an entire D type flip flop in a single PIC. This uses the edge triggered and port change status interrupts and was an opportunity to have a play with interrupts on the PIC. As...



Breaker Boxes Explained - New Improved Version

PWM Based DC Motor Speed Conrol Circuit Diagram


Comments




 characters left

Captcha

captchaPlease input letters you see on the image.
Click on image to redraw.



Facebook Comments

Most searched
 
Accounts area
Username:
Password:
Forgot password? Register
Circuits