Final year degree project for engineers Final year projects based on microcontrollers
Microcontroller based different projects abstract and source code
AT89s51 microcontroller projects Motion control
at89c2051 motor controller and other light projects
Tutorials of microcontroller 8051, A step by step easy to use self learning rapidex
Click Here to Advertise on My Blog

Friday, July 3, 2009

Interface of adc0808 with microcontroller at89c51

The ADC0808 or ADC0809 are 8 bit and 8 channel analog to digital converters and have very good results in the conversion. they are easy to use and can be used in variety of projects. Their interfacing with micro controllers like at89s51 is very simple , but they can be used with any type of microcontroller or even with direct PC parallel port through some electronics circuit. I used this chip for several time for different types of conversions, forexample temperature and pressure, load cells, differential pressure transducers which can give us even current loop of 4-20 mA, but for that purpose again current to voltage conversion circuit will be need. Here is a sample program which converts 8 analog inputs of 0-5v to digital 0-255 one by one, stores in an array of 8 number. then this data is transmitted to PC by using serial port with RS 232 on 9600 baud rate.
This program is written in Kiel c51 which include adc0809 and microcontroller 8051.
#include
unsigned char sec1,sec,adc[8],ss;
void rdadc0808(void);
void send(void);
void pause (void);
sbit eoc = P3^4;
sbit ale = P3^5;
sbit oe = P3^6;
sbit sc = P3^7;
sbit adda = P2^0;
sbit addb = P2^1;
sbit aadc = P2^2;

