Dc voltage measurement using pic microcontroller software

Once the rectification is done the voltage under measurement should be given to the specified adc channel pin of the microcontroller, since our pic microcontroller is having internal adc. You will find the answer in the software section below. This is transformed to dc with the help of a bridge rectifier. The difference amplifier or potential transformer is used to stepdown the voltage and then by using analog to digital converter or rectifier the voltage. Dc voltage measurement using atmel avr microcontrollers.

A dc dc converter is normally chosen because of its high efficiency in converting the input power to output power. Design and development of pic microcontroller based 3. Ac voltage measurement using microcontroller electrical. Digital dc watt meter project using pic microcontroller. This is microcontroller led flasher circuit using pic16f627a as first pic microcontroller learning of mine son. A microcontroller reads the width digitally and displays the corresponding dc input voltage to the user after engineering conversion through the rs232 port of a legacy machine. The whole process of the digital multimeter is controlled by pic 16f887 microcontroller. Voltmeter and ammeter can be easily made using pic microcontroller having adc. If you want to measure ac signals with the help of microcontroller there are 2 ways.

In this voltage measurement example we are measuring voltage of the dc 9v battery, you can connect any dc source to red and black wires. In alternating current ac, also ac, the flow of electric charge periodically reverses direction. The merit to using a pot is adjustment for a pretty accurate divider. Measurement, monitoring of dc voltage and frequency of a. A solar panel is used to convert the incident sunlight into dc voltage.

Dc motor and fan speed control using pic16f877 microcontroller. The simplest way of doing this is to place a resistance in series with the current path and measure the voltage drop across it. This pic lcd volt meter project uses a pic micro and an hd44870 lcd display. Digital ac voltmeter can also be designed using microcontrollers. Shown is the circuit as originally drawn on a whiteboard. This will also requires enabling that feature in the microcontroller in the software. Pic, voltage sensing, voltage measurement, pic18f4520 background the pic18f4520 is a 40pin microcontroller with numerous functions and applications. Design and construction of digital multimeter using pic microcontroller khawn nue, dr. Dec 23, 2016 to accomplish this speed measurement function, a pic microcontrollers capture compare ccp and pulse width modulation pwm modules can be used to an operate a brushed dc motor. One of its many functions is analog to digital conversion. To measure any electrical quantity through microcontroller you just need to convert it into its range. The easiest way to determine the power factor is to simultaneously sample the voltage and current at a high frequency perhaps a 100 times the mains frequency with an ad converter and then calculate the ratio of the real power to the apparent.

Microcontroller efficiently converts sensor voltage to. Lm35 is a temperature sensor, operating at 4volt to. This project can measure both ac and dc current with a range of 030a with. Circuit diagram of digital voltmeter using pic microcontroller and 16. Circuit diagram of digital ammeter circuit using pic microcontroller is given below.

Design of digital voltmeter for ac voltage measurement using pic. Dc motor and fan speed control using pic16f877 microcontroller using pwmpulse width modulation technique bq25619 i2ccontrolled 1. Digital voltmeter using pic microcontroller project and circuit. Mamatha c g, asst professor department of electrical and electronics engineering gsss institute of engineering and technology for women mysore, india abstract. To improve accuracy add a voltage reference and feed the reference voltage to the vref input on the pic which is into ra3 change the control register values in the adc. View designandconstructionofdigitalmultimeter using pic microcontroller. Microcontroller based electrical parameter monitoring. Dcdc converter controller using a picmicro controller. You will require an external adc for the measurement. Digital ammeter circuit and project using pic microcontroller. The range of this dvm is 020v, but you can easily increase or decrease the range of input voltage as your requirements after you understand the voltage scaling method described in.

Design of digital voltmeter for ac voltage measurement using. While chosing the values of resistors ensure that the reduced voltage remains within the limit of adc and also 8051. I need to get two dc voltage signals accurate measurements using cs5460a and display the computed resistance value on 4 digit 7 segmentsled displays. In this project, i have designed a ac ammeter using difference amplifier and pic microcontroller. But of course, you shouldnt have voltage that high on the input of a microcontroller or itll fry. Microcontroller pic16f73 can be used instead of pic16f877a. If you apply ac voltage as input, then will see the continuous running numbers on lcd as ac varies continuously. This digital voltmeter using pic16f877a can read voltage only between 020 volt. Speaking about pic microcontroller, the first thing that should popup in your mind is the ccp pwm hardware module inside the microcontroller itself.

