Тёмный

34. Arduino for Production! AVR Atmega32 - Measuring the ADC Noise (ADC Noise Reduction Mode) 

BuildYourCNC
Подписаться 100 тыс.
Просмотров 29 тыс.
50% 1

Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
www.amazon.com/dp-B09PHBT859/...
Please watch: "Buildyourcnc CNC Router on Love Yurts"
• Buildyourcnc CNC Route... -~-
Patrick's Tip Jar:
bitcoin:1Gtawd29Sgu5CdvfUnkRg1YBfowCawjFdH
Ether:0xa962365100011B79097A7bb9DD51A53eE98266bb
If you have found this video to be helpful, consider making a tip. Thanks.
Official Page with More Information:
newbiehack.com/Microcontroller...
In this video, we go a little further and investigate the noise in the ADC. We measure the deflection from one sample (conversion) to the next and add it all up. I also introduce the ADC Noise Reduction Mode. All test used the Accelerometer.
Equipment that I use to make videos:
Canon EOS Rebel: amzn.to/2rJSeh0
Macro Lens: amzn.to/2qaSKmK
Microphone: amzn.to/2qO2RB4
3D Mouse to rotate/zoom/move the object (Must have for CAD!!!): amzn.to/2ruFnSn
The drafting pencil I use on these videos: amzn.to/2qioYg2
The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): amzn.to/2rSHnBa
A better oscilloscope and the one I would recommend: amzn.to/2qizK5M
The brand of multimeter that I use and the one I recommend: amzn.to/2qicUez
Want to have your own Patreon campaign? / wpllxz

Наука

Опубликовано:

 

7 дек 2011

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@ganeshmirajkar
@ganeshmirajkar 11 лет назад
My PCB is done finally and i measured the defections. Its from 140 to 160 over 500 samples. I have a 200uf cap on 3.3v supply and I have also added a 4.7uf cap between adc_gnd and aref just to make sure no noise enters from aref.
@ganeshmirajkar
@ganeshmirajkar 12 лет назад
Yup. I agree totally. Even I did not get different results. Once I am done with my project in which I will be using my custom made PCB I will share results with you.... By the way, your atmega tutorial videos are just great...!!!
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@SajjadBro This is correct from my experience. I have been following the datasheet as closely as possible to reduce noise. Note that I didn't use an inductor as is specified on the datasheet, and this may have an effect on the accuracy. I have not received any comments from folks that may have had better results. Atmel does publish a paper for 12bit resolution, but I have not read the paper (skimmed it).
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
Thanks. Yes, please share the results.
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
Ah yes, I understand. It's been a long time since I did this video. I need to watch my video again. :))
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@imp1us Yes, I know this, but I try to stay away from other written functions so I can reduce the overhead on these microcontrollers.
@imon4mRUET
@imon4mRUET 2 года назад
thank you.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
I did test the sleep mode as well, but also saw no difference. I probably wont introduce this concept until I can get better results.
@neighborshomeremodeling
@neighborshomeremodeling 9 лет назад
Patrick, I realize this is an old post, but thank you. very informative. Question... What was the source of the analog being measured? was it pure DC? since the larger cap and the sleep mode did not show any improvement, could the noise actually be from the source? Thanks again.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@SajjadBro I'm left handed. :))
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
The 140-160 is the digital unit returned by the ADC?
@ganeshmirajkar
@ganeshmirajkar 12 лет назад
I think for noise canceler we also need to call the SLEEP command. In the code i removed start conversion command in ISR routine and also above while loop. Instead I added a sleep command in while loop. In noise canceler mode if SE is set in MCUCR, UC will go in sleep mode when sleep command is executed and also will start a conversion. Unfortunately I did not see much difference.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@kratok2006 Excellent!!
@blah148
@blah148 7 лет назад
Curious what IDE you use?
@damienlawrence7858
@damienlawrence7858 9 лет назад
AC Voltage 120V up to 277V
@shashankmore321
@shashankmore321 8 лет назад
when i send a signal of say 90 mv from the voltage divider circuit to ADC(10 bit) then the ADC result is 0.But the result should be around 18 (Vref=5v).Can u please tell me the reason......I just wanted to make my circuit such that if i give 5mv then ADC result should be 1. PLEASE rpely ASAP....
@ganeshmirajkar
@ganeshmirajkar 12 лет назад
But following two things brought my deflection down to 200-250 1: Adding a 4.7electrolytic cap between aref and ground(even if using 2.56 vref) 2. Added a 220Uf electrolytic cap near to accelerometer vss and vcc.
@ObstTube
@ObstTube 7 лет назад
I think you shouldn't add the first deflection because it is wrong (theTenBitResults - 0). Is it true? (look ie. at 20:35 )
@damienlawrence7858
@damienlawrence7858 9 лет назад
So if I have to test voltage how can I do it ...... If you can show me that like a dummy OK
@ganeshmirajkar
@ganeshmirajkar 11 лет назад
I mean the total_deflection. This deflection is added over 500 samples instead of 100
@RitwikG
@RitwikG 8 лет назад
Hi, A small doubt. I dont know if anyone has asked it before. @8:12 in your video inside if condititon, cant I just put deflectio *= -1? Is there any problem if I do like that?
@RitwikG
@RitwikG 8 лет назад
Also if you dont mind can you tell what is the difference between deflection with noise reduction mode and without noise reduction mode without any capacitor
@ilovekheti2812
@ilovekheti2812 Год назад
Hello sir i am using stm32 f401 black pill but ADC value fluctuate a lot even on dc input, how to improve it thanks
@PatrickHoodDaniel
@PatrickHoodDaniel Год назад
The only way I know to improve this is to create a special ground plane for the ADC. This is relevant for the AVR. I have DC projects in my book that showed good results, and in my ADV STM32 videos. You may want to check those out. Look for my STM32 ARM older video series where I show how to use the ADC.
@daviddickey9832
@daviddickey9832 Год назад
Is it normal that your adc is showing 300-350 out of 1024 with nothing plugged in? That seems really high.
@PatrickHoodDaniel
@PatrickHoodDaniel Год назад
Hey David, quite observant. Haha. The deflection is the better way to judge the ADC in this prototyping environment, the impedance on the vast amount of metal in breadboards, all the other challenges along with prototyping, and the lack of analog ground separation can cause these values. The ADC is measuring the analog signal and if there is impedance, the value will not be close to zero especially when all of that metal is serving more as an antenna rather than a good conductor. When the ADC is used in a PCB that follows the design rules of: analog ground separation, short traces to eliminate as much imediance as possible with good trace separation, the ADC values will be far better.
@iyadsaleh3695
@iyadsaleh3695 9 лет назад
thank you you are great teacher but here i think you miss SLEEP instruction { .... sleep_enable(); sei(); while(1){ sleep_cpu();//here start conversion and sleep
@pcangeldust
@pcangeldust 12 лет назад
or you could just multiply negative one
Далее
Вопрос Ребром: Сергей Бурунов 2
1:03:47
ЛУЧШАЯ ПОКУПКА ЗА 180 000 РУБЛЕЙ
28:28
▼ЕГО БОЯЛИСЬ МОНГОЛЫ 🍣
32:51
Просмотров 451 тыс.
How to Decrease Noise in your Signals
7:42
Просмотров 44 тыс.
Solution Roller Gantry SEW-USOCOME
0:59
Просмотров 32 тыс.
ADC noise reduction with software filter
10:04
Просмотров 26 тыс.
Треш ПК за 420 000 рублей
0:59
Просмотров 250 тыс.