element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
The Learning Circuit
  • Challenges & Projects
  • element14 presents
  • The Learning Circuit
  • More
  • Cancel
The Learning Circuit
Documents The Learning Circuit 96: Making a 12 bit DAC Using an Arduino
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
The Learning Circuit requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
Author: tariq.ahmad
Date Created: 24 Aug 2021 1:10 PM
Last Updated: 24 Aug 2021 1:15 PM
Views: 887
Likes: 7
Comments: 5
Related
Recommended

The Learning Circuit 96: Making a 12 bit DAC Using an Arduino

element14 presents
Making a 12 bit DAC Using an Arduino

The Learning Circuit | element14 presents |  Project Videos

 

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

 

Once analog signals have been processed by electronics and converted to digital, to convert them back to analog, a DAC is needed. In this video, Karen shows how to make an R-2R Ladder DAC using just resistors, all of the same value. The ladder uses 12 of the digital I/O on an Arduino Uno as its inputs. While the Ladder DAC will be 12-bit, Karen is able to use it to show the differences in resolution between a 4-bit, 6-bit, 8-bit, and 12-bit DAC, generating a sine wave as a visual demonstration.

 

Bill of Material:

 

Product NameManufacturerQuantityBuy KitBuy Kit
Through Hole Resistor, 1 kohm, 500 mW, ± 1%TT ELECTRONICS / WELWYN36Buy NowBuy Now
Breadboard, MCM 60 rows, ABS, 8.5mm, 165mm x 56mmMULTICOMP1Buy NowBuy Now
Arduino Uno SMD, ATmega328 MCUArduino1Buy NowBuy Now
Wire Kit, Jumper, Male to Male, Solderless, 100 mm - 250 mm, 75 PieceMCM1Buy NowBuy Now
MULTICOMP PRO USB Cable, Type A Plug to Type B Plug, 0.91 m, 3 ft, USB 2.0, BeigeMULTICOMP PRO1Buy NowBuy Now

 

Additional Parts:

 

Product Name

Computer for programming

  • digital
  • sine wave
  • port manipulation
  • converter
  • resolution
  • e14_makerkaren
  • conversion
  • arduino
  • analog
  • Share
  • History
  • More
  • Cancel
Anonymous

Top Comments

  • DAB
    DAB 8 months ago +1

    Very good episode Karen.

     

    You did a great job of showing ADC resolution issues and how they affect the information you can pull out of an analog circuit.

     

    DAB

  • makerkaren
    makerkaren 7 months ago in reply to koudelad

    That's.....a really good point. I'm not really sure. I'd have to have someone that knows Arduino code better than I, take a look at the code and see if there's anything that is reducing the visual output. But yeah, you're right. It looks like there are fewer steps than the full resolution each time. Hmmmmm.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • koudelad
    koudelad 7 months ago in reply to makerkaren

    At 5:04 at the video, you adjust the code to 4 bit resolution of the DAC. However, at 5:20, there are only 4 voltage levels. That is where I would expect to see 16 voltage levels, as you described.

     

    At 5:29 the code is adjusted to 6 bits, which should produce 64 different voltage level, however, I can only see 16.

     

    Or maybe I got something wrong...

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • makerkaren
    makerkaren 7 months ago in reply to koudelad

    I'm not exactly sure which part you're talking about. But, while a 4-bit DAC has a resolution of 16, we only see 4 bits of data. Each bit can be high(on) or low(off). Doing the math for the possible combinations of each bit being on or off, we get 16 possibilities.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • koudelad
    koudelad 8 months ago

    Nice video including the output presentation.

     

    One question - how is it possible that using 4 bits there are only 4 visible voltage values (I would expect 16 steps including 0 V) and using 6 bit there are 16 voltage values (I would expect 64 including 0V)?

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • DAB
    DAB 8 months ago

    Very good episode Karen.

     

    You did a great job of showing ADC resolution issues and how they affect the information you can pull out of an analog circuit.

     

    DAB

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube