ATtiny10. Working with an analog signal. PWM. Potentiometer connection

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • In this video, we'll talk about working with an analog signal on the ATtiny10, i.e. about analogs of functions analogWrite () and analogRead ().
    I will give an example of working with a 10kOhm potentiometer and receiving data from it, we will control the brightness of the LED. Those. Let's touch on how the Pulse Width Modulation (PWM) technology works on the ATtiny10.
    First, we will analyze the reading of the analog signal and the operation of the analog-to-digital conversion (ADC) on the ATtiny10 microcontroller. And then, using the obtained value, we will set the brightness of the LED.
    0:00 Working with analog signal on ATtiny10
    1:11 Place the components on the breadboard
    2:14 Sketch for reading an analog signal
    4:28 Demonstration of ADC operation on ATtiny10
    5:32 Sketch for working with PWM on ATtiny10
    8:24 LED brightness control
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    То, что надо, спасибо.

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

    Подскажите на аттини 13 есть внутренняя подтяжка резитором через функцию инпутпуллап?

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

      Да, есть. Можно через регистры, как я в прошлом видео с кнопкой делал. Можно и через функции Ардуино ИДЕ.

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

    Пока соберусь свой канал сделать вы все видео уже запишите. Опять годнота, лайк однозначно. Если не секрет вы в каком городе живёте?

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

      Тематика очень обширна. Так что новые темы для видео всегда можно найти. В Мск.

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

    на тини 13 этот скетч подойдет ? и как изменить частоту шим ?

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

      Подойдет. Только регистры нужно сверить с даташитом. Про изменение частоты было у меня здесь th-cam.com/video/33vtWNyLFTI/w-d-xo.html. Только изменение частоты на т13, приведет к изменению работы всех счетчиков, т.к. таймер всего один.