Working with digital signal on ATtiny10. LED control. Button connection

Published: 25 December 2021
on channel: Neoalternator
3,532
153

In this video I will talk about working with the I / O ports on the ATtiny10. The fact is that due to the peculiarity of the ATtiny microcontroller, or rather the peculiarity of the library working with it, most of the usual Arduin functions are not available here, and there are few examples of working with this microcontroller, and they are not very clear either. In this video, we will analyze how to work with a digital signal by directly accessing the registers of the microcontroller. Those. send and receive digital signal to various ports of the ATtiny10. Those. Let's talk about the analogs of the Arduino functions digitalWrite () and digitalRead () in the Arduino IDE.

Let's start by controlling the blinking of the LED. Let's rewrite the Blink sketch from the library examples using the delay () function.

And then we will analyze the connection of the button using an external and internal pull-up resistor. Those. Along the way, let's touch on the topic of activating the internal pull-up resistor of the ATtiny10 microcontroller.

We will program the ATtiny10 in the Arduino IDE. Along the way, let's analyze some useful bitwise operations typical for the C ++ language (C / C ++).

ATtiny10 (set of 5 pcs) - http://alii.pub/62nd5t
USBasp Programmer - http://alii.pub/62nd67

LED blinking sketch - https://drive.google.com/file/d/1bBgn...
A sketch with a button and an external pull-up resistor - https://drive.google.com/file/d/17dII...
A sketch with a button and an internal pull-up resistor - https://drive.google.com/file/d/1zMp5...

0:00 I / O ports on ATtiny10
1:08 LED flashing sketch
4:45 am Connecting LED to ATtiny10
6:36 Button and external pull-up resistor
9:28 Button and internal pull-up resistor


Watch video Working with digital signal on ATtiny10. LED control. Button connection online without registration, duration hours minute second in high quality. This video was added by user Neoalternator 25 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,53 once and liked it 15 people.