ADC Signal Conditioning

Low Pass Filter Analog signals typically are not ADC friendly, but they can be with some relatively simple circuitry such as a low pass filter and amplifier. The goal is to have the analog signal cover the entire range of the ADC. For example, if your input goes from 0V to 1V and your ADC measures from 0V to 3V, you will need to amplify the input to take full advantage of the ADC. Voltage scaling seems easy enough but you also need to make sure the frequencies you are measuring are low enough for your sample rate which is where filtering comes in.

A Low Pass Filter to Avoid Aliasing

For starters, it is important to understand how your sampling frequency impacts the digital version of your signal. If the sampling frequency is too low and the signal is changing too fast, the digital data will not accurately represent the analog data. So, you need to use a low pass filter to get rid of the signals that are changing too quickly. The circuit above shows a simple low pass circuit filter. The cutoff frequency is the point where less than half the power from the signal gets through. You want to choose values of R and C such that the cutoff frequency is less than half the sampling frequency (see Nyquist sampling frequency for proof).

Signal Scaling

If your signal voltage is too large, you can use a couple of resistors to make it smaller. If your signal is too small you will need to amplify it.

Voltage Divider

Using a couple of resistors to divide the voltage is called, of all things, a voltage divider. It is really simple to implement. The following diagram shows how.

Voltage Divider

One item of caution is the values you use. Typically, an ADC will use a tiny amount of current and if the voltage divider resistor values are too large, it will make the reading inaccurate. Values in the kilo-ohms to tens of kilo-ohms are usually OK. If you need to use larger values, you can use a unity gain amplifier to make sure the current drawn by the ADC doesn’t adversely affect the reading.

Amplifier

If the signal is too small, you can amplify it using an op-amp. Two popular configurations are the inverting and non-inverting amplifiers. Depending on the signal, you might want to center the output midway through the ADC so that you don’t get negative values. You do that by adding a voltage divider on the static op-amp terminal.

Centered Amp Circuit

When selecting an op-amp, be sure to select a rail-to-rail op-amp. Otherwise, the op-amp output will not be able to swing the full range of the ADC input.

Putting It All Together

For filtering and stepping down a voltage using a divider, you can use the following circuit.

Conditioning Divider Filter

The cutoff frequency is calculated using the parallel combination of R1 and R2 along with C.

For amplifying smaller signals, you can use the following circuit.

Conditioning Filter

The top circuit is filtered using a passive filter while the bottom part uses an active filter. They both have the same cutoff frequency, but the active filter does a better job at attenuating frequencies that are above the cutoff.

Tags: microcontroller, circuit

哆哆女性网恐怖故事儿童睡前故事解梦大全2345查询免费1518iphone4尺寸成都seo推广引擎深田老师伤感卑微的网名火影羁绊4.33在线免费设计签名网站起名起个有财的单字起名男孩名字大全财经网站建设群英传奇梦想三国破解版www.kugou.com网站logo设计在线生成手机周公解梦深圳网站排名优化世界上十大未解之谜北京家装姓刘起什么名字好d3dx9_43.dll餐饮老板内参东莞制作网站的公司论坛制作网站麟怎么起名字养老养生给姓杨取名起名大全湖南卫视在线看浙江seo外包qq可爱的个性签名成都网站制作公司排名淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化