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
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Tricky Voltages
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 493 subscribers
  • Views 365 views
  • Users 0 members are here
Related

Tricky Voltages

JohnDSiviter
JohnDSiviter over 15 years ago

Encounted a little problem, sure its easy to solve, I have an audio signal (2.5v) which I wish to feed into the ADC port pins of a pic32mx, now on the face of it it seems I need to attenuate the signal then add a DC level; shifting the waveform above zero. I believe I need to do this to keep it within the cofines of the 0v to 3.3v input?

  • Sign in to reply
  • Cancel
Parents
  • Jorge_Garcia
    Jorge_Garcia over 15 years ago

    Hi John,

     

    You are correct, you're goint to have to add a DC bias to the signal, and make sure that the peak to peak voltage of the signal does not exceed 3.3V. Neither of the two requirements should be much of a problem.

     

    First scaling, I don't know your signal source but assuming it from a sensor of some sort then you could lower the gain of your analog front end to make sure the input to the ADC will not have a peak to peak voltage greater than 3.3V.

     

    Changing the DC Bias is also very simple you can do it using a simple RC circuit with a twist. I've included a picture to show you, first we have a series capacitor which is used to block any DC in your ac signal. Now instead of referencing the resistor to ground you reference the resistor to the desired bias level (1.65 is 3.3/2). Using superposition it is easy to prove that input to the ADC is the sum of your AC signal plus the bias voltage.

     

    hth,

    Jorge Garciaimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jhaddy
    jhaddy over 15 years ago in reply to Jorge_Garcia

    ..don't worry if you don't happen to have a power supply rail at 1V65. You could instead use two (equal value) resistors: one to Vcc and one to 0V. You need to be aware, though, that any noise on the Vcc line will turn up at your ADC pin too. Using two resistors means that the impedance at the junction is the parallel combination of the pair, so if you're calculating the filter roll-off characteristic for your AC block you need to use Reffective = R/2.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JohnDSiviter
    JohnDSiviter over 15 years ago in reply to jhaddy

    Thanks jhaddy and Jorge, you confirmed my thoughts, thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • JohnDSiviter
    JohnDSiviter over 15 years ago in reply to jhaddy

    Thanks jhaddy and Jorge, you confirmed my thoughts, thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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 © 2026 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