Also take care about current as these control device can withstand current in few milliamp. Pic microcontroller with multivoltage measurement, display lcd a good example for software pic basic prepared with pic18f4455 re3, ra0, ra1, ra2, pins and the 4channel voltage measurement can be made circuit as an example 5. Ac current measurement using difference amplifier and. Lowvoltage singlesupply incircuit serial programming enable bit rb3 is. Arduino ac voltmeter project with code and circuit diagram. The voltage divider circuit using a resistor is used to step down dc voltage. The program for digital voltmeter using pic microcontrolle is compiled using.

The current and voltage single are acquired from the main ac line by using current transformer and potential transformer. Oct 06, 2018 digital voltmeter using 8051 microcontroller this project measures the input voltage from 0v to 25v. Microcontroller schematic design software microcontroller schematic design software is a electronics design software eds that is used for the prototyping and simulation of embedded system that contains microcontrollers. Aug 05, 2016 a 3v transformer would provide around 4. Voltage measurement with a pic microcontroller ryan popa 03302012 design team 3 abstract the purpose of this application note is to explain how to measure a voltage using a pic18f4520 microcontroller. Pic16f877a microcontroller built in adc analog to digital converter is used. It has five ports on it starting from port a to port e. Pic microcontroller with multi voltage measurement, display lcd a good example for software pic basic prepared with pic18f4455 re3, ra0, ra1, ra2, pins and the 4channel voltage measurement can be made circuit as an example 5. In this circuit diagram, 30 volt dc source is applied to 40ohm load. Our system is designed to measure the voltage, current, temperature and light intensity of the energy incident on it.

Smart agriculture using pic microcontroller and gsm based. Children 8 years old, he does not understand the computer language at all. If you have the knowledge of adcs then you can easily measure the voltage. Hello, i am new to microcontrollers and am making a project to read ac mains voltage using pic microcontroller pic 16f72. Ac voltage measurement using atmel avr micro controllers.

In pic microcontroller we have read this mapped dc voltage and based on that mapped value we have calculated the incoming ac voltage with the help of given formula. Maximum load current would be anywhere between 3 to 12 amps. Also taking advantage of the hardware and software integrat ed pwm module pic16f877a pwm. Voltmeter and ammeter using pic microcontroller electrosome. Can u help me regarding making of true rms digital voltmeter using micro controller measuring both ac and dc. In this project, you will learn how to measure high ac voltage using pic16f877a micrcontroller. There are many different methods to measure the voltage. You have came across many online tutorials on various websites about voltage measurement using different microcontrollers. Digital dc ammeter using pic16f877a microcontroller youtube. Ac alternating current measurement using pic microcontroller. Ac current measurement using pic16f886 hello, i am working on a project where i need to monitor ac current of an inductive load, compare it against a set value and display current value on a seven segment display. The analog input to pic is limited to vss and vdd voltages 0 5v of pic.

Unlike a linear regulator, the efficiency measure of a dc dc converter generally increases as its load increases. The current is measured with the help of an acs 712 current sensor. Here in this circuit resisitor r1 and r2 form a voltage divider to attenuate the ac line voltage. So, heres the programming code you need to use for displaying voltage. The usual steps taken for designing microcontroller based embedded system using microcontroller circuit design software are 1. A properly designed dc dc converter can yield an efficiency measure of greater than 90% at full load. Here, we will look on the measurement parts of dc voltage using atmel avr micro controllers. Mar 06, 2016 in this video will learn how to design digital current voltmeter using voltage divider and difference amplifier method, how to write code using mikro c and pic. It explains how to monitor and sense the above parameters and isolate between the power line and microcontroller. Design and construction of digital multimeter using pic. This project can measure capacitance values from 1 nf to 99. The technique is based on measuring the time elapsed when a capacitor is charged to a known voltage through a series resistor.

Jul 05, 2019 dc voltage measurement using the pic microcontroller and pwm by dursun emre kalpak a dissertation submitted in partial fulfilment of the requirements for the degree of bachelor of science in electrical and electronic engineering 17. Negative cycle of sine wave is shifted to positive cycle by applying 5 volt dc offset. Adc module of pic microcontroller converts the signals on its analog pin to 10 bit binary data and it has software selectable high and low voltage reference input to some combination of vdd, vss, ra2 and ra3. This note will start by explaining how to correctly power and wire the microcontroller for sensing voltage.

