Digital voltmeter using 8051 microcontroller essay

Download This Paper

Analog voltmeter using 8051 microcontroller.  Automatic railway door control 8051 microcontroller employ  adminOctober – 4 – 20127 CommentsVoltmeter using 8051.  A basic 0-5V voltmeter using 8051 is shown in this article. This digital voltmeter has a tenderness of 200mV which is a bit low nevertheless this task is meant pertaining to demonstrating just how an ADC and seven segment screen can be interfaced to 8051 to obtain a digital readout of the input volts.

A 31/2 digit high end voltmeter will be added shortly. ADC0804 may be the ADC and AT89S51 is definitely the controller found in this task.

Before attempting this project, move through these jobs Interfacing ADC to 8051 and Interfacing seven part display to 8051 which will give you a good idea on the fundamentals.

Circuit diagram.

0-5 digital voltmeter employing 8051

About the circuit.  In the signal Vref/2 (pin9) of the ADC is kept open and it means which the input ac electricity span could be o to 5V plus the step size will be 5/255 = 19. 6mV. The equation to get the digital output of ADC0804 is Dout sama dengan Vin/Step size.

With this circuit, pertaining to an suggestions voltage of 1V the digital output will be 1/19. 6mV = 51 and so the binary comparative of 51 ie 00110011.

Digital outcome of the ADC is interfaced to P1. 0 from the microcontroller. Control signals to get the ADC ie CS, RD, WR and INTR are available from the P3. 7, P3. 6, P3. 5 and P3. 4 buy-ins of the microcontroller respectively. two digit multiplexed seven section display can be interfaced to Port0 with the microcontroller. Control signals for the display driver transistors Q1 and Q2 happen to be obtained from P3. 2 and P3. one of the microcontroller. Drive button swap S1, capacitor C2 and resistor R10 forms a debouncing reset circuitry.

Software.

ORG 00H

MOV P1, #11111111B

MOV P0, #00000000B

MOV P3, #00000000B

MOV DPTR, #LABEL

MAIN: CLR P3. 7

SETB P3. six

CLR P3. a few

SETB P3. a few

WAIT: JB P3. 4, HANG ON

CLR P3. several

CLR P3. 6

PORT A, P1

PORT B, #10D

DIV AB

MOV M, #2D

MUL ABDOMINAL

PORT B, #10D

DIV AB

SETB P3. 2

ACALL DISPLAY

PORT P0, A

ACALL DELAY

MOV P0, #10000000B

ACALL DELAY

PORT A, N

CLR P3. a couple of

SETB P3. 1

ACALL DISPLAY

MOV P0, A

ACALL WAIT

CLR P3. one particular

SJMP MAIN

DELAY: PORT R3, #02H

DEL1: MOV R2, #0FAH

DEL2: DJNZ R2, DEL2

DJNZ R3, DEL1

S�

DISPLAY: MOVC A, @A+DPTR

RET

LABEL: DEUTSCHE BAHN 3FH

DB 06H

DB 5BH

DB 4FH

DEUTSCHE BAHN 66H

DB 6DH

DB 7DH

DB 07H

DB 7FH

DB 6FH

END

About this program.

In the beginning the program controls the ADC to produce a digital output matching to the type voltage. This digital end result is sought through P1. 0 which is loaded to accumulator. Then a value inside the accumulator is divided by 10 to omit the past digit. For instance , let the input voltage become 4V. Then a corresponding digital output with the ADC will probably be 204D (D stands for decimal). After the the division by 10, the value left in the accumulator will be 20D. This kind of 20D can then be multiplied by simply 2D resulting in 40D.

The next target with the program is usually to manipulate this 40D and make a 4. zero readout within the display. For this the 40D is again divided simply by 10D. This kind of results in 5 inside accumulator and zero inside M register. Then the program gets the digit travel pattern pertaining to 4 using the lookup desk, puts this pattern about Port 0 and activates Q1. Following 1 ms delay 10000000B is packed to P0 and this accounts for the dot.

After a further more 1ms hold off Q1 is usually deactivated, articles in M (ie 0) is moved to A, provides the correct number drive pattern for zero using the lookup table, places this style on Dock 0 and activates Q2. After a even more 1ms delay Q2 is definitely deactivated plus the entire routine is repeated.

8051 Microcontroller Projects & Circuits adminFebruary – 1 – 20138 CommentsIn this article our company is listing each of the projects and circuits we now have developed making use of the 8051 mini controller. We certainly have tested all these projects within our lab and verified the working. All these tasks are made to fix a real universe requirement or problem. Executive students & other diploma students will see these tasks useful for all their mini job and key project requirements.

All the 8051 projects listed here are made using the 8051 up to date microcontroller via Atmel – AT89S51. We have given the best circuit plan, working and software code (in set up language) for each and every and every job. You can use all of them freely for your project & learning requirements. In case you are by using a controller other than AT89S51 – please be certain to check the hardware of your control and evaluate it get back of AT89S51.

This is important because we now have developed each of the software in assembly dialect. If you are not really that good in assembly vocabulary, you can convert the software into C terminology & make use of it with any kind of compliant 8051 controller.

Graphic Source

