Jump to content


Photo

Convert Arduino PWM 5V to analog output 0-10V


  • Please log in to reply
2 replies to this topic

#1
ghiro

ghiro

    Nano Reefer

  • Members
  • 1 posts
  • Joined 19 Mar 2010

Hi,

I want to convert the Arduino PWM output that is in the range of 0 - 5V to an analog output in the range of 0-10V.

I have uploaded the circuit I have designed.

The circuit can be divided in two parts:

1) An RC filter to get an analog output from the PWM signal that Arduino outputs. I have read some information about this kind of filters and it's seems that there is a rule that establish the relation between the time constant of the RC filter and the period of the PWM signal: the RC time contant should be greater than the period. In my case the time constant is 100 times greater.

2) An operational amplifier with a gain of 2 to obtain the output in the range of 0-10V.

I have made some test with the circuit and seems to work properly but I don't have much experience with electronics so I would be grateful if someone can check if the design is correct.

Thanks in advance.

Ghiro

Attached Thumbnails

  • circuito.png

Edited by ghiro, 19 March 2010 - 02:16 PM.


#2
Vancouver Reefer

Vancouver Reefer

    Nano Reefer

  • Members
  • 213 posts
  • Joined 25 Nov 2008
  • Kenora, ON
This has been covered here:

http://www.nano-reef...l=arduino 0-10v

:D

3295388379_d9e601fa5f.jpg

 

 

 

 

 

 

 


The Ultimate DIY Aquarium Controller of the 21st Century!!!


LED's, PH, Salinity, Clock, LCD, ATO, Auto Water Changer, Variable Speed Cooling Fan Control and lots, lots more......



View My Build Here........

 

 

aquarium2031.png

 


#3
neanderthalman

neanderthalman

    Two hands working can do more than a thousand clasped in prayer.

  • Members
  • 10,943 posts
  • Joined 11 Mar 2005
  • Pickering, ON

This has been covered here:

http://www.nano-reef...l=arduino 0-10v

:D


:happydance:

Ghiro, you included some 'extra' components, I'm curious if maybe you have made an improvement. R6 and C2 - what is the purpose? Current limiting on the arduino output and.....stability from C2? ??



Edit - read it again. This is actually a slightly different circuit (I think). The other guy was looking to convert an analog 0-5V signal to 0-10V. This converts a 5V PWM signal to 0-10V analog. If he was converting a PWM signal, then it wasn't really made clear.

Nice Ghiro. Welcome to NR.

Edited by neanderthalman, 21 March 2010 - 06:48 AM.

Posted Image
^^New Coral 2010-03-27^^

Posted Image

I looked down her shirt. *shrug* I ain't gay or nothin', but it's boobs. It's what you do.