Voltage drop across shunt resistor is converted into voltage and this voltage is step down with the help of difference amplifier. Other than this application, it can be used as digital ammeter circuit for current measurement in electronics experiments. Ac voltage measurement with a microcontroller electrical. This 5v dc will be used to run the microcontroller and lcd display. Ac voltage measurement using pic microcontroller and opamp. I want to read high voltages, like 50v, using a microcontroller. To accomplish this speed measurement function, a pic microcontroller s capture compare ccp and pulse width modulation pwm modules can be used to an operate a brushed dc motor. Since you cant use a 5v refrence if using a 5v supply then use a 2. Ac voltage measurement using atmega8 engineer experiences. The optical encoder or interrupter provides a highspeed digital signal pulses to a slotted disk allowing light to pass through it. You cannot feed a 20v signal directly to a pic microcontrollers input channel.

Fortunately, there is a more precise way to measure the rms value of an alternating signal, even if distorted, and this document explains how to implement it using a pic microcontroller. Electrical engineering, electronics, engineering, matlab and mathematica, microcontroller. Design of digital voltmeter for ac voltage measurement. Digital voltmeter using pic microcontroller project and.

Frequency signal is obtained by using a frequency signal converter circuit. This means a dc current can be indirectly measured by a microcontrollers adc channel by first converting the current into voltage. Through this the pic is capable of reading an analog voltage and turning it into a digital readout that can be used in a program. Solar energy measurement system using pic16f877a microcontroller. Voltage meter volt meter can measure dc voltages up to 50v. We can measure the potential difference between any two points in an electrical network using a voltmeter. Since the pics ad can only measure positive values, a dc level must be added to the signal, so as not to lose the negative portion.

So we have determined that our reference for the adc will be the supply voltage 0v to 5v, which means that the lowest voltage the adc can measure will be 0v and the largest voltage that the adc can measure will be 5v. Voltage measurement by pic microcontroller electronics. Armature voltage is varied by pulse width modulation pwm of input dc voltage by using the developed microcontroller s program. Highlow voltage detection and protection circuit using. To prevent more than 5 volts appearing across the pic microcontroller. But i am unable to find the circuit to step down the ac voltage to dc and that too to the max. Digital dc voltmeter is designed to measure dc voltage using the pic16f877a microcontroller. This project can measure both ac and dc current with a range of 030a with an accuracy of 0. Ac voltage measurement using pic16f877a microcontroller. Complete arduinovoltmeter code is given at the end of this project and it is well explained through the comments.

How to measure main ac voltage using a pic microcontroller. Voltage measurements are easy tasks through a microcontroller. Digital voltmeter using pic16f877a pic microcontroller. Mar 15, 2017 dc voltage measurement using the with pic microcontroller 1. Ac power measurement is tricky and your dc approach here will not work. Resisitor r3 and r4 acts a level shitfer so that the ac signal zero level is shifted to mid voltage level of the dc 3. You just have some idea of adcs of microcontroller. Design and development of pic microcontroller based 3 phase energy meter thousif ahamed1, a. Microcontroller base automatic controlling of power factor with load monitoring is shown in fig. In this project, we will discuss a technique of building a digital capacitance meter using a pic microcontroller. Important issue,we have to make the pic micro controller is easier. Voltage measurements are easy tasks through a micro controller. First we will know about ac voltage parameters, then we will do the whole work step by step. Oct, 2016 ac voltage measurement using atmel avr microcontrollers.

This circuit, based on a pic microcontroller with a few added components, converts a sensorbased voltage into a 4 to 20ma current loop. Digital voltmeter using 8051 microcontroller electronics hub. Microcontroller based dc motor speed control using pwm technique. Pic 16f876 microcontroller, seven segment display, ac to dc conversion, voltage divider. The lcd volt meter uses the microcontroller power supplies as reference voltages and so it is not likely to be very accurate e. College of engineering, bangalore, indias1,2 abstract the purpose of this project is to develop a 3phase energy meter, using dspic33f microcontroller and mcp3909. Dc voltage measurement using the pic microcontroller and pwm by dursun emre kalpak a dissertation submitted in partial fulfilment of the requirements for the degree of bachelor of science in electrical and electronic engineering 17.

