tinyAVR 0-Series - PC Fan PWM Temperature Control

Поділитися
Вставка
  • Опубліковано 10 чер 2024
  • Putting some of the ATtiny402’s modules to use in a small project. As well as my first use of the timer counter type B. It’s time to make the blades spin in a controlled way.
    00:00 EP8 Intro
    01:21 The PC Board
    02:23 The MCC Melody Project
    14:00 Test Setup
    15:35 Initial run and correcting the problems
    21:27 Final thoughts
  • Наука та технологія

КОМЕНТАРІ • 8

  • @SKotekar
    @SKotekar Місяць тому

    I really like the way you explain things. Very informative and enjoyable content, especially on the attiny402

  • @BusyElectrons
    @BusyElectrons 21 день тому

    The algorithm decided I was not worthy to see this video when it dropped :(
    You are correct that TCB sets it's interrupt capture flag when the count reaches TOP, versus TCA which sets the flag upon rollover to zero (assuming up-counting and periodic interrupt mode). This makes the compare register computations differ by one between the two counter types.
    Even though TCA is overkill for simple PWM, I usually use it for that anyway primarily because of the double-buffering of the Period and Compare registers. This allows PWM updates without glitches or having to disable and re-enable the timer.
    I will often relegate TCB to a fixed task such as a 1 msec tick timer. When I have used TCB for variable PWM I will monitor the CAPT flag (either by polling, or via interrupt if sleeping) and perform any register updates immediately after the flag gets set.
    I'm really enjoying this series, mainly for seeing the new ATtiny series being programmed via MPLAB / MCC. I'm still using Atmel Studio 7 with the Atmel ICE and GCC, doing bare-metal register programming from the data sheet for my production work but I did get a Pickit 5 and have started playing with it in MPLAB.
    Keep up the great work!

  • @evugar
    @evugar Місяць тому

    Very informative and such a pleasant narrative style! Thank you, sir!

  • @taylorhancuff9401
    @taylorhancuff9401 Місяць тому

    This was a great example and I enjoyed watching you work through it. Could there possibly be an RTOS in the future explained in this same style?