Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

A/D to PWM

A/D to PWM

2004-06-22 by p_anglum

I'm using a Tiny 15 to convert a 0-10 volt input to PWM output.
I use a voltage divider (10K - 10K) to scale the 0-10 down to 0-5 
before applying it to PB3(ADC3).

Everything seems to work except at the lowest range of input voltage 
the A/D seems to always read some small voltage.  In fact, with my 0-
10V input removed and only the voltage divider on the input to to 
ADC3 I read about .9 volts on ADC3.  It appears the source of the 
voltage is the ADC3 pin itself.  Any ideas?
(All voltage measurements were made in refernce to pin4 - GND on the 
Tiny15)

Re: A/D to PWM

2004-06-23 by Jeremy Brandon

--- In AVR-Chat@yahoogroups.com, "p_anglum" <p_anglum@h...> wrote:
> I'm using a Tiny 15 to convert a 0-10 volt input to PWM output.
> I use a voltage divider (10K - 10K) to scale the 0-10 down to 0-5 
> before applying it to PB3(ADC3).
> Everything seems to work except at the lowest range of input 
voltage 
> the A/D seems to always read some small voltage.

Have you accidently activated the pullup on PB3? With a 50k pullup 
and your 10k to ground, that would give about 0.9v. Jeremy.

Re: A/D to PWM

2004-06-23 by Jeremy Brandon

Yes I can.
I understand you can foretell the future.
About four years.
How long have you been able to do that?

Sorry! Jeremy.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.