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
      • 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 Implementing a digital Filter
  • 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
  • State Suggested Answer
  • Replies 13 replies
  • Answers 8 answers
  • Subscribers 476 subscribers
  • Views 1795 views
  • Users 0 members are here
Related

Implementing a digital Filter

farcane
farcane over 8 years ago

Hallo Guys,

 

I want to implement a digital filter using an Atmega16 Microcontroller, I am getting the Input signal from an 8 bit  ADC "AD9057" to  the Atmega 16  "port C" then I converted my input signal to ASCii Characters ( 0-128)  which are displayed in my Terminal every 1 second , but there is some noise in my output signal and I want to get rid of it, so I want to use a digital filter for this purpose, but I am confused which digital filter may I implement  to get the desired result.

 

just to give you an example:

 

When I apply a constant voltage to my  ADC analog input; I expect a  single digital output representation. but I am getting a range of data.

 

like when I apply 2 V I get a digital output  (0 - 3)

                           2.2 V I get ( 40- 44)

                           2.3 V I get ( 65-70)

                           2.5 V I get ( 118-124)

 

And in each case the desiried output should be just one value " a single digital output representation, lets say the average  " and not a range of data.

 

Any ideas for this issue?

 

regards

Imed

  • Sign in to reply
  • Cancel

Top Replies

  • manlong
    manlong over 8 years ago in reply to farcane +1 suggested
    Imed, First I think you have to add an anti-aliasing filter at the input of your ADC. The cuttoff frequency should be twice as high as the signal frequency. Regards Man Long
  • manlong
    manlong over 8 years ago in reply to michaelkellett +1 suggested
    When you input to an ADC you have to put before an anti aliasing filter. The aim is to reduce the noise. Even you want to measure DC signal. You have to filter and delete all signal above DC. The ADC acquire…
  • michaelkellett
    michaelkellett over 8 years ago in reply to manlong +1 suggested
    @ Man Long Lay I'm sorry but this is NOT the function of an anti-alias filter. The clue is in the name - an anti-alias filter is a low pass filter placed before the ADC to stop frequencies above one half…
Parents
  • vu2iti
    0 vu2iti over 6 years ago

    I think the problem is not due to noise. So you cannot "filter out" the problem.  Please check up your routine to read/ configuration of  the ADC and the hardware circuit to interface the ADC to your Micro controller.

     

    -Mani

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • vu2iti
    0 vu2iti over 6 years ago

    I think the problem is not due to noise. So you cannot "filter out" the problem.  Please check up your routine to read/ configuration of  the ADC and the hardware circuit to interface the ADC to your Micro controller.

     

    -Mani

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 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