caramoan tour package

caramoan tour package

Author Topic: analog to digital converter ic?  (Read 1487 times)

Offline chimes27

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 2
analog to digital converter ic?
« on: April 14, 2010, 06:53:51 PM »
hello po sa lahat!.
i'm going to make a temperature controller ckt for design project subject but, hindi ko po alam kung papaano po ito gawin kaya magsisimula muna po ako kung papano e-display ang temperature sa room...

ang algorithm po na naisip ko ay..:

TEMPERATURE SENSOR( lm35) ---> ADC CONVERTER ----> MICROCONTROLLER (PIC 16F84A)-----> SEVEN SEGMENT DISPLAY 

ikokonsulta ko po sana sa mga expert dito sa elab kung ano ang adc ic na pwede gamitin para sa ckt na ito para mapag-aralan ko kung paano gamitin..


help po mga masters..

tnx!

 ;)

Philippine Electronics Forum

analog to digital converter ic?
« on: April 14, 2010, 06:53:51 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4839
  • Pogi/Ganda Points: 321
  • Gender: Male
  • Nalulunod lang...
Re: analog to digital converter ic?
« Reply #1 on: April 14, 2010, 07:05:52 PM »
ADC0804 is ok sana...
the problem is kulang ka nang pinout for the seven segment display...

250 yung 16F877a i think mas makakamura ka dito kasi di mo na kailangan nang external ADC
i think 150 pesos yung ADC0804 and 170 yung 16F84a....

sna makatulong. but great idea to start with.

Philippine Electronics Forum

Re: analog to digital converter ic?
« Reply #1 on: April 14, 2010, 07:05:52 PM »

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #2 on: April 14, 2010, 07:06:44 PM »
use a pic microcontroller with an analog input, tulad ng PIC16F628A para hindi mo na kailanganin external ADC
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Philippine Electronics Forum

Re: analog to digital converter ic?
« Reply #2 on: April 14, 2010, 07:06:44 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4839
  • Pogi/Ganda Points: 321
  • Gender: Male
  • Nalulunod lang...
Re: analog to digital converter ic?
« Reply #3 on: April 14, 2010, 07:10:55 PM »
walang ADC ang 16F628A.  use a f88 or F887a (same cost @ egizmo)

Philippine Electronics Forum

Re: analog to digital converter ic?
« Reply #3 on: April 14, 2010, 07:10:55 PM »

Offline toasted siopao

  • She loves me, she loves me not, she loves me...
  • Global Moderator
  • Gas Turbine
  • *****
  • Posts: 2585
  • Pogi/Ganda Points: 107
  • Gender: Female
    • TeknoBlogger
Re: analog to digital converter ic?
« Reply #4 on: April 14, 2010, 07:13:08 PM »
Use pic16F88, at least di mo na kailangan external oscillator, two digit lang naman siguro display mo.

Philippine Electronics Forum

Re: analog to digital converter ic?
« Reply #4 on: April 14, 2010, 07:13:08 PM »

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4839
  • Pogi/Ganda Points: 321
  • Gender: Male
  • Nalulunod lang...
Re: analog to digital converter ic?
« Reply #5 on: April 14, 2010, 07:14:07 PM »
^ i concur.

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4839
  • Pogi/Ganda Points: 321
  • Gender: Male
  • Nalulunod lang...
Re: analog to digital converter ic?
« Reply #6 on: April 14, 2010, 07:17:16 PM »
pahabol...
sa Vref kailangan mo lagyan nang potentimeter para sa calibration nang lm35. para di ka na gumamit nang opamp for amplifiying the signal.


Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #7 on: April 14, 2010, 07:19:51 PM »
walang ADC ang 16F628A.  use a f88 or F887a (same cost @ egizmo)

aww sorry, i thought meron dahil sa internal comparator nito :)

tama nga 16F88, or 18F1320 merong ADC itong mga ito
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #8 on: April 14, 2010, 07:25:00 PM »
pahabol...
sa Vref kailangan mo lagyan nang potentimeter para sa calibration nang lm35. para di ka na gumamit nang opamp for amplifiying the signal.



why not gawing VREF ung VDD
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline chimes27

  • CR2032 Battery
  • **
  • Posts: 32
  • Pogi/Ganda Points: 2
Re: analog to digital converter ic?
« Reply #9 on: April 14, 2010, 07:26:59 PM »
hindi po kasi ako familiar kung paano magprogram ng ibang microcontroller aside from 16f84a pero willing po akong matuto..
hehehe..
pareho lang po ba ang approach ng pagprogram 16f88, 16f77a at 16f84a..?


(mplab ide po ang gamit namin sa skul sa pagprogram sa 16f84a)

Offline RaffT

  • Technical People
  • Hydroelectric
  • *****
  • Posts: 3440
  • Pogi/Ganda Points: 103
  • Gender: Male
  • more on R-n-D
    • MY Bots
Re: analog to digital converter ic?
« Reply #10 on: April 14, 2010, 07:36:33 PM »
chimes, pwede din LM34/35 ->>> PIC with ADC ->>> display device (lcd or 7seg)
Learning is CooL! BEAM robotics/DIY UCD180/PSP/AC wtmtr/digiESRmtr/PICkit™2 clone/SGTC/SSTC/DR-SSTC

Never argue with an idiot... They'll take you down to their level and beat you with experience

Offline tiktak

  • Gas Turbine
  • **
  • Posts: 2864
  • Pogi/Ganda Points: 204
  • Gender: Male
    • Tiktakx's Blog
Re: analog to digital converter ic?
« Reply #11 on: April 14, 2010, 08:12:11 PM »
hindi po kasi ako familiar kung paano magprogram ng ibang microcontroller aside from 16f84a pero willing po akong matuto..
hehehe..
pareho lang po ba ang approach ng pagprogram 16f88, 16f77a at 16f84a..?


(mplab ide po ang gamit namin sa skul sa pagprogram sa 16f84a)
yup same lang nadagdag lang yung registers para sa ADC
8051 stuff

Offline marcelino

  • Moderator
  • Solar Power Satellite
  • *****
  • Posts: 6028
  • Pogi/Ganda Points: 258
  • ...keep moving forward! - Robinson's
Re: analog to digital converter ic?
« Reply #12 on: April 14, 2010, 09:48:08 PM »
i would also go with PIC with ADC implementation.

there are several projects here illustrating such implementation. to name a few...

http://www.electronicslab.ph/forum/index.php/topic,5479.0.html
http://www.electronicslab.ph/forum/index.php/topic,4191.0.html
"Don't take life seriously. After all, no one has ever come out of it alive. -Bugs Bunny"

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #13 on: April 15, 2010, 05:48:48 PM »
pahabol...
sa Vref kailangan mo lagyan nang potentimeter para sa calibration nang lm35. para di ka na gumamit nang opamp for amplifiying the signal.



gagana ang LM35 sa 5V then yung input direct na sa analog input ng pic, now i agree na dapat nga na lagyan ng additional vref pin, at potentiometer sa vref para macompensate yung magiging drop sa wire na gagamitin sa LM35
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline insomartin

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4839
  • Pogi/Ganda Points: 321
  • Gender: Male
  • Nalulunod lang...
Re: analog to digital converter ic?
« Reply #14 on: April 15, 2010, 06:14:55 PM »
^   it's more involved with the resolution rather than compensating the voltage drop.
if may error i'll stand corrected... medyo di ako magaling dito..



gamitin natin yung figure 1 from the datasheet.
FIGURE 1. Basic Centigrade Temperature Sensor
(+2°C to +150°C)
Linear + 10.0 mV/°C scale factor

and lets try to get a 8 bit value from the adc. for simplicity...
factors to consider first...
*0-255 ang dec variable from boostC
*assume that you'll measure only 0°C to 150°C

if you have a same Vref with the Vdd rail (5+)
now... 150°C * 10mv = 1500mv or 1.5volts... or 75 decimal... di mo makukuha yung fullrange nang ADC mo na 255...
you're losing so much!
0.5°C accuracy guarantee-able (at +25°C)

by lowering Vref to 1.5 volts...

150°C * 10mv = 1500mv or 1.5volts... or 255 decimal 8bit you
have the full range 0°C @ 0mV and 150°C @ 255
or in 10bit 150°C @ 1025 dec.

(it won't be linear anymore. it's more on the ADC side not THE LM35... that's where a lookup table and calibration data works.) konti lang naman... ibang topic na :)


Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #15 on: April 15, 2010, 06:22:55 PM »
^   it's more involved with the resolution rather than compensating the voltage drop.
if may error i'll stand corrected... medyo di ako magaling dito..



gamitin natin yung figure 1 from the datasheet.
FIGURE 1. Basic Centigrade Temperature Sensor
(+2°C to +150°C)
Linear + 10.0 mV/°C scale factor

and lets try to get a 8 bit value from the adc. for simplicity...
factors to consider first...
*0-255 ang dec variable from boostC
*assume that you'll measure only 0°C to 150°C

if you have a same Vref with the Vdd rail (5+)
now... 150°C * 10mv = 1500mv or 1.5volts... or 75 decimal... di mo makukuha yung fullrange nang ADC mo na 255...
you're losing so much!
0.5°C accuracy guarantee-able (at +25°C)

by lowering Vref to 1.5 volts...

150°C * 10mv = 1500mv or 1.5volts... or 255 decimal 8bit you
have the full range 0°C @ 0mV and 150°C @ 255
or in 10bit 150°C @ 1025 dec.

(it won't be linear anymore. it's more on the ADC side not THE LM35... that's where a lookup table and calibration data works.) konti lang naman... ibang topic na :)



ahhh ito pala yung tinutukoy sakin ni sir noli nung nagkita kami :)
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Offline toasted siopao

  • She loves me, she loves me not, she loves me...
  • Global Moderator
  • Gas Turbine
  • *****
  • Posts: 2585
  • Pogi/Ganda Points: 107
  • Gender: Female
    • TeknoBlogger
Re: analog to digital converter ic?
« Reply #16 on: April 15, 2010, 06:35:04 PM »
^   it's more involved with the resolution rather than compensating the voltage drop.
if may error i'll stand corrected... medyo di ako magaling dito..



gamitin natin yung figure 1 from the datasheet.
FIGURE 1. Basic Centigrade Temperature Sensor
(+2°C to +150°C)
Linear + 10.0 mV/°C scale factor

and lets try to get a 8 bit value from the adc. for simplicity...
factors to consider first...
*0-255 ang dec variable from boostC
*assume that you'll measure only 0°C to 150°C

if you have a same Vref with the Vdd rail (5+)
now... 150°C * 10mv = 1500mv or 1.5volts... or 75 decimal... di mo makukuha yung fullrange nang ADC mo na 255...
you're losing so much!
0.5°C accuracy guarantee-able (at +25°C)

by lowering Vref to 1.5 volts...

150°C * 10mv = 1500mv or 1.5volts... or 255 decimal 8bit you
have the full range 0°C @ 0mV and 150°C @ 255
or in 10bit 150°C @ 1025 dec.

(it won't be linear anymore. it's more on the ADC side not THE LM35... that's where a lookup table and calibration data works.) konti lang naman... ibang topic na :)



Vref indicates the rails of your signal to be converted.

Say your Vref is 5V and Ground, therefore your range of expected input will be between 0 to 5V, if you have a 10bit ADC, therefore 5V of input at your ADC will give you a value of 1024 1023. This means 4.88mV per bit or your ADC will increment every 4.88mV at your ADC pin.

Offline SArioDabidG.

  • Size AA Battery
  • ****
  • Posts: 124
  • Pogi/Ganda Points: 7
  • Gender: Male
  • Gawa lang ito ng tao. Kaya natin ito!
Re: analog to digital converter ic?
« Reply #17 on: April 15, 2010, 06:51:16 PM »
Yung ATmel AVR's meron ding adc pero meron siyang pins for

avcc at vref para sa adc. So you could chose your reference

voltage sa adc. Hindi ko pa po natry hanggang pic adc pa

lang ako.
"One way to back-up your codes is to post them in forums and let others store them for you."

Offline nucleus

  • Gas Turbine
  • **
  • Posts: 2573
  • Pogi/Ganda Points: 123
  • Gender: Male
Re: analog to digital converter ic?
« Reply #18 on: April 15, 2010, 07:02:59 PM »
Yung ATmel AVR's meron ding adc pero meron siyang pins for

avcc at vref para sa adc. So you could chose your reference

voltage sa adc. Hindi ko pa po natry hanggang pic adc pa

lang ako.

yes sir, pero sa pic pwede ring iset sa register kung sa VDD na lang ang vref
Hi! I'm nucleus and i carry the charge 8)

Hindi ako nandito para makipagkumpitensya kanino man

Philippine Electronics Forum

Re: analog to digital converter ic?
« Reply #18 on: April 15, 2010, 07:02:59 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com