0-10V output from microcontroller

Discussion in 'The Projects Forum' started by crankler, Dec 23, 2010.

  1. crankler

    Thread Starter New Member

    Dec 14, 2010
    Anyone who knows a way to produce output of 0-10 volts from at89c51 microcontroller?

    Using DAC is not a good option.

    One way i know is using pwm output from the microcontroller, smoothing the output with RC filter (0-5v out) and amplifying it with an op amp to produce 0-10v output.
    My problem is at89c51 has no pwm output pins.

    Please show some schematic..thanks..
  2. bearblock


    Oct 24, 2008
    hi crankler,

    that sounds like a pretty good idea to me.

    if you can't switch to a microcontroller with built-in pwm, you could always write your own pwm routines. this won't be as fast as hardware pwm, so you'll need to set your smoothing filter to a lower frequency, but it might be ok depending on how fast you need the output to change.

    alternatively, you could use something like this:


    it's a discrete DAC circuit, all you need is an opamp and a bunch of resistors. it does need a lot of output pins (one per bit of precision) in this basic form, but you can get around that by using a shift register IC like a 4094. this might slow things down somewhat because your microcontroller will need to send all the bits to the shift register, one by one, in order to change the output.