ATtiny microcontroller development for Arduino programmers

ATtiny microcontroller development for Arduino programmers

ATtiny microcontroller development for Arduino programmers

A practical guide for the development with the microcontrollers ATtiny 24/44/84 and 25/45/85

Language: english

Note: 0/5 (0 notes) 56 students

Instructor(s): Markus Edenhauser

Last update: None

What you’ll learn

  • What is an ATtiny and which variants are available
  • Technical data and pinout discussion
  • Effect of CPU clock speed and power supply
  • Power saving mode Deepsleep and interrupts
  • Brown-out detection and CPU clock setting with fuses
  • Apply hardware settings with Arduino IDE and PlatformIO (Fuses)
  • Source Code Creation with C++
  • Configuring and setting up Visual Studio Code with PlatformIO and Arduino IDE
  • Get to know different ATtiny cores and sources of supply
  • Create Arduino ISP DIY Shield for flashing
  • Use USB ISP Flasher
  • Use different upload methods with different IDEs
  • LED control with PWM
  • Use of WS2812b and FastLED with ATtiny
  • RTC module and shift register usage with ATtiny
  • Evaluation of humidity sensor and Deepsleep



  • First experiences in Arduino development (millis, pinMode, data types) advantageous
  • Basics C++ in the Arduino environment
  • With the online simulators a lot can be simulated, but you have a greater learning success if you rebuild the practical examples with the hardware components
  • Everything about ATtiny is taught in this course



ATtinys are low-cost microcontrollers that impress with their small form factor and low power consumption (~4-8ยตA during DeepSleep). The ATtinys can be programmed easily and quickly in the familiar Arduino environment (IDE and C++), so you have a cheap alternative to the Arduinos and ESPs. The ATtinys can be operated with a button battery CR2032 and have enough memory for common DIY projects.

For the whole course the ATtinys 25/24, 44/45 and 84 as well as the Digispark ATtiny85 are used.

What we go through in the course:

  • Basics of Atmel ATtiny microcontrollers.

  • Getting to know different components like transistors, OLED displays, shift registers and much more.

  • Getting to know different upload variants for flashing the ATtinys

  • Use of Visual Studio Code with PlatformIO or Arduino IDE

  • Set hardware configurations like CPU clock frequency, brown-out detection etc.

  • Use of digital-analog GPIOs and PWM controls

  • Praxisbeispiel: Digital dice with random number and LEDs

  • Praxisbeispiel: Digital dice with WS2812b and FastLED

  • Praxisbeispiel: Binary clock with RTC Module and Shift Register

  • Praxisbeispiel: Plant monitor and Deepsleep with CR2032 Battery

  • Praxisbeispiel: Plant monitor with OLED

  • Praxisbeispiel: Tones (creating own Melody) as circuit board pendan

  • Praxisbeispiel: Transistor circuit with reedswitch and clap detector

  • Praxisbeispiel: Temperature sensor with OLED 0,96โ€ at Digispark ATtiny85

  • Praxisbeispiel: DIY Rubber Ducky with Digispark ATtiny85

My approach in the course:

  • No (ok, only very few) slides/Powerpoint but more projects. We start in the basics immediately with a practical example. You can also try out the theory immediately with the ATtinys and thereby understand it better.

  • The practical projects are developed together in step-by-step instructions.

  • In this context, together means that I demonstrate the code, depending on the task, and you can follow the execution or rebuild your own way.

  • All codes are available for download on the platform, so you can get to the result without frustration.

  • No lengthy explanations or theory monologues, we start right away in the basics chapter.

Benefit from my years of experience and get the key skills in microcontroller development.

Get this course right now and you can start right away.

See you in class
Markus Edenhauser


Who this course is for

  • Anyone who wants to deepen their knowledge of low-power, small form factor microcontrollers.
  • Developers who are interested in using low-cost microcontrollers for their projects.
  • All those who want to understand, apply and write their own practical projects with microcontrollers.
  • All those who want to learn more about microcontrollers with limited hardware resources


