ATtiny Microcontroller Development for Arduino Programmers

Video description

Embark on an exciting journey into the realm of ATtiny microcontrollers, specially curated for Arduino enthusiasts. This course begins with an introduction, outlining the significance of ATtiny chips and their versatility in electronics projects. You'll explore the different variants of ATtiny microcontrollers, understand their technical specifications, and learn how to set up your development environment using Arduino IDE and VSCode with PlatformIO.

Progressing through the course, you'll delve into hands-on projects that bring theory to life. From creating a PWM controller for LEDs to building a digital dice and a binary clock, each section is designed to enhance your practical skills. You'll learn wiring techniques, code implementation, and 3D design, ensuring a holistic understanding of each project. Detailed videos guide you through every step, making complex concepts accessible and engaging.

By the end of the course, you'll have a robust portfolio of projects showcasing your expertise in ATtiny microcontroller development. You'll be equipped to tackle advanced projects like plant monitors with OLED displays, temperature sensors, and even a Rubber Ducky for Windows.

What you will learn

  • Set up and configure ATtiny microcontrollers using various IDEs
  • Step-by-step IDE setup for Arduino IDE and VSCode with PlatformIO
  • Program and upload sketches to ATtiny using different methods
  • Develop and troubleshoot real-world projects with ATtiny microcontrollers
  • Design and 3D print enclosures for your projects
  • Implement advanced features like deepsleep, OLED displays, and more


This course is for anyone who wants to deepen their knowledge of low-power, small form factor microcontrollers. It's ideal for developers interested in using low-cost microcontrollers for their projects, as well as those who want to understand, apply, and write their own practical projects with microcontrollers. Additionally, it's perfect for learners who want to explore microcontrollers with limited hardware resources. A basic understanding of Arduino IDE, C++, and electronics is recommended but not required.

About the Author

Markus Edenhauser: Markus Edenhauser, MA MSc, born in 1985 in Tyrol, Austria, is a tech enthusiast, lecturer, and systemic coach. Initially starting as a foreman in electrical engineering, he later earned two master's degrees in business informatics and systemic coaching. Markus has led over 5,000 hours of training and consulting, inspiring more than 25,000 individuals through his online courses. He has developed over 40 online courses used globally and regularly publishes specialized books on topics such as systemic coaching and microcontroller development. Markus's dedication to education and innovation is evident in his impactful teaching and writing. See you in the course.

Table of contents

  1. Chapter 1 : Introduction
    1. Introduction to this Course
    2. About Me
    3. Download Code Snippets
    4. Prerequisites for this Course
    5. Course Structure
    6. Surely There's Another Way
    7. Disclaimer
  2. Chapter 2 : ATtiny Basics
    1. Introduction
    2. What is an ATtiny?
    3. Which Programming Language?
    4. How is the ATtiny Flashed?
    5. ATtiny Variants 25/45/85 and 24/44/84
    6. Technical Specification Using the ATtiny 44/45 as an Example
    7. Digispark ATtiny85 with USB
    8. Pinout ATtiny 25/45/85 and 24/44/84
    9. CPU Clock Speed
    10. Overview of Power Consumption in Idle Mode
    11. Brown-out Detection
    12. Set Hardware Configuration
  3. Chapter 3 : IDE Setup and Upload Devices
    1. Introduction
    2. ATtiny Cores for Arduino IDE 1.8
    3. Setting up VSCode with PlatformIO for ATtiny
    4. Wiring Arduino UNO as ISP
    5. DIY Shield for Arduino UNO
    6. Using a USB ISP
    7. Microchip Studio
    8. Open VS Code in Arduino IDE
    9. Online Simulator for ATtinys
  4. Chapter 4 : First Sketch with Different Upload Variants
    1. Introduction
    2. Wiring
    3. Upload with Arduino IDE 1.8.x and Arduino UNO
    4. Upload with Arduino IDE 1.8.x and USB-ISP
    5. Upload with VS Code PlatformIO and USB ISP
    6. Upload with VS Code PlatformIO and Arduino UNO
    7. Upload to Digispark ATtiny85 with Arduino IDE 1.8.x
  5. Chapter 5 : PWM with 3 LEDs
    1. Project Idea
    2. Wiring and PWM
    3. Create Project and analogWrite
    4. Source Code RGB LED
    5. 3D Design and Printing
    6. Learnings
  6. Chapter 6 : Digital Dice with Random Number and LEDs
    1. Project Overview
    2. Wiring
    3. Is a Random Number Always Random?
    4. Project Setup and First Test
    5. Start Sequence
    6. Debounce Button
    7. Dice with Effect
    8. 3D Print Pocket Dice
    9. Learnings
  7. Chapter 7 : Digital Dice with WS2812b and FastLED
    1. Project Idea LED Dice
    2. Wiring
    3. Settings with Start Sequence and FastLED
    4. Debounce Button and Set Flags
    5. Control FastLED
    6. 3D Print
    7. Learnings
  8. Chapter 8 : Binary Clock with RTC Module and Shift Register
    1. Project Overview Binary Clock as Keychain
    2. Wiring
    3. Set and Read RTC SD1307 with Arduino Uno
    4. Shift Register 74HC595N Pinout and Wiring
    5. Set Project Settings and Global Variables
    6. Shift Register Test and Control All LEDs
    7. Convert Decimal to Binary Code
    8. Display Minutes with RTC and Shift Register
    9. Read Time and Display Hours with Minutes
    10. 3D Print
    11. Learnings Binary Clock
  9. Chapter 9 : Plant Monitor and Deep Sleep with CR2032 Battery
    1. Project Idea
    2. Wiring
    3. Calibrate Moisture Sensor with Arduino Uno
    4. Start Project and Activate Buzzer
    5. Global Variables
    6. Photoresistor and LED
    7. Function for Moisture Sensor
    8. Implement Entire Logic
    9. ATtiny Snore or Deep Sleep with Current Measurement
    10. 3D Design
  10. Chapter 10 : Plant Monitor with OLED
    1. Project Idea
    2. Wiring
    3. Flow Chart and Project Setup
    4. Output Text to OLED Display
    5. Output Sensor Data Display
    6. Create Graphic for OLED Display
    7. Read Out and Display Battery Voltage
    8. Deep Sleep and Interrupt
    9. Learnings
  11. Chapter 11 : Tones as Circuit Board Pendant
    1. Project Idea
    2. Wiring Happy Birthday
    3. Project Setup
    4. Create and Play Melody
    5. Wiring Touch Sensor
    6. Source Code Touch Sensor
    7. Wiring RGB LEDs
    8. Source Code RGB LEDs
    9. Learnings
  12. Chapter 12 : Transistor Circuit with Reed Switch and Clap Detector
    1. Project Idea
    2. Wiring
    3. Control Transistor Circuit
    4. Detect 2x Claps
    5. Implemented Reed Switch
    6. 3D Design
    7. Learnings
  13. Chapter 13 : Temperature Sensor with OLED 0.96" at Digispark ATtiny85
    1. Project Idea
    2. Wiring
    3. Driver and IDE Setup
    4. Create Mini Weather Station
  14. Chapter 14 : Rubber Ducky for Windows with Digispark ATtiny85
    1. Source Code
  15. Chapter 15 : Conclusion
    1. Learnings from this Course

Product information

  • Title: ATtiny Microcontroller Development for Arduino Programmers
  • Author(s): Markus Edenhauser
  • Release date: May 2024
  • Publisher(s): Packt Publishing
  • ISBN: 9781836206613