Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
slow_rider
PostPosted: Apr 22, 2012 - 11:03 AM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

I have an application where I need a control voltage (needs to be accurate) from 1.2V to 5.16V. This goes over the capability of the AVR. Note - I don't want to run the AVR on a positive low rail to lift the 5v range up, although this could probably solve the problem but this means all the circuit that communicated with the AVR should also be adjustment and this is without talking about programming and debugging interfaces.

Mu initial idea is to use a summing amplifier and add a constant offset to the AVR output. The problem is that I can use only opamps that have some offset voltage and no adjustment terminals.

Any suggestions?


1.2V to 5.16V
 
 View user's profile Send private message  
Reply with quote Back to top
jayjay1974
PostPosted: Apr 22, 2012 - 11:23 AM
Raving lunatic


Joined: Oct 30, 2002
Posts: 5720
Location: The Netherlands

Feed the AVR PWM output to some CMOS 4000 gate that runs at 6V or so and let that gate drive the filter; or simply tie the filter to the AVR output and use an opamp to both amplify and add an offset to the signal (weighted summing amplifier).

I don't see the need for the 1.2V offset, unless you want to use absolutely all PWM bits for the whole range for maximum resolution.

What voltages are available?
 
 View user's profile Send private message  
Reply with quote Back to top
slow_rider
PostPosted: Apr 22, 2012 - 11:28 AM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

jayjay1974 wrote:
Feed the AVR PWM output to some CMOS 4000 gate that runs at 6V or so and let that gate drive the filter; or simply tie the filter to the AVR output and use an opamp to both amplify and add an offset to the signal (weighted summing amplifier).

I don't see the need for the 1.2V offset, unless you want to use absolutely all PWM bits for the whole range for maximum resolution.

What voltages are available?


I have 5V and 9V available. 1.2V offset can be added using a non-inverting summing amplifier, however I am a little concerned about the voltage offset added by the TL074. And I need a pretty good resolution, 33mV to be exact.
 
 View user's profile Send private message  
Reply with quote Back to top
theusch
PostPosted: Apr 22, 2012 - 04:35 PM
10k+ Postman


Joined: Feb 19, 2001
Posts: 25909
Location: Wisconsin USA

Quote:

This goes over the capability of the AVR.

Umm--not exactly.
Quote:

I have 5V and 9V available.

Make your 5.0V 5.5V, and Bob's your uncle.
 
 View user's profile Send private message  
Reply with quote Back to top
slow_rider
PostPosted: Apr 23, 2012 - 04:11 PM
Resident


Joined: Feb 16, 2007
Posts: 698
Location: Israel

jayjay1974 wrote:
Feed the AVR PWM output to some CMOS 4000 gate that runs at 6V or so and let that gate drive the filter; or simply tie the filter to the AVR output and use an opamp to both amplify and add an offset to the signal (weighted summing amplifier).

I don't see the need for the 1.2V offset, unless you want to use absolutely all PWM bits for the whole range for maximum resolution.

What voltages are available?


After doing some other adjustment to the circuit, the control voltage range is now 3.84V to 7.8V. I tried bread-boarding a summing amplifier but my supply is 9V and the opamp is not rail to rail (cheap tl071). I will try the CMOS solution...
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits