Tuesday, February 26, 2019
Digital voltmeter using 8051 microcontroller Essay
Voltmeter victimization 8051 micro ascendance.Automatic railway gate control 8051 microcontroller use adminOctober 4 20127 CommentsVoltmeter victimization 8051.A bare(a) 0-5V voltmeter utilize 8051 is shown in this article. This somaal voltmeter has a sensitivity of 200mV which is a go low but this formulate is meant for demonstrating how an ADC and sevensome division pompousness lowlife be portd to 8051 to obtain a digital readout of the input potency.A 31/2 digit high end voltmeter will be added soon. ADC0804 is the ADC and AT89S51 is the controller utilise in this get off. Before attempting this project, go through these projects Interfacing ADC to 8051 and Interfacing seven portion display to 8051 which will give you a severe idea on the basics.Circuit diagram.0-5 digital voltmeter victimisation 8051About the circuit.In the circuit Vref/2 (pin9) of the ADC is left open and it means that the input voltage span elicit be o to 5V and the step size will be 5/255 = 19.6mV. The equation for the digital output of ADC0804 is Dout = Vin/Step size. In this circuit, for an input voltage of 1V the digital output will be 1/19.6mV = 51 and so the binary equivalent of 51 ie 00110011.Digital output of the ADC is interfaced to P1.0 of the microcontroller. experience signals for the ADC ie CS, RD, WR and INTR are available from the P3.7, P3.6, P3.5 and P3.4 pins of the microcontroller respectively. 2 digit multiplexed seven segment display is interfaced to Port0 of the microcontroller. Control signals for the display driver transistors Q1 and Q2 are obtained from P3.2 and P3.1 of the microcontroller. Push push switch S1, capacitor C2 and resistor R10 forms a debouncing reset circuitry.Program.ORG 00HMOV P1,11111111BMOV P0,00000000BMOV P3,00000000BMOV DPTR,LABEL primary(prenominal) CLR P3.7SETB P3.6CLR P3.5SETB P3.5WAIT JB P3.4,WAITCLR P3.7CLR P3.6MOV A,P1MOV B,10DDIV ABMOV B,2DMUL ABMOV B,10DDIV ABSETB P3.2ACALL displayMOV P0,AACALL abideMOV P0,1000000 0BACALL outrideMOV A,BCLR P3.2SETB P3.1ACALL DISPLAYMOV P0,AACALL keepCLR P3.1SJMP MAIN match MOV R3,02HDEL1 MOV R2,0FAHDEL2 DJNZ R2,DEL2DJNZ R3,DEL1 dowseDISPLAY MOVC A,A+DPTRRETLABEL DB 3FHDB 06HDB 5BHDB 4FHDB 66HDB 6DHDB 7DHDB 07HDB 7FHDB 6FH stopping pointAbout the political programme.At first the program controls the ADC to produce a digital output corresponding to the input voltage.This digital output is scanned through P1.0 and is ladened to accumulator. accordingly the value in the accumulator is divided by 10 to omit the last digit. For example, let the input voltage be 4V. Then the corresponding digital output of the ADC will be 204D (D stands for decimal) . subsequently the the division by 10, the value left in the accumulator will be 20D. This 20D is and then multiplied by 2D which results in 40D.The next target of the program is to manipulate this 40D and make a 4.0 readout on the display. For this the 40D is again divided by 10D . This results in 4 inside accumu lator and 0 inside B register. Then the program gets the digit drive pattern for 4 use the lookup table , puts this pattern on Port 0 and activates Q1. After 1 ms delay 10000000B is loaded to P0 and this accounts for the dot.After a provided 1ms delay Q1 is deactivated, content in B (ie 0) is moved to A, gets the correct digit drive pattern for 0 employ the lookup table, puts this pattern on Port 0 and activates Q2. After a further 1ms delay Q2 is deactivated and the replete(p) cycle is repeated.8051 Microcontroller Projects & CircuitsadminFebruary 1 20138 CommentsIn this article we are listing all the projects and circuits we charter developed using the 8051 micro controller. We have tested all of these projects in our lab and verified the turn overing . Allthese projects are made to crystalize a real world requirement or problem. Engineering students & some other diploma students will bechance these projects useful for their mini project and primary(prenominal) projec t requirements.All the 8051 projects listed to a lower place are made using the 8051 tractable microcontroller from Atmel AT89S51. We have disposed the correct circuit diagram, working and package jurisprudence (in conference language) for each and every project. You can use all of them freely for your project & learning requirements. In case you are using a controller other than AT89S51 please be sure to check the computer hardware of your controller and compare it with that of AT89S51.This is necessary because we have developed all the package in assembly language. If you are not that good at assembly language, you can convert the software into C language & use it with each compliant 8051 controller.Image Source1. Ultrasonic Range Finder using 8051 This project as the name says, is an application to measure distance of an object. It uses an supersonic transducer module HC-SR04 to measure the distance and the controller AT89S51 to make the necessary processing. This proj ect can be employ to make applications like Automotive position sensor, Obstacle warning systems, Terrain monitoring robots etc. This ultrasonic range picket can measure distances upto 2.5 meters with an verity of 1 cm.2. Digital Tachometer using 8051 This project is a digital tachometer which can be used to measure the revolutions per second of any object like a rotating rove or a disc or a shaft. This application create using 8051 micro controller can measure upto 255 revolutions/second with an accuracy of 1 rev/sec. This application has 3 important usances 1) is the optical getaway designed to pick the revolutions of the object using a photo transistor and LED. 2) is the processing stage designed using 8051 and the associated software 3) is the display section using 7 segment displays.3. Water Level Controller using 8051 This is unrivalled of the most popularproject we have published using 8051 controller. This water level controller monitors the level of the over hea d ice chest and automatically switches on the water pump when ever the level goes below a preset limit. The level of the over head tank is indicated using 5 leds and the pump is switched of when the over head tank is filled. We have given an illustrated circuit diagram with working explained in detail. You will also find the software codes written in assemble language.4. Voltmeter using 8051 We all moldiness have used a multimeter from our young days. Have you ever bothered to create one ? So here is one such an raise project. A Voltmeter using 8051 micro controller. Even though its quiet transparent and an easy to make one, you shall find it really interesting. This can be used as an application at the mini project level for design and diploma students.This digital voltmeter can measure 0 to 5 volts and has a sensitivity of 200mV which is a bit low but this project is meant for demonstrating how an ADC and seven segment display can be interfaced to 8051 to obtain a digital re adout of the input voltage. ADC0804 is the ADC and AT89S51 is the controller used in this project.5. Thermometer using 8051 This is an interesting project designed to measure temperature using 8051. Its a simple 0-100C digital thermometer with 1C resolution using 8051. The circuit is based on LM35 analog temperature sensor, ADC0804 and AT89S51 microcontroller. LM35 is an analogue temperature sensor IC which can measure a temperature range of -55 to 150C. Its output voltage varies 10mV per C change in temperature.Knowledge Resources- The articles below given are basics on how to work with 8051 micro controller. You can refer them if you come across a passageway block anywhere1. Interfacing 7 segment display to 8051 A good tutorial on interfacing 7 segment display to 8051 micro controller.2. Interfacing liquid crystal display display to 8051 Explains how to interface a 162 LCD display with 8051 micro controller.3. Interfacing DC ride to 8051 Explains how to interface a DC motor with 8051 micro controller.4. Interfacing push freeing switch to 8051 Interfacing LED & Push button switch to 8051 micro controller.5. Interfacing ADC to 8051 This articles gives you a good detail on how to interface ADC to 8051 micro controller. ADC 0804 is used to explain the interfacing procedure with an example software routine.8 channel light chaser using 8051adminMay 10 201210 Comments6 function 8 channel light chaser using 8051. A 6 function 8 channel light chaser using 8051 is shown here. The hardware and software of this circuit are very simple and the light functions gets repeated one after another automatically. P1.0 to P1.7 of the microcontroller (AT89S51) are assigned as the output pins. fit LEDs are connected to the output pins through 1K current limiting resistors (R1 to R8). The period by which the output pins (P1.0 to P1.7) goes high and low is determined by the program and the LEDs follow this sequence. Circuit diagram of the 6 function chaser using 8051 is s hown below.6 function light chaser using 8051Program.START MOV A,80HMOV R7,07HMOV P1,ALCALL DELAYLABEL1 RR AMOV P1,ALCALL DELAYDJNZ R7,LABEL1MOV R7,07HLABEL2 RL AMOV P1,ALCALL DELAYDJNZ R7,LABEL2MOV P1,81HLCALL DELAYMOV P1,42HLCALL DELAYMOV P1,24HLCALL DELAYMOV P1,18HLCALL DELAYMOV P1,0FFHLCALL DELAYMOV P1,00HLCALL DELAYMOV A,80HMOV P1,ALCALL DELAYMOV R7,07HLABEL3 SETB CRRC AMOV P1,ALCALL DELAYDJNZ R7,LABEL3MOv P1,00HLCALL DELAYMOV A,0AAHMOV P1,ALCALL DELAYCPL AMOV P1,ALCALL DELAYLJMP STARTDELAY MOV R4,03HWAIT1 MOV R3,00HWAIT2 MOV R2,00HWAIT3 DJNZ R2,WAIT3DJNZ R3,WAIT2DJNZ R4,WAIT1RETEND
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.