Understanding Arduino Interrupts | Hardware, Pin Change & Timer Interrupts

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น •

  • @Dronebotworkshop
    @Dronebotworkshop  10 หลายเดือนก่อน +16

    Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
    It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
    Thanks!
    Bill (The real one!)

  • @montalbert
    @montalbert 2 ปีที่แล้ว +191

    He interrupted his own presentation to make a point about interrupts while asking for audience subscription. This guy is a genius 👏

    • @JustaReadingguy
      @JustaReadingguy 2 ปีที่แล้ว +6

      Yea, I laughed

    • @user-mr3mf8lo7y
      @user-mr3mf8lo7y 2 ปีที่แล้ว +4

      He actually is. Did that to let you guys memorize the concept next time around.

    • @JeffAPierson
      @JeffAPierson ปีที่แล้ว +4

      he is playing 4D Interrupts, he is on a different level of interrupts ;)

    • @sketchypoodle1236
      @sketchypoodle1236 ปีที่แล้ว

      All I wanted was a Pepsi.

    • @evonite841
      @evonite841 8 หลายเดือนก่อน

      I actually subscribed lol

  • @thorntontarr2894
    @thorntontarr2894 ปีที่แล้ว +18

    As a seasoned user of interrupts, this video is outstanding to overcome the fear many users have regarding the use of interrupts. You have done a great service with this video.

  • @rahuls7039
    @rahuls7039 2 ปีที่แล้ว +12

    I believe that this video is one of the most well-described video on interrupts. The best part is that it contains crisp and clear information. Thank you for uploading this. Your videos are a blessing to the developer community.
    I wish I had access to this resource a bit earlier.

  • @anonymous.youtuber
    @anonymous.youtuber 2 ปีที่แล้ว +8

    The concept of interrupts brilliantly explained. Kudos !

  • @sinjhguddu4974
    @sinjhguddu4974 2 ปีที่แล้ว +10

    What an elegant illustration and beautifully laid out segment. Thank you.

  • @firdavsmdfx2designer259
    @firdavsmdfx2designer259 26 วันที่ผ่านมา

    Sizga katta rahmat. Interrupt bo'yicha yaxshi videodars topish judayam qiyin edi. Siz ko'p narsani tushuntira olibsiz. Ayniqsa, batafsil ma'lumotlar menga yoqdi.

  • @pellechi1
    @pellechi1 2 ปีที่แล้ว +16

    This lesson was crystal clear! Nicely done …

  • @mua7573
    @mua7573 2 ปีที่แล้ว +8

    the timing is incredible! was just in the procces of researching about interrupts xD Thanks for this tutorial!

    • @nodrug2
      @nodrug2 2 ปีที่แล้ว +1

      Yes sorry to interrupt you but I agree the timing was incredible! ;)

  • @philgo2024
    @philgo2024 2 ปีที่แล้ว +3

    Thank you from France for all your so clear videos !

  • @tubeDude48
    @tubeDude48 2 ปีที่แล้ว +4

    At 21 minutes, this got really interesting. Well done, Bill.

  • @GLH8
    @GLH8 7 หลายเดือนก่อน

    Thanks once again!
    After scratching my head for an hour trying to get my interrupt to work, you explained the issue and solution clearly. I was able to fix it first attempt!

  • @mrcurly1147
    @mrcurly1147 2 ปีที่แล้ว +7

    Perfect timing - I'm just starting to work with these handy things. Thank you for sharing your knowledge.

  • @erikpeterson1989
    @erikpeterson1989 2 ปีที่แล้ว +6

    Really enjoyed this! Crisp, straightforward, and elegant tutorial!

  • @projardgreen2568
    @projardgreen2568 2 ปีที่แล้ว

    The problem given to introduce Interruptions was GENIUS. I have a channel of my own, but I'm just a Mechatronics Technition (from Portugal, though born in USA). My knowladge on the Arduino is in great part, thanks to your videos that are, I'd say, absolutly EYE OPENING to anyone dealing with Arduino.

  • @tylercgarrison
    @tylercgarrison 5 หลายเดือนก่อน

    Im new to arduinos, got my first one last week and have been doing lots of tinkering. I was initially a little scared of trying to learn about interrupts because I thought it was going to be difficult and complex, but you made it very easy to understand and implement! Great video!

  • @aaandis
    @aaandis 3 หลายเดือนก่อน

    Came here to learn interrupts, I leaned so much more. Thank you!
    Can't wait to implement the knowledge into my heating system automation project with a lot of temperature readings.

  • @tonderaimatsungo5540
    @tonderaimatsungo5540 9 วันที่ผ่านมา

    This is a brilliant video which is clear, concise and systematic. Thank you for your effort.

  • @CeheLvideo
    @CeheLvideo 2 ปีที่แล้ว +1

    kilohertz kHz kilo k km kilomètres
    One of my old teachers corrected me every time I put a K for kilo
    But, I like very much your videos. You make a great job. Thank you for your videos. Take care.

  • @rarespopa6648
    @rarespopa6648 2 ปีที่แล้ว

    dude,you are the goat of arduino I don't know what i would do without you

  • @akanda3642
    @akanda3642 10 หลายเดือนก่อน +2

    There is an error in code in timer interrupt section. Program works by accident because 31249 is around half of scope. In ISR(TIMER1_COMPA_vect) TCNT1 needs to be set to 0 so it can start counting from the start and in setup part TCNT1 also needs to be 0 but we need to put timer1_compare_match in OCR1A because OCR1A is the value timer TCNT1 compare.
    Thanks for the video, it goes really deep into the subject. It's very useful.

    • @bobsimmons5274
      @bobsimmons5274 4 หลายเดือนก่อน

      I'm another viewer of this video and I agree... I'm not new to micros but I am new to Arduinos... I've spend several hours this morning trying to get this code to work with slightly different values, to no avail... and yes, it does seem to work "by accident" but the frequency I got is 1/2 Hz, not 2 Hz... the number used in this example ( 31249 ) is in the denominator, so the time per cycle will be doubled... not the frequency. I also note he is reloading the counter registers with the this number, not the compare registers... and somewhere in the narration I noted he was talking as if the counters are counting DOWN... but I suspect the counters are actually counting UP... That "accidentally" makes it work, because the counters will "rollover" to zero, which then will trigger the compare event , since the compare registers are zero... and it still works out to ( almost ) 1/2 Hz... which is what I saw on my scope...( actually 0.523 Hz, if my calcs are correct )
      Otherwise it's a good video, better than most and goes into important details that other videos ignore... but this combination of errors has wasted half a day for me... and maybe others also... pity... glad to see someone else spotted this...

  • @denouch358
    @denouch358 ปีที่แล้ว

    I just started playing with an Arduino and stumbled onto your channel. You are a very good presenter and have tons of good info. Thank you for sharing.

  • @IkaKomura
    @IkaKomura 2 ปีที่แล้ว +1

    Thanks!

    • @Dronebotworkshop
      @Dronebotworkshop  2 ปีที่แล้ว

      Thank you Bernt, and my apologies for taking so long to respond. I'm still learning how to use the Super Thanks feature.

  • @nodrug2
    @nodrug2 2 ปีที่แล้ว +3

    As usual another easy to understand tutorial, you make things soooo much easier.

  • @JohnJTraston
    @JohnJTraston 2 ปีที่แล้ว +2

    You can still use (call) millis() withing ISR for debouncing. It can be used to get time delta between ISR calls but not to measure any time deltas within the same ISR. Since what millis() returns is only updated by the timer ISR. Given that all ISR should be super small and fast that's not a problem.

  • @joshchen2818
    @joshchen2818 2 ปีที่แล้ว +4

    just learning interrupt and the video popup. like it

  • @mhegyi2
    @mhegyi2 2 ปีที่แล้ว

    I was just designing a project that takes button input to change temperature up or down. The first part exactly spelled out my first attempt. This is so helpful! Thank you! Now back to work…

  • @seankayll9017
    @seankayll9017 2 ปีที่แล้ว +3

    Last time a piano fell on my head I was actually reaching for my car's fire extinguisher. So there. Great video as always!

  • @bluehornet6752
    @bluehornet6752 2 ปีที่แล้ว

    Brilliant presentation. Don't forget to mark your timer1_compare_match variable as "volatile" though, at 42:26 in the timeline.

  • @justaguy7172
    @justaguy7172 2 ปีที่แล้ว +2

    Great video with excellent technical information presented in an easily-understood manner.

  • @TheUnofficialMaker
    @TheUnofficialMaker ปีที่แล้ว

    playing with the code, what joy! BTW your written guides are AWESOME.

  • @PhG1961
    @PhG1961 2 ปีที่แล้ว +1

    Outstanding video ! Many thanks for this awesome TH-cam channel !

  • @studiochefson3573
    @studiochefson3573 2 ปีที่แล้ว +1

    Loved this one! (also loved previous videos). VERY interresting. Thank you very much

  • @richardp1962
    @richardp1962 8 หลายเดือนก่อน

    Awesome video and clear explanations. You must have been a teacher in a previous life.
    I’m new to the Arduino world but not to software development. The first videos i saw on the Arduino programming environment seemed a bit strange to have everything coded in an infinite loop() method. Using interrupts makes a lot more sense to me
    Thanks again.

  • @Henrikh2011
    @Henrikh2011 2 ปีที่แล้ว

    Tak!

  • @nara49veera12
    @nara49veera12 11 หลายเดือนก่อน

    Good compilation of all interrupts in Arduino!

  • @kwasmich
    @kwasmich 2 ปีที่แล้ว +34

    In your timer interrupt example I think you actually want to used CTC mode instead of Normal mode. In CTC the register TCNT1 counts from 0 to OCR1A, triggers the compare interrupt and resets the counter TCNT1 to 0 automatically. - You are using Normal mode where TCNT1 normally counts from 0 and overflows at 65535. By setting TCNT1 to a different value you change the duration before the overflow occurs. Since you are not setting the Output Compare Register (OCR1A) it is set to its initial value 0. Hence you have the output compare match interrupt right after the overflow interrupt. And in that interrupt handler you again set TCNT1 to the predefined value. - Since your timer1_compare_match value is pretty close to the middle value of 32768 it is hard to tell the difference if you are counting up from 0 to X or from X to 65535. But it makes a difference in the timing.

  • @ventasti2742
    @ventasti2742 ปีที่แล้ว

    Thank you Bill, you have a fine way of explaining things.

  • @usefulelectronics
    @usefulelectronics 2 ปีที่แล้ว +1

    Nice tutorial!!. I am not one of Arduino fans but this tutorial is quit informative and gives good understanding about interrupts

  • @markday3145
    @markday3145 2 ปีที่แล้ว +2

    33:00 Try pushing and holding one of the buttons and then pushing the other one. On the second press, I'll bet you'll find that both LEDs toggle. To fix that, you'd have to store the previous state of the input, and only toggle if the input is now low, and was previously high.

  • @TYGAMatt
    @TYGAMatt 2 ปีที่แล้ว +2

    The timers on the AVR chips are great. I try to use them as often as I can. They are reliable and accurate. However, It takes a fair bit of reading through the datasheets to take full advantage of them.

  • @ChrisWilliams-pu8pj
    @ChrisWilliams-pu8pj หลายเดือนก่อน

    Great information. Thank you for your concise explanations!

  • @inlywang8157
    @inlywang8157 2 ปีที่แล้ว

    As always informative, a good and different perspective

  • @JLCPCB
    @JLCPCB 2 ปีที่แล้ว +1

    Great video as always!

  • @powersprouter
    @powersprouter 2 ปีที่แล้ว

    thank you. best explanation I've found for hardware interrupts.

  • @antonioastorino7488
    @antonioastorino7488 9 หลายเดือนก่อน

    Thank you for this amazing video. It's nice to see how to handle things using registers before taking the shortcut of using a library :)

  • @TonySwitzerland
    @TonySwitzerland 2 ปีที่แล้ว +1

    I like the way you explain things!

  • @carlosbah4623
    @carlosbah4623 ปีที่แล้ว

    A really instructive channel, everything very well explained in detail. Subscribed!
    ¡Gracias por compartir!

  • @derekloudon8731
    @derekloudon8731 2 ปีที่แล้ว +1

    A very useful video, thank you!

  • @MyVideoCollection
    @MyVideoCollection 2 ปีที่แล้ว

    quite a thorough and excellent explanation. I found timer interrupts a bit more confusing, but I get it.

  • @dang495
    @dang495 2 ปีที่แล้ว +2

    I'm interested to see how interrupts are used for power saving. E.g. waking from sleep / low power states.

  • @doug3458
    @doug3458 2 ปีที่แล้ว

    Thank you for introducing the PinChangeInterrupt library, I was wondering how I was going to implement lots of interrupts on the Mega2560. It might be worth mentioning that the library gives options for interrupting on high's or low's, as well as change.

  • @nanolabhamlinux
    @nanolabhamlinux ปีที่แล้ว

    Thanks! answered a lot of questions I had!

  • @braddixon3338
    @braddixon3338 2 ปีที่แล้ว +5

    You sir are a wealth of information! This is a very good video describing all kinds of details around the various interrupts and how to change them as desired. Where do you learn all this stuff from (the various interrupts and how to set them)? Yes, I'm subscribed, notifications turned on, and you have my email for the news letter, a true fan ;-)

  • @bozotheclown935
    @bozotheclown935 2 ปีที่แล้ว +1

    Hey, I have been avoiding IRQ's but you "easy speak" way of looking at it should make it easy.
    Appreciate you work.
    Thanks a lot...
    ==BOZE==

  • @the1spyderryder
    @the1spyderryder 2 ปีที่แล้ว

    Great video! I am going to build a few amateur VHF and UHF repeater controllers and the interrupt timers are the only way to go but with such short duration timers I will ha e to continue to increment a location in the ISR and test them also in the ISR. I will need a 5 minute transmitter time out timer and a 10 minute ID timer so I will have to build two or three timers all running off timer one peogrammed for one second. "Tick".
    For ID i plan to use an ISD 1820 for id. Either voice or CW id played from the 1820. Suggestions?

  • @andrewhollenbach7330
    @andrewhollenbach7330 2 ปีที่แล้ว +1

    Another great topic!

  • @williamkennedy3837
    @williamkennedy3837 11 หลายเดือนก่อน

    Your videos seem well thought out and have the info I am looking to find. I'm midwestern and my ears aren't programmed to filter thru heavy accents. Some may call me names for this but I am too old to reprogram my brain.

  • @sirajabbasi6260
    @sirajabbasi6260 5 หลายเดือนก่อน

    Hi @dronebotworkshop please tell me how will we use different pre scalers for timer interrupts, i want to use 1024 as pre scaler, which reg value should be changed

  • @Max_Mustermann
    @Max_Mustermann ปีที่แล้ว

    Thank you. This video was very helpful.

  • @stevenheynderickx583
    @stevenheynderickx583 2 ปีที่แล้ว

    Hi, wanted to say that I think your tutorials are very good. Thank you very much for putting them up. Please keep doing this. I learned a lot today!

  • @jgl153
    @jgl153 ปีที่แล้ว

    This is a great video about interupts, and it fits to my new project. I want to measure wind. The default is, measure 5 seconds (gust period) 24 times (=2min) for wind. So I need a timer for 5 seconds. Thats not possibel for Arduino (max is 4,19 sec). So the first questions is how to prolonge to 5 second. The second question is, even if I setup timer only for 4 seconds, I need a second external interrupt for the anemometer to count the revolutions within the period of 4 (or 5) seconds. What happens if the CPU just is in ISR for timer setting when the external interrupt happens. Or vice versa the external ISR is running and the timer counts down. By the way the external ISR is very short (only count++). Which one is prioritised ? If there is someone who can give me an answer, i would be very thankful.

  • @cosmoferreri8366
    @cosmoferreri8366 ปีที่แล้ว

    Hi i built my own flux capacitor from back to the future, with my friends help. We have written a large sketch with 9 sequences. we have the y centre leds (3 strips of 10) and door leds (4 x3) working simutaneously. we are using arduino mega. everything works fine but we are having the problem of the IR remote changing the sequences. i tried incorporating your code, it uploaded fine but didnt make a real difference. happy to show you the code if you could help. thanks

  • @peddlereffects
    @peddlereffects 2 ปีที่แล้ว +1

    I can’t wait for your vide on hardware debouncing - in particular I would love to know if I need a Schmitt trigger for debouncing Arduino or if a simple RC filter is enough.

    • @newburypi
      @newburypi 2 ปีที่แล้ว +2

      RC circuits can be a big problem in electrically noisy environments. Having said that I have successfully used them. You just need to be diligent in your testing.

  • @UsefulTechStuff
    @UsefulTechStuff 2 ปีที่แล้ว

    Excellent video, as always. Thank you.

  • @nileshdharap
    @nileshdharap 2 ปีที่แล้ว +1

    Can you get rid of debounce in ISR by checking again if pin is LOW after some delay, if its a fake one use goto to move at the end of the interrupt.
    ISR(){
    if(digitalRead(pin==LOW)){
    delay(40);
    if(digitalRead(pin==HIGH)){
    goto endOfISR;
    }
    //IsrCode
    endOfISR:
    }
    }

  • @KhunThomat
    @KhunThomat 2 ปีที่แล้ว

    Anything I need to care about when using a PWM output or the millis() together with timer interrupts?

  • @1yyymmmddd
    @1yyymmmddd 2 ปีที่แล้ว +1

    Great video. It would have probably been worth touching on how to set timer depending on CPU clock speed set up in Arduino IDE.

  • @KeithHeilner
    @KeithHeilner 2 ปีที่แล้ว

    Is there a way to selectively enable and disable interrupts on one pin all while leaving interrupts on other pins enabled? Thanks.

  • @jeffhulett4194
    @jeffhulett4194 2 ปีที่แล้ว +1

    what do you use for your animation? really nice.

  • @321jimh
    @321jimh 2 ปีที่แล้ว +1

    Thank you, thank you !!! Jim : )

  • @DrRusty5
    @DrRusty5 2 ปีที่แล้ว

    Can you use an interrupt within a State Machine. I have a circuit that waits for a voltage signal, then triggers a Mosfet. The downside is I can't eliminate the delay that I need to keep the Mosfet on, so I have to wait for that delay until the Ardunio goes looking for the voltage in again, to tiegfer the next Mosfet.

  • @nedstar7378
    @nedstar7378 ปีที่แล้ว

    Excellent information thanks for sharing

  • @khomo12
    @khomo12 5 หลายเดือนก่อน

    Great! Thank you!👍👍👍

  • @74862
    @74862 2 ปีที่แล้ว

    Id love to see a workshop tour. Judging from the backdrop your workshop looks nice

  • @mystreteacher
    @mystreteacher 8 หลายเดือนก่อน

    I'm switch adapting (special needs) a product in which the momentary switch already is programmed to toggle. Simple enough except that I actually do want it to act as a momentary switch. When the adapted switch rises the toy turns on and when the adapted switch falls the toy turns off. The problem that we have is the disabled student will rapidly spam the switch while the state changes occurs. Im definitely working to figure it out (reason why I'm watching this video), but any insight would be appreciated.

  • @FreLuZi
    @FreLuZi 2 ปีที่แล้ว

    Great Video, helped a lot!

  • @myidahohomestead.7123
    @myidahohomestead.7123 2 ปีที่แล้ว

    Its a different topic than this video but have you ever used a roboclaw motor driver? I have one I'm trying to run 2 dc motors with. I can make the motors do anything i want in the motion studio for the roboclaw. But when i hook the roboclaw to my arduino with a joystick i can only get the motors to go in one direction. I can make them go fast or slow but they will not reverse no matter what. The roboclaw is rated for 2 motors at 15 amps each.

  • @avalonsof3665
    @avalonsof3665 2 ปีที่แล้ว

    What if I wanted to use an ultrasonic sensor as an interrupt? Will that work?

  • @gabrieljulioarmandosiagian1921
    @gabrieljulioarmandosiagian1921 2 ปีที่แล้ว

    if we change the timer1_compare_match_value value, did the delay we created changed too?

  • @RussTanner
    @RussTanner 2 ปีที่แล้ว +2

    The animations for DBW are very well done. What kind of software would you use to do that?

    • @electronics.unmessed
      @electronics.unmessed 2 ปีที่แล้ว +1

      You can do that with MS PowerPoint

    • @RussTanner
      @RussTanner 2 ปีที่แล้ว

      @@electronics.unmessed Thanks for the reply. I wonder what software DroneBot uses. I think Apache makes a free package that works somewhat like powerpoint.

    • @electronics.unmessed
      @electronics.unmessed 2 ปีที่แล้ว

      @@RussTanner I am working with MS PowerPoint 2019. The maximum resolution for movies and pixels seems to be Full HD. Maybe the Apache product can go further to 4k or 8k?

    • @RussTanner
      @RussTanner 2 ปีที่แล้ว

      @@electronics.unmessed OK Very good. Thanks for the info!

  • @waynel8645
    @waynel8645 2 ปีที่แล้ว +1

    How do you make your schematic drawings, This is an outstanding video, I tried to get programmers at LLNL to use interrupts in PLC's code but my supervisor said I was making the code too difficult. he then gave me the nickle raise. I left his group and had a very successful career in another group. I thanked him.

  • @MathPiSG
    @MathPiSG 2 ปีที่แล้ว

    Great video, as always! If the interrupt is called during the delay, say 2 seconds into the 5 seconds delay, after the interrupt function has finished, does the delay restart (the full 5 sec) or does it continue where it left (the remaining 3 sec)?

  • @boiwithskillz
    @boiwithskillz 2 ปีที่แล้ว +1

    Please do a video on esp32 interrupts!!

  • @tirthvora5061
    @tirthvora5061 2 ปีที่แล้ว +1

    nice and knowledgeable

  • @j1952d
    @j1952d 2 ปีที่แล้ว

    A bit off-topic, but after your short series about using the I2C bus, you said you'd be doing an explanation of the use of multiple bus masters. Did you ever to it? I've searched around, and can't find anything. Cheers, John.

  • @ytdemori
    @ytdemori 2 ปีที่แล้ว +2

    Very interesting video, can I ask you which software do you use to create the sketches animations with arduino and all components? Thank you.

  • @henkoegema6390
    @henkoegema6390 2 ปีที่แล้ว

    Thanks for interesting video. 👏

  • @stevegelnett4469
    @stevegelnett4469 ปีที่แล้ว

    This is a good video.

  • @cadillacescalade5428
    @cadillacescalade5428 ปีที่แล้ว

    Hi, There I have a question for you..
    I am in to Arduino model RR and I have a sketch that I did for a RR Crossing an it has a sound file PCM
    That uses timers 1 an 2 an it only holds about 2sec. Of audio. So I use mp3 audio turn it into wav form at 8000Hz an 16000hz but for my bell audio tones an it loops over an over...
    So I re copied my sketch for a single bell tone to stop after the gate has lowered my question is for the sound file that I am using in my sketch what do I need to do to just have the bell run once ? I've been looking at timer 1s an doing some searching but I'm not sure what I need to do. I also use Audacity to transfer my audio into wav files.

  • @alokbiswas8183
    @alokbiswas8183 2 ปีที่แล้ว +2

    Thank you for vedio

  • @joelrcha3368
    @joelrcha3368 2 ปีที่แล้ว +1

    Great vídeo

  • @the1spyderryder
    @the1spyderryder 2 ปีที่แล้ว

    A .1uF across switch will debounce the switch nicely.

  • @aminehteshami3781
    @aminehteshami3781 2 ปีที่แล้ว

    Thanks for great content and Please make videos about assembly codes

  • @aziza.bootwala5015
    @aziza.bootwala5015 2 ปีที่แล้ว

    Hello Bill,
    The video is great as always, and I never tend to miss another one. I have a question which I need to ask you about the ISR , since the interrupt has occurred because of the switch, do we need to read it again while we are inside the ISR? KEEP UP THE GOOD WORK👍, BEST OF LUCK.

  • @gregorymccoy6797
    @gregorymccoy6797 2 ปีที่แล้ว

    Great presentation. I'd like to see some esp32 coding for multiprocess coding.

  • @lilblackduc7312
    @lilblackduc7312 ปีที่แล้ว

    Thank you! 🇺🇸 😎👍☕

  • @Stofftasse
    @Stofftasse 2 ปีที่แล้ว +1

    Beim Timer Interrupt gibt es Fehler:
    Im jetzigen Zutand passiert nichts, wenn man timer1_compare_match ändert.
    Nach folgenden Schritten ging es bei mir:
    Zunächst einmal wird OCR1A = timer1_compare_match und nicht TCNT1.
    Zusätzlich muss der CTC mode noch eingeschaltet werden. Es fehlt vor dem setzen des Prescalers TCCR1B |= (1

  • @rodrigog666
    @rodrigog666 10 หลายเดือนก่อน

    ¿Qué software de edición de video usas?

  • @ME-rv1pw
    @ME-rv1pw ปีที่แล้ว

    26:11 your LED images are reversed.. you have anode/cathode correct based on lead length but the internals of the LEDs are flipped