Go to Post I owe a debt, as many FIRSTers do, to the entire organization as a whole. Every team, every student, every person involved has help make FIRST what it is today. This is my Thank You. ~Anonymous - BandChick [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2007, 21:04
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Digital to Analog Converters

I know some teams have successfully used them to interface to the OI before.

Can some one give provide me with some recommendations for some simple to program, cheap D/A converters?

This is going to be used to interface a custom circuit to the OI.

Thanks
  #2   Spotlight this post!  
Unread 06-02-2007, 22:15
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Digital to Analog Converters

You might want to look at how team 862 interfaced a playstation controller. Their whitepaper says what components they used.

You could also look at Microchip's digital pots.

I don't have any experience with the microchip parts, but I think they should work.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 07-02-2007, 00:25
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Digital to Analog Converters

There are a variety of DACs that you can build using discrete ICs, or even just resistors. Google things like "R-2R" or "Weighted Resistor DAC".

All the same, I do suggest that you look into digital pots if they fit your application...it will save you some time.
  #4   Spotlight this post!  
Unread 07-02-2007, 00:48
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Digital to Analog Converters

AD looks like a good place to start.
http://www.analog.com/en/cat/0,2878,761,00.html
  #5   Spotlight this post!  
Unread 07-02-2007, 01:18
Tatsu Tatsu is offline
Audiophile and Physicist.
AKA: Tatsu Hashimoto
FRC #1072 (Harker Robotics Team)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Woodside
Posts: 49
Tatsu will become famous soon enough
Send a message via AIM to Tatsu
Re: Digital to Analog Converters

Drop me a PM if you'd like. we just implemented a I2c->Analog sensor interface using the AD8652. It's a really easy to use R-2R dac which outputs the binary value from 1mv -> 4095 mV in 12 bits.

Also, if you have PIC programming capability, you could use a I2C / SPI dac and get better performance... not that it matters with the 8 bit OI ADC.
  #6   Spotlight this post!  
Unread 07-02-2007, 09:34
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Digital to Analog Converters

It depends on how much resolution you need, but the easiest way to do an 8-bit D/A is to use a PWM channel and an RC filter. Just be sure the time constant of the filter is much larger than the period of the PWM signal. You can do a search on the internet to find examples of a PWM/RC D/A.
__________________
-
An ounce of perception is worth a pound of obscure.
  #7   Spotlight this post!  
Unread 07-02-2007, 22:52
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Digital to Analog Converters

Thanks everyone.

I really don't have the time to develop much hardware(soldering up a whole string of registers). I want to use this system this year, and the deadline is approaching fast...

I do have access to PICs with SPI or I2C interface, in fact, that is what I intend to use. I would like to have a 4 channel output to be able to take advantage of one full port(able to send 4 bytes at a time)

I am looking at D/A converters because I need the full range. Its going to be used for data communications(analog port is the only legal way to get to the RC from the OI). Some one on one of the other threads said that digital pots have a +/- 30% resistance variability so...

I was looking at some Maxim DACs, and they seem like they would get the job done. Any specific suggestions on what types or features I should be looking for? I just need something that I can get going with fast!

Thanks
  #8   Spotlight this post!  
Unread 08-02-2007, 00:16
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Digital to Analog Converters

If you are indeed doing this on the OI, keep in mind that you are limited to a MAXIMUM of 100mA from the 4 joystick ports combined, and these are the only legal power sources for your OI components (the Chicklet is the exception to this rule).

That's going to mean that whatever you design has to be very low power.
  #9   Spotlight this post!  
Unread 08-02-2007, 00:49
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Digital to Analog Converters

Quote:
Originally Posted by Abwehr View Post
If you are indeed doing this on the OI, keep in mind that you are limited to a MAXIMUM of 100mA from the 4 joystick ports combined, and these are the only legal power sources for your OI components (the Chicklet is the exception to this rule).

That's going to mean that whatever you design has to be very low power.
I thought it was 100mA per port! How much power does each individual joystick pull?

I am going to put an LCD on there without back lighting so it should only pull about 30mA and the PIC and MAX232 should pull about 20mA so I think it will work.

It will be sweet if it works though...
  #10   Spotlight this post!  
Unread 08-02-2007, 11:49
Tatsu Tatsu is offline
Audiophile and Physicist.
AKA: Tatsu Hashimoto
FRC #1072 (Harker Robotics Team)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Woodside
Posts: 49
Tatsu will become famous soon enough
Send a message via AIM to Tatsu
Re: Digital to Analog Converters

Why not just use one of Analog's serial input quad DACs and bitbang the outputs? you could probably get a quad dac working faster that way than writing your own I2C stuff (unless you're already odne this, in which case its a moot point..)
  #11   Spotlight this post!  
Unread 08-02-2007, 22:11
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Digital to Analog Converters

Quote:
Originally Posted by Tatsu View Post
Why not just use one of Analog's serial input quad DACs and bitbang the outputs? you could probably get a quad dac working faster that way than writing your own I2C stuff (unless you're already odne this, in which case its a moot point..)

Do you think this will get the job done? Are there any special characteristics that I should be looking for?
  #12   Spotlight this post!  
Unread 08-02-2007, 23:27
Tatsu Tatsu is offline
Audiophile and Physicist.
AKA: Tatsu Hashimoto
FRC #1072 (Harker Robotics Team)
Team Role: Leadership
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Woodside
Posts: 49
Tatsu will become famous soon enough
Send a message via AIM to Tatsu
Re: Digital to Analog Converters

that looks good. SPI is a plus, as PICs have SPI support built in (usually).. 8 bit quads are good since the OI is 8 bit (last I remember anyway) what you picked seems ideal to me. PM me if you have any problems.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital to OI Analog marcan Control System 33 05-02-2007 12:46
Analog to Digital Conversion Help Der Rowan Programming 4 23-01-2006 00:17
Accelerometer: Analog or Digital? psquared Programming 2 10-02-2005 16:38
Analog / Digital IO Connectors Aidan F. Browne Control System 4 06-02-2005 22:26
Analog vs Digital inputs? f22flyboy Programming 8 08-11-2002 22:18


All times are GMT -5. The time now is 00:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi