Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

ADC result in Three Decimal point

Status
Not open for further replies.
Here is one kind of hardware multiplier Capture.png

If there were 8x8 bits instead of 2x2... Just imagine how big it needs to be..
 
Dear rogers,
Could you please guide me how did you get this 5115

Thanks in advance
The max ADC count (which corresponds to 5V if that is your reference) of a 10bit ADC is 1023. Multiply by 5 samples and you have 5 x 1023 = 5115 counts.
 
Dear dougy83,

5 x 1023 = 5115 is now understand

"Multiply by 5 samples'

Why it should say "samples "

Please advice
 
Dear dougy83,

5 x 1023 = 5115 is now understand

"Multiply by 5 samples'

Why it should say "samples "

Please advice

Because that is what it is known as You sample the voltage on the ADC module

Assume 2.5 volts

Sample 1 = 511
add sample 2 = 1023
add sample 3 = 1534
add sample 4 = 2045
last sample 5 = 2556

Insert the decimal place 2.556 ( a little high perhaps )... But a whole lot easier..
 
hi micro,
A way I use is a simple resistive divider in the ADC input.

It drops the 5V down to 4.88V, which gives an ADC count of 1000 for 5V.

Then add 5 readings to give 5000 for 5Vinp.

E
 
hi micro,
A way I use is a simple resistive divider in the ADC input.

It drops the 5V down to 4.88V, which gives an ADC count of 1000 for 5V.

Then add 5 readings to give 5000 for 5Vinp.

E

Yep!!! Good Idea..
 
This is really interesting, Thank you so much

hi,
Use 1% resistors or a 500R trim pot for the 240R

You have not said what the output impedance of your 5V test source is.???
 

Attachments

  • AAesp01.gif
    AAesp01.gif
    3.4 KB · Views: 172
hi,
Use 1% resistors or a 500R trim pot for the 240R

You have not said what the output impedance of your 5V test source is.???

Dear ericgibbs,

Thanks for the reply

As per datasheet the impedance is The maximum recommended
impedance for analog sources is 2.5 kΩ.

I think in the picture it shows as "RS"

It would be much appreciated if you can explain more theory related to the picture

ADC REFF.JPG

Thanks in advance
 
It would be much appreciated if you can explain more theory related to the picture
Hi,
I did this LTSpice simulation some time ago in order to show the effect of RS [Source Impedance] and the sampling time, when the ADC input was a 0V to 5V step voltage.

Some PIC's are recommended for use at a 2k5 or a 10K maximum value of RS.

The attached sim plot shows a RS of 1R thru 12500R in 2500R increments.

The question I asked you was, what is your expected RS value.?

Basically what are you using the ADC for.??

E,
 

Attachments

  • AAesp01.gif
    AAesp01.gif
    44.8 KB · Views: 177
Hi,


The question I asked you was, what is your expected RS value.?


E,

Dear ericgibbs thanks for the reply

I used 100k variable resistor for ADC, RIGHT pin for VCC and LEFT pin for GND and middle pin to RA2 of PIC ( Analog input)

Please advice
 
...I used 100k variable resistor for ADC, RIGHT pin for VCC and LEFT pin for GND and middle pin to RA2 of PIC ( Analog input)

Please advice

With the pot wiper at the middle, the Thevenin equivalent circuit is a 2.5V source in series with a 50K resistor (half the pot value). This clearly violates the maximum 10K source resistance spec for the PIC's A/D input pin. You should use a pot no higher than 20K. Note that the worst case spot as the wiper is moved occurs at the half resistance point.
 
hi micropad,

What is the application for the ADC measurement.?

Examples: AC waveforms such Audio signals,,, DC levels such as batteries or power supplies.

Its important that we know what is the expected result from the PIC's ADC when used in the way you intend to measure which type of signal/s.

E.
 
With the pot wiper at the middle, the Thevenin equivalent circuit is a 2.5V source in series with a 50K resistor (half the pot value). This clearly violates the maximum 10K source resistance spec for the PIC's A/D input pin.

Dear MikeMl, Thanks for the reply

I drown a simple circuit which connected to RA PIN. Finally we have to find the Th-evening Equivalent cct.Values using Maths.

In my drowning three resisters represent single pot wiper

Can you please advice, I am in correct tract

Please advice
Thanks in advance

th.JPG
 
As long as you're only using one analogue input then there's no real concern about the source impedance - the problem isn't the input impedance of the pin, but the time it takes to discharge or charge the sample and hold capacitor via the source impedance. This only really causes problems if you're switching between different inputs, you have to allow substantial time delays for the charging/discharging to fully take place.

But as you're just using a pot, why not use a sensible value one anyway? (4.7K/5K would be good).
 
As long as you're only using one analogue input then there's no real concern about the source impedance - the problem isn't the input impedance of the pin, but the time it takes to discharge or charge the sample and hold capacitor via the source impedance. This only really causes problems if you're switching between different inputs, you have to allow substantial time delays for the charging/discharging to fully take place.

But as you're just using a pot, why not use a sensible value one anyway? (4.7K/5K would be good).

Dear Nigel Thanks for the reply and advice.
Actually I try to implement and understand the The Thevenin theorem using real practical situation which is we learnt in the class room as a theory. In the above my post 56, I tried to drown a equivalent circuit related to preset. What do you think
Am I in the correct drowning??

Please advice
Thanks in advance
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top