Something may not be obvious to beginners: at around 23:00, the code after 100 repeats sets the pin value to 1 and then after repeatcount is set to 0 and another 100 increments, it sets it to 0 - that's what the ^ operator does in front, inverts the set value.
So you're not directly setting it in on and off in that two lines of code, you're initially setting it to on and then after a second it gets set off, then repeat all..
I think... I'm not 100% sure as I'm also a beginner at microprocessors.
@mariushmedias Thanks for the clarification. That is correct. I am "toggling" the pin (or LED) every second. I mentioned that it would toggle every second, but I also mentioned that it would blink every second, and that was just a brain slip. It is definitely toggling every second.
In an earlier video in this series, I explain the toggle code and bitwise operations, but many beginners may not see that video before this video.
@BlckBane Hi BlckBane, I'm not sure I understand the question. Are you referring to using the microcontroller for other applications? Or using the timer in different ways?
As I said this great stuff. How about making a tutorial(s) about making Windows (.NET) applications that can communicate with AVR's through (virtual)COM-ports?
hello Anajonesr very nice tutorial series , can u advice me from where i can learn more about harware of microcontroller like architecture , ports , interrupts from basic as i am a novice
@addy3x Did you see the previous videos in the playlist. It goes through all of the setup requirements to program and lists a couple of programmers (adafruit or sparkfun).
Is there a manual for the program you are using to write the program? I understand what you are saying and it makes since but following what you type to make that happen is confusing. I would thing the manual might explain why you typed in what you have typed. If not, do you know of a book that would be good for beginners to follow the programming.
@amtpdb1 Not that I know of. The videos are a product of years of programming experience, reading various datasheets, studying electronics, etc. I am trying to catch up on writing the process on the newbiehack site, but I'm a bit behind. All of the code and explanation will be there (part of it is already). The newbiehack site is essentially the book (a continually evolving book).
@anajonesr You're Welcome! I purchased an AVR-TRAIN development board and have started working with that, but then I also ordered some basic parts online, and will construct a little system (like you put together) at some point in the near future. Fun stuff!
Where abouts are you heading with the tutorials in the futre, just wondering. If your not shore thats cool. Will you be heading towards LCD's and IR's or anything like that.
@AjStephens86 An intro to interrupts (using timers as an example) will be next. Following (near term): LCD display (detailed - not using existing libraries), more on interrupts, ADC (analog to digital), PWM (input - for certain sensors that output PWM), PWM (output - motors, LEDs, servos), Serial comm (uart), and interfacing with other peripherals. Long term - there's a lot.
@anajonesr All i can say is thanks buddy, your doing an awesome job as im a complete noob. Been trying to learn from books etc. was not working. Your video's just make sense and are so easy to follow. and you do it all with out dev boards which is even better.
@gasliosia Gotcha. I will put annotation on that section and specify that this is decimal. It really is unfortunate that I didn't put the letters on that part. I was in a hurry on this one.
At the binary and hex table you wrote I think you are false. The hex should be 0,1,...9,A,B,C,D,E,F. You wrote 0,1,...9,10,11,12,13,14,15 which is for decimal. Am I right?
@gasliosia Thanks. I will check. At one point in the video, I wrote the decimal equivalents and at another point, I wrote the hex equivalents. I thought I was being clear on the distinction.
so we have used the statement:"PORTB = 0b00000001" a lot now so thats in decimal
you could use "PORTB = 0x01" with the same result.
just like 0b10010001 would be the same as 0x91.
so the 0b means Binairy and 0x means heXadecimal
pretty neat.
lacsapix 1 week ago in playlist Microcontroller Tutorial - A Beginners Guide
Something may not be obvious to beginners: at around 23:00, the code after 100 repeats sets the pin value to 1 and then after repeatcount is set to 0 and another 100 increments, it sets it to 0 - that's what the ^ operator does in front, inverts the set value.
So you're not directly setting it in on and off in that two lines of code, you're initially setting it to on and then after a second it gets set off, then repeat all..
I think... I'm not 100% sure as I'm also a beginner at microprocessors.
mariushmedias 2 weeks ago
@mariushmedias Thanks for the clarification. That is correct. I am "toggling" the pin (or LED) every second. I mentioned that it would toggle every second, but I also mentioned that it would blink every second, and that was just a brain slip. It is definitely toggling every second.
In an earlier video in this series, I explain the toggle code and bitwise operations, but many beginners may not see that video before this video.
Thanks
anajonesr 2 weeks ago
best video on timers, ever!!! Thanks for taking the time and effort to make this video. we should pay you for watching this video...
averagemale2000 2 weeks ago
@averagemale2000 Thanks!!
anajonesr 2 weeks ago
great job! thanks a lot.
donskanone 2 weeks ago
@anajonesr
Thanks a million for sharing your knowledge. Keep up the great job.
lohitbk 1 month ago in playlist Microcontroller Tutorial - A Beginners Guide
@lohitbk Thanks!
anajonesr 1 month ago
Man can you come teach classes at my school? you make it so dang easy!
Azlateen 1 month ago in playlist Microcontroller Tutorial - A Beginners Guide
@Azlateen Thanks.
anajonesr 1 month ago
I was wondering if it is possible to remove a micro controller from a up/down counting timer and use it in something else
BlckBane 2 months ago
@BlckBane Hi BlckBane, I'm not sure I understand the question. Are you referring to using the microcontroller for other applications? Or using the timer in different ways?
anajonesr 2 months ago
As I said this great stuff. How about making a tutorial(s) about making Windows (.NET) applications that can communicate with AVR's through (virtual)COM-ports?
lartti83 2 months ago in playlist Microcontroller Tutorial - A Beginners Guide
hello Anajonesr very nice tutorial series , can u advice me from where i can learn more about harware of microcontroller like architecture , ports , interrupts from basic as i am a novice
aakashgarg4023 2 months ago in playlist Microcontroller Tutorial - A Beginners Guide
thanks,
can you tell me what I need accept the AVR Atmega32 to programm like this?
(I havent got anything yet accept LEDs, transistors,...and stuff like that. and a computer ;D)
addy3x 4 months ago
@addy3x Did you see the previous videos in the playlist. It goes through all of the setup requirements to program and lists a couple of programmers (adafruit or sparkfun).
anajonesr 4 months ago
@anajonesr
thanks, I didn't find the first tutorial at the beginning, you didnt number them,
but thank u again
addy3x 4 months ago
@addy3x Consider also going to the site. There is a bunch of information there as well.
anajonesr 4 months ago
Thanks for your time and videos. I will keep watching and see what I can learn.
Thanks again.
Don
amtpdb1 4 months ago
Is there a manual for the program you are using to write the program? I understand what you are saying and it makes since but following what you type to make that happen is confusing. I would thing the manual might explain why you typed in what you have typed. If not, do you know of a book that would be good for beginners to follow the programming.
Thanks for your time and the videos.
Don
amtpdb1 4 months ago
@amtpdb1 Not that I know of. The videos are a product of years of programming experience, reading various datasheets, studying electronics, etc. I am trying to catch up on writing the process on the newbiehack site, but I'm a bit behind. All of the code and explanation will be there (part of it is already). The newbiehack site is essentially the book (a continually evolving book).
anajonesr 4 months ago
@amtpdb1
maybe this will help you: amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=programm+avr+microcontroller+in+c&x=0&y=0
addy3x 4 months ago
Excellent videos, thanks.
been keeping me out of mischief for the last 3 months. (thats another newly built cnc router you've inspired up and running)
sundancesquid 4 months ago
Great stuff Patrick! Keep up the good work! I have learned a ton by watching your videos. Thanks again for all your effort!
tcbetka 4 months ago
@tcbetka Thanks!
anajonesr 4 months ago
@anajonesr You're Welcome! I purchased an AVR-TRAIN development board and have started working with that, but then I also ordered some basic parts online, and will construct a little system (like you put together) at some point in the near future. Fun stuff!
tcbetka 4 months ago
Where abouts are you heading with the tutorials in the futre, just wondering. If your not shore thats cool. Will you be heading towards LCD's and IR's or anything like that.
AjStephens86 4 months ago
@AjStephens86 An intro to interrupts (using timers as an example) will be next. Following (near term): LCD display (detailed - not using existing libraries), more on interrupts, ADC (analog to digital), PWM (input - for certain sensors that output PWM), PWM (output - motors, LEDs, servos), Serial comm (uart), and interfacing with other peripherals. Long term - there's a lot.
anajonesr 4 months ago
@anajonesr All i can say is thanks buddy, your doing an awesome job as im a complete noob. Been trying to learn from books etc. was not working. Your video's just make sense and are so easy to follow. and you do it all with out dev boards which is even better.
So thanks heaps. Look forward to more.
AjStephens86 4 months ago
@AjStephens86 You're welcome.
anajonesr 4 months ago
You are Awesome. Been looking everywhere for video's like these. Thanks so much. How often do you release.
AjStephens86 4 months ago
@AjStephens86 Thanks. Depending on the length of my raw footage, I try to post weekly.
anajonesr 4 months ago
Please, record your voice with your camera. The microphone is better.
bagatelox 4 months ago
@bagatelox Agreed. I realized that and purchased a new mic.
anajonesr 4 months ago
I 'm talking about the point 9:24 of the video. You are writing hex by decimal. That's OK but somebody could be confused. Nice job anyway!
gasliosia 4 months ago
@gasliosia Gotcha. I will put annotation on that section and specify that this is decimal. It really is unfortunate that I didn't put the letters on that part. I was in a hurry on this one.
anajonesr 4 months ago
@gasliosia The changes have been made. Thanks for advising.
anajonesr 4 months ago
@anajonesr You're welcome! Keep walking!!!
gasliosia 4 months ago
Please, never stop do make these videos. It's amazing. Thanks!!!
bagatelox 4 months ago
@bagatelox You don't need to worry. The only way I will stop making these videos is if I get run-over by a truck.
anajonesr 4 months ago
At the binary and hex table you wrote I think you are false. The hex should be 0,1,...9,A,B,C,D,E,F. You wrote 0,1,...9,10,11,12,13,14,15 which is for decimal. Am I right?
gasliosia 4 months ago
@gasliosia Thanks. I will check. At one point in the video, I wrote the decimal equivalents and at another point, I wrote the hex equivalents. I thought I was being clear on the distinction.
anajonesr 4 months ago
@gasliosia You are totally right. I have the heading of Hex, but I'm noting decimal numbers.
anajonesr 4 months ago