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: Mar 13, 2012 - 08:26 PM
Resident


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

I have a port which needs to be biased with 4.5V. I'm generating 0-5V DC using PWM + LP filter and need to add that to the bias voltage. I know how to do this using a non-inverting OPAMP based summing amplifier. Any simpler way to do it?
 
 View user's profile Send private message  
Reply with quote Back to top
hugoboss
PostPosted: Mar 13, 2012 - 09:22 PM
Resident


Joined: Feb 19, 2010
Posts: 507
Location: Montreal, QC, CA

You could supply 4.5V to the AVR ground and 9.5V to its VCC, in theory it should work but I have not tried it and will not be held responsible if it burns out.
 
 View user's profile Send private message  
Reply with quote Back to top
ka7ehk
PostPosted: Mar 13, 2012 - 09:29 PM
10k+ Postman


Joined: Nov 22, 2002
Posts: 12049
Location: Tangent, OR, USA

You can use any resistor network as a (scaled) summer. The output will be some factor smaller than any input. Just N resistors for N voltages connected to a common point. The output R of the LP filter can be one of those Rs. Then, you will have Vout = K * (V1+v2+...) where K is less than 1.

Its simple voltage divider arithmetic.

If you are just trying to bias a filtered PWM signal, then use two voltage sources (often one is ground and one is some V). Make a network consisting of your filter resistor tied to the tap point of the voltage divider. Cap from the junction point of the network to ground. It is left as an exercise to figure out the resistor values.

Jim

_________________
Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA

"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
 
 View user's profile Send private message  
Reply with quote Back to top
Chuck-Rowst
PostPosted: Mar 14, 2012 - 04:03 PM
Hangaround


Joined: Jul 19, 2011
Posts: 460


slow-rider,

What exactly are you trying to accomplish here?

Is your final output 0-5 Volts? Or, 4.5 to 9.5 volts? Or another range?

Your PWM signal is 0-5 Volts from a micro GPIO pin?
 
 View user's profile Send private message  
Reply with quote Back to top
Chuck-Rowst
PostPosted: Mar 14, 2012 - 04:03 PM
Hangaround


Joined: Jul 19, 2011
Posts: 460


slow-rider,

What exactly are you trying to accomplish here?

Is your final output 0-5 Volts? Or, 4.5 to 9.5 volts? Or another range?

Your PWM signal is 0-5 Volts from a micro GPIO pin?
 
 View user's profile Send private message  
Reply with quote Back to top
jan_dc
PostPosted: Mar 14, 2012 - 04:25 PM
Hangaround


Joined: Feb 09, 2011
Posts: 322
Location: Turnhout, Belgium

hugoboss wrote:
You could supply 4.5V to the AVR ground and 9.5V to its VCC, in theory it should work but I have not tried it and will not be held responsible if it burns out.


Sure this works. You'll have 5V between GND and VCC on the AVR so no problem. You just must be sure that your output is never connected to anything lower than 4.5V

This also means that the GND is at 4.5V so anything else connected to the MCU must have approriate GND level (4.5V). And thus the whole circuit might be more complex than using an opamp.
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
slow_rider
PostPosted: Mar 18, 2012 - 12:29 PM
Resident


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

jan_dc wrote:
hugoboss wrote:
You could supply 4.5V to the AVR ground and 9.5V to its VCC, in theory it should work but I have not tried it and will not be held responsible if it burns out.


Sure this works. You'll have 5V between GND and VCC on the AVR so no problem. You just must be sure that your output is never connected to anything lower than 4.5V

This also means that the GND is at 4.5V so anything else connected to the MCU must have approriate GND level (4.5V). And thus the whole circuit might be more complex than using an opamp.


I don't really want to run the AVR's low rail on anything higher than GND level because that would mean debugging will be a nightmare if at all possible. Not to talk about having to pre-program the chip. A simple non-inverting summing amplifier for two voltages is 4 resistors and a single OA so I think I'll use that. Thanks for the help guys!
 
 View user's profile Send private message  
Reply with quote Back to top
bobgardner
PostPosted: Mar 18, 2012 - 09:36 PM
10k+ Postman


Joined: Sep 04, 2002
Posts: 21261
Location: Orlando Florida

RuggedCircuits.com has a couple dozen circuit diagrams for signal conditioning, and opamp gain and bias is one of them. Worth a look.

_________________
Imagecraft compiler user
 
 View user's profile Send private message Send e-mail Visit poster's website 
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