This time we will see how to measure ac voltage parameters with the help of. Simulating ac 285 rms voltage using ac arduino voltmeter. I am using this below circuit to measure ac voltage using a pic microcontroller pic32mx330f064h. Servo motor control with software pwm pic microcontroller c. There are two types of voltmeter as analog voltmeter and digital continue reading digital voltmeter using 8051. Digital ammeter circuit using pic microcontroller and acs712. Here, the input voltage should be dc voltage to get the accurate output on lcd. The ad converter of a pic will return a digital value proportional to the analog signal. An optical encoder, along with a pic microcontroller, provides a simple method of measuring a brushed dc motors speed. Let us design and make a simple voltmeter using 8051 microcontrollers which you can use as a miniproject in your college. For measuremnt of ac current you have to meausre peak value of sine wave you can find for more information visit this link category. For higher transformer voltages, you just a potential divider to reduce the voltage to the range the pic can measure. You cant do that by measuring the rectified ac dc voltage, it must be measured in the ac form. May 20, 2012 adc module of pic microcontroller converts the signals on its analog pin to 10 bit binary data and it has software selectable high and low voltage reference input to some combination of vdd, vss, ra2 and ra3.

Check the data sheet on your pic for the max allowable input impedance. Adc function based on pwm technique electronic design. Smart agriculture using pic microcontroller and gsm based technology sushma a. Nov 14, 2019 servo motor control with pic microcontrollers there are different ways to generate the 50hz pwm signal required by the servo motor using a microcontroller. Temperature meter temperature meter can use between 0 c to 150 c.

A voltage divider circuit is used to divide voltage into two parts. Sreedevi2 department electrical and electronics engineering, r. How to measure the power dc and ac power of circuit using pic microcontroller 20141125 03. Pic microcontrollers provide 2 costeffective methods for. Making a digital capacitance meter using microcontroller. Mar 24, 2016 ac alternating current measurement using pic16f877a microcontroller. Ac power measurement meter using pic microcontroller. There are lot of blogs present on the internet explaining adcs. The solar energy measurement system project is built with pic microcontroller, led, push buttons, solar panel, ldr, lcd, 1n4007, resistor, capacitor, etc. Simulation is performed for various voltages between 220 r.

Nov 28, 2017 the power supply consists of a 23012v stepdown transformer, which steps down the voltage to 12v ac. Digital voltmeter using 8051 microcontroller this project measures the input voltage from 0v to 25v. Ac voltage measurement using pic all about circuits. Therefore, we can internally connect the adc reference pins to vss and vdd of the pic using the adcon1 register.

Circuit diagram of digital ammeter circuit using pic microcontroller. To carry out the design consideration and production of a useful consumer product of pic microcontroller. How to measure the power dc and ac power of circuit using pic. This system is to measure ac dc voltage, current, diodes, temperature, connectivity, frequency and resistance using pic microcontroller. I am using a ct which has 2500 turns on the secondary and it is rated for 20a max primary. Sep 10, 2015 each and every microcontroller has adc that is designed to process dc signals. Measuring the voltage and current will always be helpful while making or debugging any electrical system. I plan to put this as an input into the microcontrollers ad line. In this project we are going to make our own digital ammeter using pic16f877a microcontroller and current sensor acs7125a. But all these tutorials are about measurement of low dc voltage. Also taking advantage of the hardware and software integrated pwm module pic16f877a pwm.

Design and construction of digital multi meter using pic. The ac voltage measurement using pic microcontroller can be done using a difference amplifier or potential transformer. The voltage is sensed by using the step down transformer and voltage divider circuit. This voltage measurement example can measure maximum of 50 volts, it is useful for measurement of solar voltage, dc adapter or battery voltages. The current and voltage single are acquired from the main ac line by using current transformer and. Digital voltmeter using a pic can read the voltage from 040 volt. At the same time, the maximum amplitude must be kept within the ads reference levels, which could be done using a resistive divider. This time we will see how to measure ac voltage parameters with the help of microcontroller. Digital voltmeter using pic microcontroller 16f877a and here im explaining the constructional details of digital panel voltmeter using pic16f877a microcontroller. The difference amplifier or potential transformer is used to stepdown the voltage and then by using analog to digital converter or rectifier the voltage reading is displayed on lcd display. But i will give you a method through which you can do this job just like 1 2 3.

852 1379 1560 385 198 189 195 945 235 1208 24 1482 1115 298 214 205 1283 964 221 485 1267 685 128 41 1032 694 1496 1233 1186 676 1364 329 230 75 1302 233