Pages: [1]   Go Down
Author Topic: can i kreate 2 Khz -1/1 V signal some how with an arduino ?  (Read 521 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 1
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 !
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 !
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 637
Posts: 34579
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 504
Posts: 19095
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@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.
Logged


Pages: [1]   Go Up
Jump to: