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

  Рет қаралды 2,847

Neoalternator

Neoalternator

Күн бұрын

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 жыл бұрын
То, что надо, спасибо.
@Evgen-Evgen-Evgen
@Evgen-Evgen-Evgen 2 жыл бұрын
Пока соберусь свой канал сделать вы все видео уже запишите. Опять годнота, лайк однозначно. Если не секрет вы в каком городе живёте?
@neoalternator
@neoalternator 2 жыл бұрын
Тематика очень обширна. Так что новые темы для видео всегда можно найти. В Мск.
@anyreU
@anyreU 2 жыл бұрын
Подскажите на аттини 13 есть внутренняя подтяжка резитором через функцию инпутпуллап?
@neoalternator
@neoalternator 2 жыл бұрын
Да, есть. Можно через регистры, как я в прошлом видео с кнопкой делал. Можно и через функции Ардуино ИДЕ.
@RomaRingo
@RomaRingo 2 жыл бұрын
на тини 13 этот скетч подойдет ? и как изменить частоту шим ?
@neoalternator
@neoalternator 2 жыл бұрын
Подойдет. Только регистры нужно сверить с даташитом. Про изменение частоты было у меня здесь kzfaq.info/get/bejne/aZmmp7p_3rKqhH0.html. Только изменение частоты на т13, приведет к изменению работы всех счетчиков, т.к. таймер всего один.
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 26 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 7 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 41 МЛН
Working with external interrupts INT and PCINT on AVR microcontrollers
15:52
Самая маленькая Ардуина - ATtiny10 + проект
10:37
Заметки Ардуинщика
Рет қаралды 171 М.
Самый широкий диод - СУПРЕССОР! Зачем он нужен?
13:01
Hi Dev! – Электроника
Рет қаралды 131 М.
Build Your Own Phased Array Beamformer
30:38
Jon Kraft
Рет қаралды 192 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 38 МЛН
Best mobile of all time💥🗿 [Troll Face]
0:24
Special SHNTY 2.0
Рет қаралды 1,6 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,8 МЛН