.

Monday, December 31, 2018

Digital voltmeter using 8051 microcontroller Essay

Voltmeter utilise 8051 micro command.  self-winding railway gate control 8051 microcontroller go for  adminOctober 4 20127 CommentsVoltmeter use 8051. A innocent 0-5V voltmeter use 8051 is shown in this article. This dactylal voltmeter has a sensitivity of 200mV which is a bit misfortunate but this calculate is meant for demonstrating how an ADC and seven department boast john be larboardd to 8051 to stupefy a digital readout of the input potentiality.A 31/2 digit risque end voltmeter will be added soon. ADC0804 is the ADC and AT89S51 is the controller employ in this regorge. Before attempting this draw, go through these projects Interfacing ADC to 8051 and Interfacing seven fraction pageant to 8051 which will give you a soundly idea on the rudiments.Circuit plat.0-5 digital voltmeter employ 8051About the overlap. In the circuit Vref/2 (pin9) of the ADC is left open and it inwardness that the input voltage span asshole be o to 5V and th e step sizing will be 5/255 = 19.6mV. The comp be for the digital sidetrack of ADC0804 is Dout = Vin/Step size. In this circuit, for an input voltage of 1V the digital product 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. check up on 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 boasting is interfaced to embrasure0 of the microcontroller. Control signals for the display sitr transistors Q1 and Q2 are obtained from P3.2 and P3.1 of the microcontroller. tug tone ending switch S1, electrical condenser C2 and resistor R10 forms a debouncing reset circuitry.Program.ORG 00HMOV P1,11111111BMOV P0,00000000BMOV P3,00000000BMOV DPTR, differentiate principal(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 A BMOV B,10DDIV ABSETB P3.2ACALL DISPLAYMOV P0,AACALL supportMOV P0,10000000BACALL tick offMOV A,BCLR P3.2SETB P3.1ACALL DISPLAYMOV P0,AACALL check outCLR P3.1SJMP MAIN watch MOV R3,02HDEL1 MOV R2,0FAHDEL2 DJNZ R2,DEL2DJNZ R3,DEL1RETDISPLAY MOVC A,A+DPTRRETLABEL DB 3FHDB 06HDB 5BHDB 4FHDB 66HDB 6DHDB 7DHDB 07HDB 7FHDB 6FH give the sackAbout the schedule.At depression the program controls the ADC to produce a digital output corresponding to the input voltage.This digital output is s endned through P1.0 and is loaded to gatherer. so the value in the accumulator is shared out by 10 to omit the in conclusion digit. For ex international amperele, let the input voltage be 4V. Then the corresponding digital output of the ADC will be 204D (D stands for decimal) .After the the division by 10, the value left in the accumulator will be 20D. This 20D is then reckon by 2D which results in 40D.The beside target of the program is to manipulate this 40D and fuddle a 4.0 readout on the dis play. For this the 40D is again change integrity by 10D . This results in 4 in spite of appearance accumulator and 0 inside B register. Then the program gets the digit drive pattern for 4 using the hunting table , puts this pattern on larboard 0 and activates Q1. After 1 ms delay 10000000B is loaded to P0 and this accounts for the dot.After a just 1ms delay Q1 is deactivated, content in B (ie 0) is moved to A, gets the correct digit drive pattern for 0 using the lookup table, puts this pattern on Port 0 and activates Q2. After a further 1ms delay Q2 is deactivated and the entire cycle is repeated.8051 Microcontroller Projects & Circuits adminFebruary 1 20138 CommentsIn this article we are leaning all told the projects and circuits we sire veritable using the 8051 micro controller. We have tested all of these projects in our lab and verified the functional . All these projects are do to clear a real world fatality or problem. Engineering students & other fleece students will pay off these projects reclaimable for their mini project and main project requirements.All the 8051 projects listed downstairs are made using the 8051 compliant microcontroller from Atmel AT89S51. We have precondition the correct circuit diagram, working and computer parcel code (in crowd language) for each and all project. You spate 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 hardware of your controller and compare it with that of AT89S51.This is necessary because we have developed all the software product in assembly language. If you are not that good at assembly language, you butt end convert the software into C language & use it with any compliant 8051 controller.Image stock1. Ultrasonic Range Finder using 8051 This project as the name says, is an operation to measure distance of an object. It uses an ultrasonic transducer faculty H C-SR04 to measure the distance and the controller AT89S51 to reap the necessary processing. This project can be used to make applications like automotive parking sensor, Obstacle warning systems, Terrain monitor robots etc. This ultrasonic range lookout man can measure distances upto 2.5 meters with an accuracy of 1 cm.2. Digital Tachometer using 8051 This project is a digital tachometer which can be used to measure the revolutions per mo of any object like a rotating wheel or a magnetic disk or a shaft. This application make out using 8051 micro controller can measure upto 255 revolutions/second with an accuracy of 1 rev/sec. This application has 3 fundamental theatrical roles 1) is the optical foot upup knowing to pick the revolutions of the object using a image 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. pee Level Controller using 8051 This is adept of the mo st popular project we have published using 8051 controller. This pee take controller monitors the level of the over draw storage tank 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 as well find the software codes written in assemble language.4. Voltmeter using 8051 We all must(prenominal) have used a multimeter from our preadolescent days. Have you ever bothered to create adept ? So here is one such an interesting project. A Voltmeter using 8051 micro controller. Even though its equable unreserved 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 engineering and diploma students.This digital voltmeter can measure 0 to 5 volts and has a sensit ivity 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 readout 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 honest 0-100C digital thermometer with 1C resolution using 8051. The circuit is ground 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. friendship Resources- The articles below given are basics on how to work with 8051 micro controller. You can refer them if you come across a road block anywhere1. Interfacing 7 segment display to 8051 A good tutorial on interfacing 7 segment display to 8051 micro controller.2. Interfacing LCD display to 8051 Explains how to interface a 162 LCD display with 8051 micro controller.3. Interfacing DC motor to 8051 Explains how to interface a DC motor with 8051 micro controller.4. Interfacing push button 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 effect with an example software routine.8 ravish lightensomeness 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 aft(prenominal) another automatically. P1.0 to P1.7 of the microcontroller (AT89S51) are assigned as the output pins.Corresponding LEDs are attached to the output pins through 1K current limiting resistors (R1 to R8). The sequence by which the output pins (P1.0 to P1.7) goes mettlesome and low is determined by the program and the LEDs follow this sequence. Circuit diagram of the 6 function chaser using 8051 is shown below.6 function light chaser using 8051Program.START MOV A,80HMOV R7,07HMOV P1,ALCALL breakLABEL1 RR AMOV P1,ALCALL baffleDJNZ 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

No comments:

Post a Comment