element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Dev to Dev
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: YT2095
  • Date Created: 14 Feb 2012 3:06 PM Date Created
  • Views 837 views
  • Likes 2 likes
  • Comments 6 comments
Related
Recommended

Dev to Dev

YT2095
YT2095
14 Feb 2012

I`m not Quite sure Where to start here, as some of you may already know from my last couple of blogs, I`v been working with the Duinomite board(s), and have one of these mounted on a breadboard (Kind of?), and of course this allows me to mess about quite nicely.

also some of you May remember that I have a Long-term project in mind involving A to D and D to A, and subsequent data manipulation (playing with Binary functions), to get something interesting out of it in way of Radio.

now DO NOT be put off by the word "Radio" this whole project is being kept as Generic as possible and open to Anyone, with reasonably easy to build kit! I have No desire to lose anyone, go over heads, or keep that Application specific that it would be useless to you unless you were me! image

here`s a pic of a Very simple D to A convertor, it uses a plain old R2R ladder network fired by a single 74245 buffer chip.

you Can use a 74244 if you want, but the 245 lends itself nicely in its pinout to through and though wiring, that`s the only reason I used it.

so yeah, here`s tho top from one angle:

 

image

 

and here`s another angle:

 

image

 

the cap nearest the IC is simple decoupling, the other is part of a Low-Pass filter for really High frequencies, as is the inductor at the rightmost side of the parts. the 330 Ohm resistor is simply for the LED, and Yes, some of you Old `uns will recognise that it`s a Very early LED when ther bases used to be metal (it was a nicer red too!), I just put that on there for old times sake as I love LEDs and the old ones take me back a bit image

 

for those that like Bottoms, I present This:

 

image

Yeah, No probably not at all what you thought it was going to be eh! image

 

so yeah, a bit of Arduino code to drive this sucker would be great, Right?

 

well I can`t do that I as it won1t let me cut/pste anything into here (unless it`s a website), but it IS being worked oh

 

here`s a pic of the D to A being driven by an Arduino Nano (a gift from Farnell):

 

image

now That (to me anyway) looks pretty darn Linear!

Not bad for £2 worth of 1% resistors, now I`m rubbish at maths, but I`ll try expalin My logic here, I went for 20K resistors and bought 200 of them (a penny each), I worked on a resolution 250 (yeah I know it`s 256 really) to keep the maths simple, so I got 250 into 20,000 made 80, So I needed a tollerance of 80 Ohms, 1% at 20K is 200 Ohms, so it was time to drag out the test meter and check each one and put them into piles according to their real values.

[a word to the wise, DO make sure you have a Fresh battery in your meter when testing!]

 

having done so, I soldered them in according to the R2R formula, and used still the same batch of 20k resistors in Parallel to make the R (mitigating by 50% any further error in values). hence the upright parts doubled up.

 

(you Could use 5% carbons too, but you would need to buy More and thus have more to test to get matching values)

 

so we have an Ardiono nano, making waves on a homemade D to A, but the titles Dev to Dev... Why?

 

well here`s the Full setup:

 

image

 

 

and NOW it all ties in Nicely, the Duinomite is actually working as the Oscilloscope for the D to A that`s driven by the Arduino.

 

Case solved Dr Watson!

 

 

oh yeah, I will post the code for each When I can figure out HOW image

  • Sign in to reply
  • DAB
    DAB over 13 years ago in reply to YT2095

    Sounds good.  I am mostly looking in the audio spectrum, so your design is probably more than fast enough for that.

     

    Thanks

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • YT2095
    YT2095 over 13 years ago in reply to DAB

    no not really as my main use for this will be Audio and low frequency RF. the only Real bottleneck to frquency will be that of the 74245 and the slew rate of the voltage follower op-amp (not implemented or shown yet).

    but high speed versions of each can be had for pennies anyway.

    theoreticaly the speed should be near infinite with just the R2R, until of course you start getting capacitance issues across the tracks and wire/track length starts forming standing waves, but that`s nothing to worry about for me who will be happy with anything up about 20MHz image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 13 years ago

    Neat.

    Have you begun to look at timing issues yet?  I would be interested to see what level of output frequency you can sustain with this design.

    I might use something similar in my lightning research as I get to the point where I may want to generate sound from different lightning directions and angles.

     

    Plus, you even used circuits I have heard of.  Yes I am also an old retread who still thinks in TTL logic.

     

    Thanks

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fustini
    fustini over 13 years ago

    Cool project - you've got me excited to try my hand at a R2R DAC.  I've only done 'dirty' DAC before for microcontroller audio generation by putting PWM output through a low pass filter.

     

    (sent you a PM about the source code pasting issue)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • YT2095
    YT2095 over 13 years ago in reply to YT2095

    10 SETPIN 1,1

    20 CLS

    30 FOR I=0 TO 479

    40 PIXEL(I,(PIN(1)*128))=1

    50 NEXT

    60 GOTO 20

     

    did it!!!!! (no idea How, but I did it!) image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube