Go Down

Topic: How to change 5 DC volts from Arduino into +/- 5 volts (Read 1 time) previous topic - next topic

zaciatok

Hi everyone:
I would like to ask you how is it possible to change the output voltage from arduino (5 DCV) into a +/- 5 DCV?
Thank you for your help.

johnwasser

You can use a DC-to-DC converter to convert between almost any two DC voltages.

The TI PT5022 can produce -5V from +4.75V to +7V

Datasheet: http://www.ti.com/lit/ds/symlink/pt5021.pdf

Note that the MINIMUM current output is 1/4 Amp.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

zaciatok

Thank you for your response. So, the problem I have is as follows.
I have an input voltage, for example 5 DCV, which will be applied for 2 minutes. So I would like to obtain an output voltage oscillating between -5 and +5 volts. How can I get that ? is it possible ?
I have no experience with electronics, but I need to do that for my school project.
Thank you.

johnwasser

I think you will have to be way more specific than "oscillating".  What frequency?  What waveform?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

zaciatok

Hello my friend:
So the waveform can be for example v=5sin(2*pi*frequency), frequency=3Hz.
Using arduino is I think impossible to get an oscillating voltage between +/- 5 volts. Because the  arduino output voltage is from 0 to 5 volts.
Any data acquisition card has that possibility but is veeery expensive. I can't pay that :(
How can I resolve my problem using arduino?
or there is not solution?
thank you for your help my friend.

johnwasser

You could use two pins to get a +/-5V signal:

For values > 0 set the positive pin HIGH and the negative pin LOW.

For values < 0 set the positive pin LOW and the negative pin HIGH.

Note that Arduino doesn't have a D/A converter.  You will have to use PWM and a low-pass filter to emulate an analog output.  Alternatively you could use an external D/A converter.

You should probably use a look-up table for the sine wave.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

zaciatok

Hi my friend:
what do you mean by negative pin ? is it GND ? , I have tried tuning a negative value for analogWrite --- PWM pin 9; but it just can send a maximum voltage around 4.96 volts. In other words, It is not possible to get a negative voltage directly from arduino. I think it is necessary to design an external circuit to obtain that value. But I have no idea about how to do it.
Waiting for responses :D
thanks for your help :)

johnwasser


what do you mean by negative pin ? is it GND ?


Pick any PWM output pin for the negative pin.

Pick any other PWM output pin for the positive pin.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

michinyon

You could probably devise a circuit using an opamp with a positive and negative supply  and then use the arduino to apply simulated sine waves to the positive and negative inputs alternately.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy