Added: 4 months ago
From: anajonesr
Views: 4,299
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (43)

Sign In or Sign Up now to post a comment!
  • 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.

  • 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.

    Thanks

  • 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 Thanks!!

  • great job! thanks a lot.

  • @anajonesr

    Thanks a million for sharing your knowledge. Keep up the great job.

  • @lohitbk Thanks!

  • Man can you come teach classes at my school? you make it so dang easy!

  • @Azlateen Thanks.

  • 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 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

  • 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 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

    thanks, I didn't find the first tutorial at the beginning, you didnt number them,

    but thank u again

  • @addy3x Consider also going to the site. There is a bunch of information there as well.

  • Thanks for your time and videos. I will keep watching and see what I can learn.

    Thanks again.

    Don

  • 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 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).

  • @amtpdb1

    maybe this will help you: amazon.com/s/ref=nb_sb_noss?ur­l=search-alias%3Daps&field-key­words=programm+avr+microcontro­ller+in+c&x=0&y=0

  • 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)

  • Great stuff Patrick! Keep up the good work! I have learned a ton by watching your videos. Thanks again for all your effort!

  • @tcbetka Thanks!

  • @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.

    So thanks heaps. Look forward to more.

  • @AjStephens86 You're welcome.

  • You are Awesome. Been looking everywhere for video's like these. Thanks so much. How often do you release.

  • @AjStephens86 Thanks. Depending on the length of my raw footage, I try to post weekly.

  • Please, record your voice with your camera. The microphone is better.

  • @bagatelox Agreed. I realized that and purchased a new mic.

  • 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 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.

  • @gasliosia The changes have been made. Thanks for advising.

  • @anajonesr You're welcome! Keep walking!!!

  • Please, never stop do make these videos. It's amazing. Thanks!!!

  • @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.

  • 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.

  • @gasliosia You are totally right. I have the heading of Hex, but I'm noting decimal numbers.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more