Course content

  • Introduction
    • Introducation to this course
    • About me
    • Download code snippets
    • Prerequisites for this course
    • Course structure
    • Surely there’s another way
    • Disclaimer
  • ATtiny Basics
    • Introduction
    • What is an ATtiny?
    • Which programming language?
    • How is the ATtiny flashed?
    • ATtiny variants 25/45/85 and 24/44/84
    • Technical specification using the ATTiny 44/45 as an example
    • Digispark ATtiny85 with USB
    • Pinout ATtiny 25/45/85 and 24/44/84
    • CPU clock speed
    • Overview of power consumption in idle mode
    • Brown-out Detection
    • Set hardware configuration
  • IDE setup and upload devices
    • Introduction
    • ATtiny Cores for Arduino IDE 1.8
    • Setting up VSCode with PlatformIO for ATTiny
    • Wiring Arduino UNO as ISP
    • DIY Shield for Arduino UNO
    • Using a USB ISP
    • Microchip Studio
    • Open VS Code in Arduino IDE
    • Online Simulator for ATTinys
  • First sketch with different upload variants
    • Introduction
    • Wiring
    • Upload with Arduino IDE 1.8.x and Arduino Uno
    • Upload with Arduino IDE 1.8.x and USB-ISP
    • Upload with VS Code PlatformIO and USB ISP
    • Upload with VS Code PlatformIO and Ardiomp Uno
    • Upload to Digispark ATtiny85 with Arduino IDE 1.8.x
  • PWM with 3 LEDs
    • Project idea
    • Wiring and PWM
    • Create Project and analogWrite
    • Source Code RGB LED
    • 3D design and printing
    • Learnings
  • Digital dice with Randomnumber and LEDs
    • Project overview
    • Wiring
    • Is a random number always random?
    • Project setup and first test
    • Start sequence
    • Debounce Button
    • Dice with effect
    • 3D Print pocket dice
    • Learnings
  • Digital dice with WS2812b and FastLED
    • Project idea LED dice
    • Wiring
    • Settings with start sequence and FastLED
    • Debounce button and set Flags
    • Control FastLED
    • 3D Print
    • Learnings
  • Binary clock with RTC Module and Shift Register
    • Project overview binary clock as keychain
    • Wiring
    • Set and read RTC SD1307 with Arduino Uno
    • Shift register 74HC595N Pinout and wiring
    • Set project settings and global variables
    • Shift Register test and control all LEDs
    • Convert decimal to binary code
    • Display Minutes with RTC and Shift Register
    • Read time and display hours with minutes
    • 3D Print
    • Learnings Binary Clock
  • Plant monitor and Deepsleep with CR2032 Battery
    • Project idea
    • Wiring
    • Calibrate moisture sensor with Arduino Uno
    • Start project and activate buzzer
    • Global variables
    • Photoresistor and LED
    • Function for Moisture Sensor
    • Implement entire logic
    • Attiny Snore or Deepsleep with current measurement
    • 3D Design
  • Plant monitor with OLED
    • Project idea
    • Wiring
    • Flow chart and project setup
    • Output text to OLED display
    • Output sensor data display
    • Create graphic for OLED display
    • Read out and display battery voltage
    • Deepsleep and Interrupt
    • Learnings
  • Tones as circuit board pendant
    • Project idea
    • Wiring Happy Birthday
    • Project Setup
    • Create and play melody
    • Wiring Touch Sensor
    • Source Code Touch Sensor
    • Wiring RGB LEDs
    • Source Code RGB LEDs
    • Learnings
  • Transistor circuit with reedswitch and clap detector
    • Project idea
    • Wiring
    • Control transistor circuit
    • Detect 2x claps
    • Implemented reed switch
    • 3D Design
    • Learnings
  • Temperature sensor with OLED 0,96โ€ at Digispark ATtiny85
    • Project idea
    • Wiring
    • Driver and IDE setup
    • Create mini weather station
  • Rubber Ducky for Windows with Digispark ATtiny85
    • Source Code
  • Conclusio
    • Learnings from this Course


ATtiny microcontroller development for Arduino programmers

IBM Cybersecurity Analyst [Coursera with IBM]

Time remaining or 45 enrolls left


Don’t miss any coupons by joining our Telegram group 

Udemy Coupon Code 100% off | Udemy Free Course | Udemy offer | Course with certificate