Go Down

Topic: can i kreate 2 Khz -1/1 V signal some how with an arduino ? (Read 573 times) previous topic - next topic

kourpetis

i have an Arduino mega and i want to create 2 Khz -1/1 v sine waves !

can i do it ? and how ?

thank you very much !

retrolefty


i have an Arduino mega and i want to create 2 Khz -1/1 v sine waves !

Not directly as AVR chips only use ground and positive Vcc voltages, so not possible to create a negative output voltage directly. And as it has no true analog output functions it cannot even generate a +1vdc output directly. External components and/or modules would be required.

can i do it ? and how ?

I would look for a bipolar DAC module that uses I2C or SPI communications to work with the arduino. Possibly something like this:
http://www.maximintegrated.com/datasheet/index.mvp/id/4241?utm_expid=50713806-2&utm_referrer=http%3A%2F%2Fwww.google.com%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Dbipolar%2520dac%26source%3Dweb%26cd%3D3%26sqi%3D2%26ved%3D0CEsQFjAC%26url%3Dhttp%253A%252F%252Fwww.maximintegrated.com%252Fdatasheet%252Findex.mvp%252Fid%252F4241%26ei%3DcZ_MULjxN-nj2QWcu4DwBg%26usg%3DAFQjCNHkhHxZOaZ5F7zprRW7fWm8rJILRQ

Lefty


thank you very much !

dhenry

Quote
can i do it ?


Yes.

Quote
and how ?


1) run the mcu at 2v, generate a 0-2v pulse and put a capacitor on the output. On the other side of the capacitor,  you have a -1 / +1 Vpp pulse;

2) if you have to run the mcu at a higher value, you can use a 2v zener / led to limit its swing down to 2v.

Grumpy_Mike

Please grow up dhenry you are lowering the standards of the whole forum:-
Quote
run the mcu at 2v,

Except you can't.

Quote
generate a 0-2v pulse and put a capacitor on the output

The guy is asking for a sin wave output -
Quote
you can use a 2v zener / led to limit its swing down to 2v.

For a Sin wave?

questions are always easy to answer if you don't read the question.

Nick Gammon

@henry: Please be serious. You can't run the Arduino Mega at 2V, because it has a 16 MHz crystal or resonator. Plus you could hardly do that without an external power supply, as the USB in, and regulated voltage in, run at 5V.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up