Тёмный

33. Arduino for Production! AVR Atmega32 - Accelerometers and ADC 

BuildYourCNC
Подписаться 100 тыс.
Просмотров 46 тыс.
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, I investigate the use of an accelerometer using the ADC. I introduce accelerometers in general, show the output on an oscilloscope and connect an accelerometer to the ADC of a microcontroller.
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

Наука

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

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@amtpdb1 Thanks for the question. Sometimes it is difficult to determine what others may not see clearly. If there is anything else I can elaborate, please let me know.
@jtacquaiii
@jtacquaiii 12 лет назад
Thank you so much for making not only this video but all of them. They help so much!!!!
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@rapsod1911 I am slow at putting the playlist link in these videos. My apologies for that. I hope you enjoy the remaining videos.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@margoumix The accelerometer is considered a sensor. I am providing these videos (and many more) so all of you out there can put it all together and build whatever you want, be it, smart devices, autonomous robots, learning machines, etc. Stay tuned to the newbiehack site as well as there will be projects there that may interest you.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@TheMasterAbdul No a problem. Another example is in an earlier video where I use the shifting to show a row of LEDs lighting from one to another. Using the shift operation is quite a powerful feature and should be exploited for better readability. If you take a peek at the io.h file, you will see the file riddled with defines where names like "REFS1" and other just equaling single digit numbers. It's a good way to understand the datasheet for these microcontrollers.
@amtpdb1
@amtpdb1 12 лет назад
Thanks for the video. This helped with understanding as to what the capacitor does and what the different ones will do if you change the amount of capacitance. Thanks for following up on my question on this. This helped me to understand about the capacitors function. The oscilloscope helped in showing the noise also. Thanks again. Don
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@kratok2006 You are very welcome.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@TheMasterAbdul Actually, REFS0 and REFS1 is just the number representing the bit location, not the binary number itself. For example, REFS0 is equal to 6 and REFS1 is equal to 7, describing the place. If REFS0 was 0b01000000, and REFS1 was 0b10000000, then the shifting would not be needed. If this is not clear, please let me know and I can elaborate.
@MrSursonvelo
@MrSursonvelo 12 лет назад
Hi ! Thank you very much for the tutorial... could you tell us more about your oscilloscope ? Model, range ...etc ? take good care of you !
@MrArchiijs
@MrArchiijs 12 лет назад
Hi, first off all thanks you for all this playlist, I have seen almost all your videos and Learned weary much. And because you breafly touch the PWM in this video, I would like to make advice to make video in the future about generating pwm from ATmega and probably use analog input to control pwm dutty cycle. Thanks again for your helpful videos!
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@margoumix On the home page, check the links on the left navigation pane. The first is titled - Microcontroller - Intro. The long list of pages is just below that. From this comment, I will make a main title for the microcontroller series.
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
I will try that and see if it gets me a more stable result.
@aah134-K
@aah134-K 12 лет назад
@anajonesr lol ok, I was so mixed, now I get it, its all the way around what I was thinking, Thanks for such a great series, I am studying my master in embedded software Engineering, and I feel like describing the REFS1 as 7 is not good idea, I wish it was the bit location so all u need is to or it and all done.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@jtacquaiii You are welcome!
@blah148
@blah148 7 лет назад
incredible videos thanks!
@PatrickHoodDaniel
@PatrickHoodDaniel 7 лет назад
blah148 thank you for the kind words!
@amikhimji
@amikhimji 10 лет назад
Great video thanks
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@rapsod1911 I explain bitwise operations on video #8 on this playlist. A full understanding of bitwise operations are key to understanding the code I present in these videos.
@PatrickHoodDaniel
@PatrickHoodDaniel 12 лет назад
@TheMasterAbdul Which variable are you referring to?
@PatrickHoodDaniel
@PatrickHoodDaniel 11 лет назад
Did you try it, and if so, what are the results?
@ns5253
@ns5253 10 лет назад
I did not see a cap be connected to the AREF pin in the previous videos. Also according to the datasheet the AREF pins needs a filter cap for Ref Selection = Internal 2.56 V. Please check. ???
@phuongnguyen-mf7in
@phuongnguyen-mf7in 10 лет назад
Great
@margoumix
@margoumix 12 лет назад
Very cool video I saw all your videos, I have a question about the accelerometer, is it a kind of sensor or am I wrong, if that's the case then correct me, second think what about using sensors with micro controllers to build some smart devices
@rapsod1911
@rapsod1911 12 лет назад
@anajonesr Ohhh yeah... there is playlist I see it now. On your "youtube homepage" there are no playlists but yet there is one. That is huge problem with youtube.
@aah134-K
@aah134-K 12 лет назад
@anajonesr sorry I wasnt clear, every time you want to enable a bit, for example ADMUX |= 1
@aah134-K
@aah134-K 12 лет назад
I understand the bitwise operation, but I thought or the register is enough, why do you shift and or it at the same time
@ElectronicMarine
@ElectronicMarine 11 лет назад
I think that you can only use: "uint16_t the TenBitResults=ADC;" and get the 10 bits directly into an int.
@maryamkaveshgar811
@maryamkaveshgar811 10 лет назад
Hi, Thank you very much for your videos. I think we have not introduced Send_An_Integer in MrLCD.h yet! Am I right? I am getting errors. Thank you for your help
@margoumix
@margoumix 12 лет назад
I was in NewbieHack, its about dotnet and sql server technology I think
@soemmt
@soemmt 12 лет назад
hello sir. could u plz tell me, how can i connect avr with bluetooth ?
@ns5253
@ns5253 10 лет назад
Maryam Kaveshgar See the video - LCD creating a new library routine (integer to display location) for the Send_An_Integer function.
@rapsod1911
@rapsod1911 12 лет назад
What does "
@ElectronicMarine
@ElectronicMarine 11 лет назад
if you don'tput the left adjust bit (i thik ADLAR), you canget the full 1024 for max, when the bit is set you have to read the ADCH, ADCL, try it... and I used int=ADC, I don't like uint_16, I prefer unsigned int (just a matter of taste). ADMUX= 0b00000000; ADCSRA=0b11000111; ADCSRB=0b00000000; unsigned int ADCread(uint8_t ch) ch=ch&0b00000111; ADMUX = (ADMUX & 0xF8) | ch; ADCSRA|=(1
Далее
Op-Amps  - Using Operational Amplifiers
44:21
Просмотров 273 тыс.
Restoration Abandoned Kymco ZX 50
22:24
Просмотров 83 тыс.
Vibration Analyzer for $20
24:22
Просмотров 52 тыс.
Introduction to ADC and DAC
14:50
Просмотров 775 тыс.
😮Новый ДИРЕКТОР Apple🍏
0:29
Просмотров 40 тыс.
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Просмотров 1,8 млн