crichardson87
Posts: 1
Joined: Wed Dec 21, 2016 1:15 pm

0-10vdc Output from a RPi

Wed Dec 21, 2016 1:19 pm

Hi,
I am after creating an adjustable output from a RPi, in the form of 0-10vdc. It is not for any current carrying task, simply to serve as an anologe input to a device(s) for testing its operation.
Is anyone able to help me!?
Thanks in advance.
Craig

W. H. Heydt
Posts: 12431
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: 0-10vdc Output from a RPi

Wed Dec 21, 2016 4:17 pm

You're going to need additional circuity. To begin with, nothing on a Pi uses anything higher than 5v. The only voltage sources available from the pins are 5v and 3.3v. So no matter what you do, you're going to need an independent voltage source and you'll want to isolate anything over 5v from the Pi. Since you just want a voltage reference, there doesn't appear to be any reason to attach a Pi at all.

ElEscalador
Posts: 839
Joined: Tue Dec 15, 2015 4:55 pm
Location: Detroit, MI USA
Contact: Website

Re: 0-10vdc Output from a RPi

Wed Dec 21, 2016 4:43 pm

By far the easiest thing to do is forget the Pi, and use either an adjustable voltage regulator hooked up to a 12-18volt power source. Look for adjustable buck converter on ebay - I think you can get one for $2 USD on ebay. Put a resistor across the output to make sure there is some place for energy to go to avoid buildup. Maybe a 10k or so.

Alternatively and possible without ordering anything, you can connect a bunch of resistors in series all hooked up to a 12 volt power source. The to vary the voltage to your device, tap off the battery terminal for one lead, and use the connection between different resistors for different voltages between 0 and 12 volts for the other lead. You get as many different voltages as you put in resistors.
Robotics tips, hacks, book extras https://youtube.com/practicalrobotics

james-at-lo-tech
Posts: 45
Joined: Sat Oct 04, 2014 1:07 pm

Re: 0-10vdc Output from a RPi

Wed Dec 21, 2016 7:18 pm

What frequency range? You could use PWM GPIO pin and an off board voltage amplifier or a ladder DAC with the same.

reted30
Posts: 25
Joined: Mon Apr 30, 2018 7:24 am

Re: 0-10vdc Output from a RPi

Mon Apr 30, 2018 7:34 am

Hey looks like I am late in this party but seriously if your issue still not resolved then you should try out this one. I was also working on same and was able get able some progress with new DAC devices

Return to “Beginners”