Need for Speed: Digital to analog converter
Hi-
We've got a laser projector we would like to interface with. Basically we can do this, but we ran into a problem, our conversions are too slow. We determined the bottleneck to be the DA we're using (MiniLab 1008 from Measurement Computing).
The need for speed goes 2 ways:
1) It seems the minilab can only handle about 100 conversion per second. We need something on the order of several (ideally about 10) Khz...
2) We have a deadline on Friday...
Is there a good fast way we can get a 0-5V, several Khz digital to analog converter? We have a Propeller if that helps.
Any suggestions are greatly appreciated[noparse]:)[/noparse]
Thanks alot
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
We've got a laser projector we would like to interface with. Basically we can do this, but we ran into a problem, our conversions are too slow. We determined the bottleneck to be the DA we're using (MiniLab 1008 from Measurement Computing).
The need for speed goes 2 ways:
1) It seems the minilab can only handle about 100 conversion per second. We need something on the order of several (ideally about 10) Khz...
2) We have a deadline on Friday...
Is there a good fast way we can get a 0-5V, several Khz digital to analog converter? We have a Propeller if that helps.
Any suggestions are greatly appreciated[noparse]:)[/noparse]
Thanks alot
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
Comments
It's almost military grade..... Cheers!!!!!!!!!
MAX189
Regards,
Lefteris,
GReece
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Rule your destiny.... Be Good.... Be Bad.... Be Tricky!!!
LiPo.... Nice batteries, but hard to use?
No prob...
www.societyofrobots.com/member_tutorials/node/302
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Choose!!!!!!
http://www.analog.com/en/digital-to-analog-converters/da-converters/products/index.html
Lefteris, Greece
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Rule your destiny.... Be Good.... Be Bad.... Be Tricky!!!
LiPo.... Nice batteries, but hard to use?
No prob...
www.societyofrobots.com/member_tutorials/node/302
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
Here is a read on it.
http://www.bitechnologies.com/pdfs/resistorladder.pdf
Post Edit --
http://forums.parallax.com/attachment.php?attachmentid=41213
Post Edited (PJ Allen) : 2/25/2009 12:46:51 AM GMT
In the first, all the resistors are of different values.· It's a current source, so you need an op-amp to make it a voltage source.
In the second, there are only two values of resistance (this is called an R-2R ladder)·and it doesn't necessarily need an op-amp, but it needs more resistors, the load must be constant, and the output·voltage depends on the load.·
There are many other ways to buld a cheap DA.· In these particular circuits, if the inputs (MSB through LSB) are microcomputer outputs, the accuracy, linearity, and differential linearity, and even the monotonicity,·depend on close matching of the characteristics of the output pins that are feeding it.· Probably it's OK for outputs of a single chip if the value of R is not so small that the output impedance of the pin, which is in series after all, affects the value.· Or, in the second circuit, you could use 2(R+Zpin) if the pin impedance is known.·
Anyway, if you don't need pinpoint accuracy and want to save money, give these a try.
If you're short of pins, there are various ways of deriving multiple outputs from fewer pins (shift registers, 3-to-8 decoders, etc.).
The first circuit is as fast as the op-amp you use, and the second is as fast as stray capacitances will allow it to be.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Post Edited (Carl Hayes) : 2/25/2009 2:29:04 AM GMT
you could use 2(R+Zpin) if the pin impedance is known
but since it is the 2R, not the R, that is in series with the pin internal impedance, I should have said
you could use (2R-Zpin) if the pin impedance is known
and in either case the bottom resistor ("terminating" resistor) should be exactly 2R since it isn't in series with a pin impedance.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Lawson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?
Post Edited (Lawson) : 2/25/2009 4:48:16 AM GMT
The MiniLab 1008 has 28 digital IO...plenty for two channels of 12-bit resolution.
Assuming I want to go with the first circuit Carl suggested, do the resistance values matter if I follow the pattern? Seems like that's something I can put together in a couple minutes.
Also, why are we grounding the + input of the OP amp and applying the voltage to the - input? (I'm not too good with logic...sorries [noparse]:)[/noparse])
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
If all resistors are closely matched (have the same error), and you use two R resistors to make each 2R resistor, you can get 12-bit resolution.· 12-bit accuracy is a pipe dream, even with expensive commercial equipment, even in a constant-temperature oven.
The output is tied back to the negative input to give negative feedback.· The positive is tied to ground to give a reference.· With the positive at ground, the output is a negative voltage.· You could (with many op-amps) tie it to +ref (five volts, maybe, or your Vdd) to avoid going negative at the output.· In either case, the larger the input number, the more negative the output of the op-amp.
You could instead·feed the positive input and just tie the output back to the negative.· That's a follower, and will give you positive output, to which you may be more accustomed.
I'm curious -- are you doing audio?· That requires pretty good resolution, but not much accuracy.· It also requires good linearity.· It doesn't require very good differential linearity, which is a good thing, because differential linearity is very diffficult to achieve at high speeds.
Actually, you don't really need the op-amp, even with the first circuit, if your load is·linear.··For the first circuit, you might use, say,·2K on MSB, 4K on the next, etc., all the way to 4.096 megohms on the LSB.· You see the problem with circuit one.
With circuit two, you could use 37 identical 1K resistors (using two of them in series for each 2K), much easier to buy, and more likely to be matched if all purchased in a batch.
It's cheap and easy to try, anyway.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Post Edited (Carl Hayes) : 2/25/2009 7:10:37 AM GMT
I don't actually know the load the projector presents, but I assume it's some sort of logic-drivable circuitry. Technically the input is +-10V on each channel. but since our projection space is limited anyway, we can get by with 0-5V (first quadrant only).
I'll give it a try with method 2 then, I suppose.
Thanks!
Rafael
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You've got to play the game.
You can't win.
You can't break even, except on a very cold day.
It doesn't get that cold.
~Laws of Thermodynamics~
Lawson
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Lunch cures all problems! have you had lunch?
Post Edited (Lawson) : 2/25/2009 3:48:28 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Geez... are you free to discuss your laser set up? There are some medical apps out there[noparse]:)[/noparse]
Rich
http://www.analog.com/en/digital-to-analog-converters/video-encoders/adv7190/products/product.html
Post Edited (skylight) : 2/25/2009 6:03:22 PM GMT