Тёмный
No video :(

32. Arduino for Production! AVR Atmega - Getting the Full 10-bits from the ADC 

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

Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
www.amazon.com...
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/...
In this video, I get the full 10-bits results from the ADC (Analog to digital Converter) and the result is displayed on the LCD.
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

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

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
Great. I will try this later. I just started using the Atmel Studio and I am very excited to test.
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
That's good to know. I just downloaded the Atmel Studio 6. I will be playing with this environment for a while to see how well it works. I will update the ADC program and look at the data.
@ElectronicMarine
@ElectronicMarine 11 лет назад
And I fogot to tell you: YOU DID AREALY GREAT JOB with this tutorials, my compliments.
@javiergomez8064
@javiergomez8064 3 года назад
Amazing. Thank you so much
@davidmarks509
@davidmarks509 8 лет назад
super good thank you very much. I had a lot of trouble working this out, but your video has put me in the right direction :)
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@TKEarly09 See the reply to @kratok2006. Additional information, I will be including a test on how much swinging occurs in a new video and prove that the sleep function works.
@lacsapix
@lacsapix 12 лет назад
You can use: uint16_t tenBitValue =ADCL>>6|ADCH
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@kratok2006 The value swinging is cause by two main things: Interference that may be introduced between the potentiometer and the microcontroller, and the noise produced from the AVR core itself. Regarding the latter issue, I have a video that will show how to minimize this (putting the micro to sleep while a conversion takes place). The swinging will not be completely eliminated in this prototyping environment (use of breadboard), but will be reduced.
@Rikenrocks09
@Rikenrocks09 11 лет назад
just awesome and very helpful work.. Great Job...
@JAMESBONDiitkgp
@JAMESBONDiitkgp 12 лет назад
Excellent presentation thank u...........
@mlhackid
@mlhackid 7 лет назад
very nice explanation,
@ElectronicMarine
@ElectronicMarine 11 лет назад
in avr studio from ver 4 untill now, you can : int i; i=ADC; and you'll have the 16 bit val directly.
@MariusDege
@MariusDege 10 лет назад
Why do you don't use the ADCW Register, thats the 16-Bit value.
@mubasheer5584
@mubasheer5584 4 года назад
Hi sir.. It's good that you explained from registers level so that the students can know from. The root. Sir I have a question, I wanna read my analog voltage from an analog pin of my Arduino mega board and display that in binary form. What can be the simple basic program for that.. Help will be appreciated..thank you.
@locle5227
@locle5227 8 лет назад
great tutorial, thanks a lot, why u don't use this statement : tenBitvalue = ADCW instead. i think it's more convenient and still work properly
@jasongvs8538
@jasongvs8538 10 лет назад
good job
@baroque_engineer
@baroque_engineer 10 лет назад
There's no much sense in getting 10-bit resolution from AVR ADC without calibrating it, because two LSBs will contain noise and offset/gain error. Errors and calibration process are described in AVR120 appnote. Or am I missed some words about calibration in a video?
@ElectronicMarine
@ElectronicMarine 11 лет назад
ADLAR must be set to 0 to get ADC 10 bit. I just try the 6 studio and the compass routine that performs arctg(-x/y) with float numbers and a linear interpolation from a 18 float array, it has half the size when compilled... in terms of speed is no differne (at bare eye) in normal execution on micro so I think it's realy nice.. the avr 6 It's so slow when it starts tough on computer and do not recodnize an home made isp proggramer... but it has nice tips while you're typing
@EMSIngSev
@EMSIngSev 10 лет назад
Good job..
@gaganb.9408
@gaganb.9408 4 года назад
What if the OCR1A reaches more than 65536? For example I want to convert a sensor output after every 10 min, the OCRA value reaches a lot more than 65536 even if I take 1024 as prescalar?
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@imTUFAAN You're welcome.
@nembiz
@nembiz 10 лет назад
Hi... i am trying to read ADC from ADC0 And ADC1...... and store the value for further calculation. I am not getting ISR Interrupt working. Please help.
@mohamedhossamtealeb8682
@mohamedhossamtealeb8682 5 лет назад
To make the ADCL read first for left justified can i write: uint16_t tenBitValue = (ADCL >> 6) | (ADCH
@5002312
@5002312 12 лет назад
Can U please guide me how come I get proximity sensor input from ADC pins and then drive motors (wheels for robot) with it as to balance the robot?
@TheTranceMusicLover
@TheTranceMusicLover 12 лет назад
Hi anajonesr. Great tutorial videos! But I have one question. How to make bigger precision, I mean how to make that lcd show numbers after comma? (12,2) or (1023,0). Thanks.
@pandu247
@pandu247 11 лет назад
Hi Patrick , I am using Atmel studio 6.0, when I am debugging the ADC program it is not going into interrupt service routine ISR(ADC_vect). Can you please help me out Thank you
@sercanyzz
@sercanyzz 9 лет назад
Comıng from the potantiometer value of ADC is not beginning at "0" referance value. What could be the issue? best regards.
@sercanyzz
@sercanyzz 9 лет назад
it begins at "64" which is value of ADC.
@JAMESBONDiitkgp
@JAMESBONDiitkgp 12 лет назад
can u give the neural network code and its presentation for ATMEGA 32
@Coco_drilo
@Coco_drilo 9 лет назад
how to use itoa function?
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@imTUFAAN I'm not quite there yet.
@sercanyzz
@sercanyzz 9 лет назад
before the lcd show adc value, screen disappear. And then it comes back again. How can i fix it?
@PatrickHoodDaniel
@PatrickHoodDaniel 9 лет назад
Sounds like a bad connection. If that is not it, try adding some delay in the communication to give the slow processing of the LCD some time to accept the communication.
@sercanyzz
@sercanyzz 9 лет назад
Patrick Hood-Daniel thanks. its done. thanks for your helps. you are the best.
@arjun9273
@arjun9273 6 лет назад
Can we use multiple interrupts
@PatrickHoodDaniel
@PatrickHoodDaniel 6 лет назад
Depending on the interrupt, yes.
Далее
Секрет фокусника! #shorts
00:15
Просмотров 39 млн
New Dyna Skin is OP🥵🔥 | Brawl Stars
00:16
Просмотров 138 тыс.
A/D Converter in Atmega 328P Using Atmel Studio
26:51
Просмотров 2,8 тыс.
Open Source Analog ASIC design: Entire Process
40:11
Просмотров 40 тыс.
Секрет фокусника! #shorts
00:15
Просмотров 39 млн