void timer(void) interrupt 1
{
TH0 = 0xdc;
sec1++;
if(sec10>=100)
{
rdadc();
setout();
sec1=0;
}
}
void main()
{
EA = 1;
ET0 = 1;
SCON = 0x52;
TMOD = 0x21;
TH1 = 0xfd; // 9600 baud rate
TR1 = 1;
TR0 = 1;
ES = 1;
wt = 1;
rd = 1;
en = 1;
adc = 0;
P1 = 0xff;
eoc = 1;
ale = 0;
oe = 0;
sc = 0;
while(1)
{
;
}
}
void send(void)
{
for(ss=0;ss<8;ss++) { TI = 0; SBUF = adc[ss]; while(!TI){;} } void rdadc0808(void) { for(ss=0;ss<8;ss++) { P2 = ss; pause(); ale = 1; pause(); sc = 1; pause(); ale = 0; sc = 0; while (eoc); while (!eoc); oe = 1; pause(); adc[ss] = P1; oe = 0; } void serial(void) interrupt 4 { If (RI) RI=0; } void pause(void) { unsigned int idelay ; for(idelay=0; idelay < 2500;idelay++); }

23 comments:

  1. But where is the circuit diagram of presure sensor and operational amplifier prior to adc0804?
    I am more Interested in the actual circuit diagram and then method of calibration.

    ReplyDelete
  2. What do you mean by P2=ss??

    ReplyDelete
  3. check http://engineersgarage.com/microcontroller/8051projects/interface-ADC0808-using-clock-AT89C51 for complete details on ADC0808 interfacing with ciruit, code and videos.

    ReplyDelete
  4. can you provide assembly language problem with pin connections

    ReplyDelete
  5. Can You Give me a circuit of PIC16F877A with RS232?
    Please, call me in my blog
    http://bocah-cakil.blogspot.com
    Thank U

    ReplyDelete
  6. Hey Sir,

    I have a project on 4x4 keypad interface. Can i have help? Im working on VHDL

    ReplyDelete
  7. Ok here's the thing, i also have to design my own keypad decoder and then i have a nexys2 spartan 3E board. I know a little on vhdl but.... I really need help

    ReplyDelete
  8. i will like to have the code for interfacing the microtroller and a temperature sensor coz i need to check the temperature by keying in a number, and if the temperature goes higher than that, its buzzers

    ReplyDelete
  9. by the way my email is mcanavhe@yahoo.com

    ReplyDelete
  10. @ Oshone :-
    You mentioned that you want to interface some temperature sensor with microcontroller say 8051.
    But you should know that for this you need an ADC, as the temperature sensors mostly are analog and thus can not be interfaced with microcontroller directly. The digital temperature sensor offcourse can be directly interfaced with microcontroller. Thus , you have to decide, about ADC and type of temperature sensor first. I noticed you mentioned your e-mail id, here, you can chat with me on yahoo, i try to add you on yahoo for your help, but you denied it. now ASK questions here...

    ReplyDelete
  11. Microcontroller 8051 project for final yearAugust 20, 2011 2:14 PM

    hello sir
    We are developing a project based on microcontroller 8051. we aim to Measure a DC Voltage Between 0 V and 15 V. In our project we are measuring voltage at each junction of pcb board .our adc is functioning properly now we want the voltage measured to be displayed in a lcd .could you please tell whether any conversion of adc output must be done to send the value through microcontroler to lcd.how to build Measure voltage circuit, can help me to do it‎.
    regards

    ReplyDelete
  12. @ Microcontroller 8051 project for final year degree project:
    Your project related to measure Voltmeter / Ammeter with LCD and Microcontroller 8051, is a good choice. To do this project, you to design a careful circuit which will include, OP-AMPs, ADC and voltage divided circuits, for sensing current you would have to inculde a shunt resistor. Then the analog signal will be converted to digital using analog to digital converter, for this you can use, ADC0808. The digital value read by microcontroller will be displayed on LCD.

    ReplyDelete
  13. at89s51 has inbuilt adc right then why are we using adc interfacing saparately

    ReplyDelete
  14. @ Naveen (Builtin ADC of AT89s51 Microcontroller?):-
    Before reading this comment, What i know was that The microconroller AT89S51 donot have any builtin ADC. But, if you have read and know then send me the source or the datasheet which tell you about the builtin ADC of 8051 microcontroller.
    SEND ME ON EARLEIR POSSIBLE ok

    ReplyDelete
  15. DEAR SIR;

    I AM JUNAIDEN P. KINTO A 5HT YEAR COMPUTER ENGINEERING STUDENT OF STI-COLLEGE, ME AND MY PARTNER CHOOSEN A DEVICE THAT WILL ALLOW THE CONSUMER OF ELECTRICITY TO MONITOR HIS/HER POWER CONSUMPTION BY MEANS OF THEIR MOBILE PHONES.
    SINCE MY FOUNDATION IN MPLAB PROGRAMMING IS NOT GOOD, I WOULD LIKE TO ASK AN EXAMPLE OF CODE ON HOW TWO BLUETOOTH CAN EXCHANGE DATA TO EACH OTHER. (BLUETOOTH MODULE - MOBILE PHONE WITH BLUETOOTH)
    IM HOPING AND PRAYING THAT YOU CAN HELP ME.
    THANK YOU VERY MUCH IN ADVANCE
    HERE IS MY FACEBOOK ACCOUNT, JHO_1956YAHOO.COM

    ReplyDelete
  16. @ JUNAIDEN P. KINTO (Electricity consumpption meter):-
    You are doing a nice project, plz send me your project proposal and circuit diagram and code you have written sofar, so that i can study and give you necessary help.

    ReplyDelete
  17. can u have sms based collage notice board project if yes can u give me all data of that project plz send it on devdatta_mhaiskar@in.com

    ReplyDelete
  18. @ Anonymous (sms based collage notice board project ):-
    I donot have ready sms based collage notice board project , but i can guid you in the development of sms based collage notice board project , if you have any question and problem, ask, i know, i will reply .

    ReplyDelete
  19. sir alp code is available???

    ReplyDelete
  20. Hi i am new on this blog site and I know i am going to fint it very very helpfull. I would like some information on two things, the circuit for a heart beat monitor and the code for the pic microcontroller. The microcontroller I would like to use is a 16F628A and the circuit on http://microcontroller51.blogspot.com/2011/02/heart-rate-beats-meter-with.html is ideal for construction. Can I ask if you are friends with Dr Rana? I will also send him a message becaue I would like th parts list because with the current picture I can not make out some of the components. I would like to use a 5V/9V battery source.



    Also if the code can not be provided I would like perhaps you have code using 16F877,18F452 or 18F4550 or perhaps suggest a pic in the 16F range.



    Ideally I only have access to 16F's so would like a code to be written in either ''16F627A or 16F628A''. My email address is leidau.saytee@northmbria.ac.uk or you can also use slluggzz@hotmail.co.uk. I would really appreciate the help, I feel that I can construct it in 7 days and finish my project. The end gaol originally was to have an iMatt for babies to read their respiration/heartbeat non-invasively and txt/email/video of the baby to an iphone, android or an ip address for access wirelessly. I think it will be better for a final year project to start with this and perhaps persue that project as a masters. I really appreciate the help as I have limited time to order parts.



    Thanks again.

    ReplyDelete
  21. hello sir
    i am doing a project "automation of room" where i am planing to take inputs from temp and light sensors and control a fan and Blinds with motor.sir i am using AT89c51.
    if u can pls send me the Circuit diagram of the above mentioned .
    i am eagerly waiting for ur reply sir.Your Valued help will be a boost to me.
    thank you sir
    (shiji9970@gmail.com)

    ReplyDelete
  22. hello sir,

    I m doing a project called interfacing of GPS with MICROCONTROLLER 8051 for finding out position in terms of latitude and longitude...

    I want to know the various steps in order(including simulation steps), to proceed with my project...
    I have the following components with me...
    UC 8051, GPS receiver with antenna(rhydo electronics), MAX 232, LCD(16*2)
    plzzz help me out widdis sir....

    In urgent need of urs...

    juhi

    ReplyDelete
  23. Hi Sir,
    Actually i have one project to build.It is about voltmeter/ammeter ADC LCD using 16F876A. i already have the circuit but i'm clueless about the assembly language code. Need your advise please. Thanks. Here is my email, (flayer_shah@yahoo.com)

    ReplyDelete

Please note that my helps are not for free.
So, send me your problems and pay money for solution.ok
This is www.microcontroller51.blogspot.com comments section. Here you are requested to write your questions and problems about the microcontroller and electronics projects. Write the questions or comments in such a way that, it have all necessary information, so that i can understand and reply.If you want to send pictures and codes then e-mail me (rghkk@hotmail.com).Thanks.
All comments will be highly appriciated.

Blogroll

  • 8051 Projects
  • Microcontroller based different projects abstract and source code
    AT89s51 microcontroller projects Motion control
    at89c2051 motor controller and other light projects
    Tutorials of microcontroller 8051, A step by step easy to use self learning rapidex

    Microcontroller Forum

    Recent Comments

    About

    rs 232 and microcontrollers , 8051 intelligent robotic car gsm based digital notice board microcontroller projects+steppermotor driver, frequency counter project,TSOP1738 interfacing with AT89C51 data microcontroller 8051:data aquisition and control syatems, microcontroller interface boards, programmable interface controller ready program for rs232 interface in vb6 ,circuit diagram of car parking system for the 8051 microcontroller simple led project using 8051 with assembly language,creating a c interface between a pic and humidity sensor heart beat sensor circuit diagram,t6963 asm 89c51 free schematic,dac08,heart beat monitor with microcontroller 8051.ppt,pressure sensor digitizer,adc0802 +avr +source* -datasheet,i need project explanation of 80c51 microcontrolled based calculator,metro train prototype mini project,lcm interface circuits with 8051 microcontroller ,micro controller application example in industry ,direct logic examples sensor de presion humidity and temperature circuit ,pwm measure microcontroller ,ge sonosite diadnostic picture final project report on weather acquisition system ,82c55a to rs232 ,pc based heart beat pulse monitor microcontroller strobe led project using assemby programming 8051 motor control,ethernet microcontroller interface circuit design for temperature humidity sensor, line follower dengan mikro controller at89s51,"interface a temperature sensor lm35 with 8051 ic using an amplifier and adc 0804 ic ",lift8051 microcontroller code,dac08,heart beat sensor circuit diagram,8051 lcd,pc parelle port projects,solution de connectivité ethernet microcontroleur,t6963 asm 89c51 free schematic,89c51 microcontroller interfacing with adc 0808 data sheet,control port data port lcd,dac-08 ,stepper motor connector,moving message circuit diagrams,stepper motor configuration,c++ lesson at the at89c51,car parking design 8051,dac-08,pc to pc communication using ir transceiver with 8051 and TSOP,8051 micro controller circuit diagram,vb6 rs232,similarities and differences between the 8051 and the atmel,u-shaped photo sensor,dac0800 proteus,how to display adc data on graphic lcd,mcs51 car data acquisition,mcs51 digital automotive gauge,lcd tachometer project with pic 16f877a and micro c,lm324 analog to digital proteus,pc based data acquisition system project,max232 serial programming,max232 serial programming,mcs 8051 and glcd display models installed to run this sample.,The microcontroller AT 89S51 is serially programmed using the software ATMEL,ds1307 89c51 alarm code,16f877a pressure sensor,multiplexed port system of 8051,rs232 micro controller used in closed circuits programmed with vb,8051 heart monitor,pulse rate counter circuit diagram using micro controller,ethernet microcontroller interface circuit design for temperature humidity sensor,project schematic dac0800,industrial robot controller based on '51 microcontroller family,connect lm35 to adc, adc to 8051 and two 7-segment displays to 8051,8051 rs232 serial communication code in c,project with block diagram & circuit diagram of temperature & light monitoring & controlling,main theme of 80c51 microcontroller based calculator,solenoid valve interface with microcontroller,schematic line follower mikrokontroler at89s51,home monitoring system using 8051 c programming,zero crossing triac power control pump,gambar diagram serial port,t6963 asm 89c51 free schematic,address counter lcd interface,t6963c circuit,Electronic meters for power calculation of electricity consumption,adc0808 intel 8051,microcontroller and lcd interface,inductive proximity sensor connect microcontroller,8051, data logger 24c16,interfacing remote to microcontroller pic16f877a.h,pictures for memory orgnization of at89c51 micro controller,frequency counter with atmel flow chart,serial optical microcontroller,pulse width measurement,software codes using keil c compiler for final year projects,micro 7448 7 segment,seminar ppt-8051in automobiles,mcs 51 lcd asm interface a temp. sensor lm35 ic with 8051 using an amplifier and adc0804 with sehematic diagram?,lcd 8051,"stepper motor wires,"what is zero crossing" diac,8051 8255 chip helps,interface a dc motor with 8051 microcontroller to control the speed using a dac with diagram?,keil c51 uploading data from computer,manometer sensor i2c,temperature control using pwm and 89c51,1-wire command 8051 + assembly,keil c51 uploading data from computer,adc converter assembly program,c code for lm35 by use microprocessor,dc motor control site:www.the-crankshaft.info,micro controller clock,microcontroller valve,pdf form of electronic mini project circuit diagram based om sensor,speed detection circuits of high speed vechicles using controller 8051 and sensors,stepper motor wire, interfacing of 8051 with 4511,microcontroller lpc2148 based noise control algorithm for external signals,pin diagram of adc,mini ECG schematic diagram,interfacing of 8051 with 4511,1-wire slave,data acquisition using 8051,definition and description of automatic irrigation system,microcontroller lpc2148 based noise control algorithm,using 89c51 heart bit monitoring system,SPI INTERFACE diagrama de recorrido de sensor de latido de corazón, t6963 asm 89c51 libre esquemático, dac08, monitor de latido de corazón con microregulador 8051.ppt, digitizador de sensor de presión, adc0802 avr source*-datasheet, tengo que proyectar la explicación de 80c51 microcontroló la calculadora basada, prototipo de tren de metro proyecto mini Интерфейс Двигатель постоянного тока с 8051 микроконтроллер для управления скоростью с помощью ЦАП с диаграммой?, Keil C51 загрузки данных с вашего компьютера, манометр i2c датчик контроля температуры использованием ШИМ и 89C51 8051 + 0,1 командной провода сборки, Keil C51 загрузки данных с вашего компьютера , ADC программе сборки преобразователя, C код для использования микропроцессора LM35, DC сайте управления двигателем: www.the-crankshaft.info, микро часы контроллера, микроконтроллера клапан, PDF форме электронных схем проекта мини 如何显示图形LCD,汽车数据采集MCS51的,MCS51的车载数字仪表,转速表项目液晶与ADC日期石化16F877A微型和C,变形LM324的模拟到数字的,基于PC的数据采集系统项目,编程序列的MAX232,串行编程的MAX232,单片机8051 Glcd显示模式,安装运行此示例。中,AT 89S51单片机串行编程软件使用ATMEL公司と液晶グラフィックLCDを、車のデータ集録MCS51、MCS51自動車デジタルゲージ、タコプロジェクトの表示方法のADCの日付は、デジタル、PCベースのデータ集録システムプロジェクト、プログラミングMAX232と、MAX232のシリアルプログラミングシリアル、16F877Aは、マイクロおよびcプロテウスLM324アナログ写真mcsの8051 Glcdディスプレイモデルは、このサンプルを実行するためにインストールされています。は、AT 89S51マイクロコントローラは、シリアルソフトウェアをアトメル使用してプログラムされている lm324 voltage capacity,microcontroller 8051,.bas code rs232 to at89c2051 dot matrix,4 digits 7 segment led circuit 8051, generating frequency using 8051 circuit diagram,how to write controller by c,6 pin electrical clip,8051 based projects using keil software,8051 serial communication to pc, 8255 led driver images developing an acquisition and control system how can we measure reactance using 8051 controller i2c 8051 humidity sensor i2c 8051 humidity sensor sht,microcontroller 8051 rotabit GPS and GSM based Car locator,Send and Receive SMS Keil C code,Play music with 8051 microcontroller,LED dot matrix display using AT89C52 Interfacing GPS with 8051,Wireless keyboard with AT89S52 and nRF2401 RF module ,snake game,led lc meter snake game,LCD display,stepper motor inter facing using 8051 Top Downloads this MonthC51 code for interfacing GPS,8051 based Taximeter,GPS and GSM based Car locator, electonic code lock Send and Receive SMS Keil C code,Play music with 8051 microcontroller LED dot matrix display using AT89C52,120V light bulb on/off LCD Graphic display with AT89s51,Interfacing GPS with 8051,AT89C2051 temperature and humidity using SHT11,Ultrasonic distance meter using AT89S52 Top downloads16x128 Dot matrix moving message display,Digital Capacitance meter using AT89S52,countdown timer LCD Graphic display with AT89s51,PS2 keyboard interfacing with LCD display LED dot matrix display using AT89C52,16x64 dot-matrix LED display with Time,H bridge GPS with AT89s52 and graphics display,8051 based Taximeter,Moving message display Ultrasonic distance meter using AT89S52,simple digital voltmeter with c programming GPS with 8051 digital alaram clock 8x8 Running Texts Display sooxma technologies ,embedded systems projects at home ,interfacing 8051 with gsm modem , projects for enginnering students , android bluetooth "controller area network" ,speedometer as motor vehicle safety system microcontroller ,robotic project,prepaid electricity live monitoring ,ieee papers on gps navigation for the blind , gsm-based prepaid electricity system temperature sensor using 8051,lm324 and lm35,Temperature level monitoring in boilers using 8051 microcontroller,experiment board in instrumentation and control through the PC parallel port,TSOP 1738 interfacing with AT89C51 ,TSOP1738 interfacing with AT89C51 pdf ,solenod valve ,8051project.com ,Temperature controller using DS1820 and LCD displayTemperature controller using DS1820 and LCD display ,Interfacings of Automatic room light controller with visitor counter ,automatic plant irrigation ,TSOP1738 interfacing with AT89C51 synopsis of Lcd interfacer using 8051 microcontroller mini project with circuit diagram 8x8 led display interfacing with microcontroller data acuasition system pwm based speed control of ac motor using 8051 controller with abstract heart rate pic sms based digital notice board real time clock using 8051 microcontroller vb lpt stepermotor assembly code for lcd connected to 8051 mini project on temp controleer with ckt diagram free download 6 wires stepper motor adc0804 lpt assemply language programs with 8051 automatic-plant-watering switch buzzer diagram arrows with pic16f84 forward reverse swr meter frequency control with microcontroller esquematic electronic detector high voltage ic principle diagram 89s51 interface between gps and microcontroller velocity +adc interfacing automatic car parking system circuit triac used with pwm designing pressure sensor as student project microcontroller to drive motors interfacing adc 0809 to 89c51 videos pic microcontroller projects, level gauge 6 wire stepper motor wiring connection home monitoring system with temperature sensing and motion control using pic atmega control board sample code isolation amplifier circuit diagram using 4n33 microcontroller web emulators air fue; rartio meter with pic mcu project with schematic circuit diagram of 8086 microprocessor project microcontroller at89c51 based voting machine moving message oxygen transducer servo symbol list of components in automated carparking simple interfacing projects with microcontroller 8051 microcontroller based moving message display temperature indicator circuit using microcontroller lcd interfacing with 8051 pdf temperature sensor 8051 lcd automatic plant irrigation at89c2051 temperature how to add effect on asm display with 89s52 vhdl ttl module heart beat monitor with wave on lcd 8051 based moving message display : 89c51 micro controller led matrix www.the basic programming of edsim 8051(design of lift using flow chart) automated irrigation controle system using 8051 circut dia gram 8051 memory organization circuit layout of an automayic irrigation system ir led and ldr based heartbeat monitor with display on computer