1 . Ultrasonic Rangefinder using 8051 – This project as the term says, is usually an application to measure length of an object. It uses a great ultrasonic transducer module HC-SR04 to gauge the distance and the controller AT89S51 to make the necessary processing. This project may be used to make applications like Vehicle parking sensor, Obstacle warning systems, Terrain monitoring programs etc . This ultrasonic rangefinder can assess distances upto 2 . five meters with an accuracy and reliability of 1 cm.

2 . Digital Tachometer employing 8051 – This task is a digital tachometer that can be used to measure the revolutions per second of any thing like a revolving wheel or possibly a disc or possibly a shaft. This kind of application built using 8051 micro controller can evaluate upto 255 revolutions/second with an precision of 1 rev/sec. This app has 3 important sections – 1) is the optic pickup created to pick the revolutions of the subject using a image transistor and LED. 2) is the control stage designed using 8051 and the associated software 3) is the screen section applying 7 portion displays.

a few. Water Level Controller using 8051 – This really is one of the most popular project we have posted using 8051 controller. This water level controller monitors the degree of the more than head reservoir and automatically switches on the water pump whenever the level will go below a preset limit. The level of the over brain tank can be indicated applying 5 leds and the pump is changed of when the over mind tank full. We have offered an illustrated circuit diagram with working explained in depth. You will also find the software rules written in assemble dialect.

4. Analog voltmeter using 8051 – We all must have applied a multimeter from our small days. Have you ever ever bothered to create a single? So here is one such an appealing project. A Voltmeter applying 8051 mini controller. Although its silent simple and a simpleto\ make one, you shall find it important. This can be utilized as a credit card applicatoin at the tiny project level for engineering and degree students.

This kind of digital analog voltmeter can assess 0 to 5 volts and has a awareness of 200mV which is a little bit low yet this project is meant intended for demonstrating how an ADC and several segment display can be interfaced to 8051 to obtain a digital readout in the input ac electricity. ADC0804 may be the ADC and AT89S51 is a controller employed in this project.

5. Thermometer using 8051 – This can be an interesting job designed to assess temperature employing 8051. The a simple 0-100°C digital thermometer with 1°C resolution employing 8051. The circuit is founded on LM35 analog temperature sensor, ADC0804 and AT89S51 microcontroller. LM35 is usually an analogue temperature messf�hler IC which could measure a temperature variety of -55 to 150°C. It is output volt quality varies 10mV per °C change in heat.

Knowledge Assets: – The articles under given are basics approach work with 8051 micro control mechanism. You can refer them in the event you come across a street block anywhere!

1 . Interfacing 7 section display to 8051 – A good guide on interfacing 7 section display to 8051 micro controller.

2 . Interfacing Lcd-display to 8051 – Talks about how to software a 16×2 LCD display with 8051 tiny controller.

3. Interfacing POWER motor to 8051 – Explains how to interface a DC electric motor with 8051 micro control mechanism.

4. Interfacing push press button switch to 8051 – Interfacing LED & Push press button switch to 8051 micro controller.

5. Interfacing ADC to 8051 – This content articles gives you a good detail on how to interface ADC to 8051 micro control. ADC 0804 is used to explain the interfacing procedure with an example computer software routine.

eight channel light chaser employing 8051

adminMay – 10 – 201210 Comments6 function almost eight channel mild chaser applying 8051. A 6 function 8 funnel light chaser using 8051 is shown here. The hardware and software with this circuit are extremely simple and the light functions gets repeated one particular after one other automatically. P1. 0 to P1. six of the microcontroller (AT89S51) happen to be assigned while the output limits.

Corresponding LEDs are connected to the output buy-ins through 1K current constraining resistors (R1 to R8). The series by which the output pins (P1. 0 to P1. 7) goes everywhere is determined by the program and the LEDs follow this kind of sequence. Circuit diagram with the 6 function chaser employing 8051 is definitely shown beneath.

6 function light chaser using 8051

Program.

START: MOV A, #80H

MOV R7, #07H

MOV P1, A

LCALL DELAY

LABEL1: RR A

MOV P1, A

LCALL HOLD OFF

DJNZ R7, LABEL1

MOV R7, #07H

LABEL2: RL A

PORT P1, A

LCALL DELAY

DJNZ R7, LABEL2

MOV P1, #81H

LCALL DELAY

MOV P1, #42H

LCALL DELAY

MOV P1, #24H

LCALL DELAY

MOV P1, #18H

LCALL DELAY

MOV P1, #0FFH

LCALL DELAY

MOV P1, #00H

LCALL DELAY

MOV A, #80H

MOV P1, A

LCALL WAIT

MOV R7, #07H

LABEL3: SETB C

RRC A

MOV P1, A

LCALL DELAY

DJNZ R7, LABEL3

Port P1, #00H

LCALL DELAY

MOV A, #0AAH

MOV P1, A

LCALL POSTPONE

CPL A

MOV P1, A

LCALL DELAY

LJMP START

DELAY: MOV R4, #03H

WAIT1: MOV R3, #00H

WAIT2: MOV R2, #00H

WAIT3: DJNZ R2, WAIT3

DJNZ R3, WAIT2

DJNZ R4, WAIT1

RET

END

one particular

Need writing help?

We can write an essay on your own custom topics!