
ATtiny microcontroller development for Arduino programmers through ten hands-on projects, covering basics, wiring, flowchart, and step-by-step code. Access downloadable codes, schematics, and datas for practical hands-on practice.
Marcos introduces his background in electrical engineering, business informatics, auditing, and embedded systems to establish credibility for the ATtiny microcontroller development course for Arduino programmers.
Follow along as the instructor builds the course step by step, downloading code states and snippets to adapt your own ATtiny projects for Arduino programmers.
Identify the prerequisites for this ATtiny course, including programming basics, data types, and why the code logic is used, with Arduino experience and Platform IO or Visual Studio Code recommended.
Explore a project-first structure where each chapter guides you from idea to wiring, code, and 3D printing, with deep sleep and moisture sensing used to tackle hardware and software challenges.
Explore practical approaches to implementing ATtiny projects, embracing diverse experience levels in an online Arduino course, and adapting source code creatively to fit your own setup.
Exercise caution when wiring, checking schematics and pin outs to avoid damaging devices or causing burns, and seek help on the platform if issues arise.
Explore ATtiny microcontrollers' origins, types, and datasheets, and learn how to pick the right device, while covering programming options, pinouts, clock speeds, power, brownout settings, and Visual Studio Code setup.
Compare the ATtiny with the ATmega in the AVR series, then explore its small, cheap, do-it-yourself friendly design, pin counts, and memory options for do-it-yourself projects.
Learn how to flash the ATtiny by transferring source code from your PC to the microcontroller using a six-pin connector and a USB device on a breadboard.
Explore the ATtiny 44/45 family through key specifications, including pinout, memory, clock options, power requirements, and interfaces such as SPI and ADC, with emphasis on the datasheet reference.
Explore the digispark ATtiny85 with USB, its USB-powered design, voltage and clock ranges, pin layout, limited memory, and practical use as a compact USB device.
Learn how ATtiny clock speed affects power and performance, from factory 1 megahertz to higher speeds like 8 megahertz, and how to set fuses for reliable Arduino projects.
Analyze ATtiny power usage in idle and deep sleep, linking operating current and voltage to clock speeds such as 1, 8, 10, and 20 MHz and to battery considerations.
Learn how the ATtiny’s on-chip brown-out detection monitors Vcc against a fixed threshold to reset the MCU during voltage dips, with implications for deep sleep, interrupts, and hardware enablement.
Set hardware configuration by adjusting ATtiny fuse bits in non-volatile memory to define clock speed, brownout, and watchdog. Use a fuse calculator, apply settings, burn the bootloader, and deploy changes.
Configure the Arduino IDE 1.8 for ATtiny programming by installing cores via the board manager, trying the 80 tiny and Spence Konde cores, and selecting DigiSpark options.
Set up Visual Studio Code with PlatformIO for ATtiny, install the Atmel AVR library, create a new project, and configure upload speed, port, clock, and fuses in platformio.ini.
Wire ATtiny to Arduino Uno as ISP programmer on a breadboard, connecting Vcc, Gnd, a 10 µf reset capacitor, and mosi miso and sck from pins 11, 12, 13.
Design and assemble a do-it-yourself shield for the Arduino Uno to simplify flashing an ATtiny, using two capacitors, GPIO sockets, and configurable pin wiring.
Learn to use a usb isp to flash an ATtiny on a breadboard, wiring ground, vcc, and reset, powered by a 3.3 volt usb supply, with plug-and-play programmer software.
Explore Microchip Studio as the development environment for ATtiny development, configure hardware settings, connect ISP, select the SDK 500 series tool, program ATtiny25, and adjust fuses such as brownout detection.
Open Visual Studio Code or the platform sources in the Arduino IDE, explore the project structure, edit C++ files, and compile or upload with the correct board and clock settings.
Use the online simulator for attiny microcontrollers to test logic, blink an led via pb5 as output with 500 ms delays, and integrate tiny 4k oled libraries.
Wire a basic led circuit on an ATtiny microcontroller to flash an led, using a 100-ohm resistor with the anode to PB1 gpio and cathode to ground.
Learn how to upload sketches to an ATtiny using the Arduino IDE 1.8.x and an Arduino Uno, wiring via ISP, burning bootloader, and configuring clock and voltage settings.
Configure Arduino IDE preferences to show verbose upload, select the ATtiny and USB-ISP port, burn bootloader to apply clock and brownout settings, then upload a sketch to flash the ATtiny.
The Arduino as ISP Sketch (from the Arduino IDE) must be uploaded before. This was already shown in the previous videos.
Configure and upload ATtiny sketches from VS Code using PlatformIO for Arduino UNO USB setup, define environment variables and upload port and speed, and flash the sketch via AVR platform.
Upload to the Digispark ATtiny85 with Arduino IDE 1.8.x by installing drivers from Dickie Stamp AVR releases, powering via USB, wiring P1 and ground, and running a blink sketch.
Explore p, w, m concepts and how to use them with three LEDs red, blue, and green, and learn to create a 3d design and print it for your project.
Set up an ATtiny project in Visual Studio Code, configure pins and fuses, and implement analogWrite to drive red, green, and blue LEDs with randomized brightness.
Explore building a smooth RGB LED color transition on an ATtiny microcontroller using for loops and a color_two_led helper function to fade red, green, and blue from 0 to 255.
Learn to use an ATtiny microcontroller to drive LEDs and generate random numbers for a dice-style display, with a power check and sequential light patterns.
Configure a fresh ATtiny project for Arduino programmers by setting the platform, upload port, protocol, speed, and fuses, then initialize an LED array and verify with a first test.
Learn how to debounce a button on an ATtiny using a pull-down resistor, millis-based timing, and state-change logic to reliably toggle an LED.
Implement a dice roll effect on an ATtiny for Arduino programmers by generating a 1–6 random sequence and visualizing it with LEDs through a 20-step, gradually slowing 7 ms delay.
Explore ATtiny microcontroller development through a compact 3D-printed pocket dice case, detailing compartments for CR2032 battery, switch, LEDs, and resistors, with precise lid guides and optional logo.
We explored random number generation on ATtiny and Arduino, using a random seed from an analog read on an unattached pin to start differently, and debounced buttons for dice sequences.
Visualize ws2812 led dice with color options and implement a locking mechanism to prevent simultaneous starts. Explore libraries, power supply, and 3d printed housing with a battery fit.
Wire a breadboard-powered ATtiny setup with a five-volt regulator from a nine-volt battery, connect addressable LEDs in the correct data in/out direction, and use pushbuttons with pull-downs on input pins.
Create a new ATtiny84 project in Visual Studio Code, configure eight megahertz clock and fuses, install FastLED, and initialize seven LEDs in GRB with a three-times start blink.
Learn to control FastLED on an ATtiny for Arduino programmers using dice-rolls to drive LED patterns, with switch-case mapping of random numbers to red, green, blue, and yellow LEDs.
This lecture demonstrates a redesigned 3d-printed ATtiny enclosure, detailing button spacings for WS2812 LEDs, surface alignment, air circulation, a screw-down lid, and a voltage regulator with a nine-volt battery.
Explore building a binary real-time clock with an ATtiny microcontroller using a shift register to expand LEDs, and review a reusable sketch and design for your own keychain clock.
Learn how to wire an attiny-based binary clock, including wiring the rtc module, i2c pull-ups, leds, and a shift register on a breadboard.
Discover how the 74HC595N shift register expands microcontroller pins to eight outputs using three inputs, with pinout and wiring for ATtiny and LEDs; future videos cover coding the shift register.
Set up an ATtiny project with the tiny wire m library, configure i2c rtc 0x68, initialize shift register pins, fetch time, and visualize hours and minutes with leds.
Learn shift register control in ATtiny microcontroller development for Arduino programmers by driving six LEDs with software using data and shift pins, including reset handling.
Fetch time from an RTC with TinyWireM, convert seconds, minutes, and hours to binary, and drive a shift register to display minutes on LEDs.
Convert decimal hours to binary and display hours and minutes on LEDs using a clock array on an ATtiny, with a 12-hour mode and a complete shift-register example.
Learn to build a binary clock with ATtiny by using shift registers to expand pins, convert RTC decimal time to binary, and drive LEDs accordingly; attach via Eprint.
Set up a capacitive moisture sensor to detect when to water plants, set a threshold, and use a photoresistor to trigger led or buzzer in daylight.
Wire an ATtiny to power a capacitive soil moisture sensor and a photoresistor while using deep sleep to cut sensor power, switching the supply with an ATtiny pin.
Set up a new ATtiny project for Arduino programmers, include the tiny snore deep sleep library and the tone library, then upload a melody to drive a buzzer.
Initialize all global variables at startup and set pin modes for lcd, power, brightness and moisture sensors; power, read sensors, compare against thresholds, and trigger led or buzzer when dark.
Read photoresistor values and display results on LCD accordingly, using 50 values to determine darkness with a 400 threshold. Control the LED on darkness and apply deep sleep between cycles.
Read the moisture sensor via analog read, map the value to a percentage humidity, and clamp it with calibration checks. Set a boolean flag to trigger actions under ten percent.
Implement the remaining ATtiny loop logic by reading the moisture sensor, evaluating dark and moisture thresholds, and triggering a flashing led and buzzer with optional sound and delays.
Demonstrates deep sleep power optimization for ATtiny microcontrollers by measuring current, using snore with delays, and achieving microamp idle consumption for years of battery life.
Explore practical 3D design for ATtiny-based Arduino projects, detailing a redesigned enclosure with a battery holder, moisture sensor, LED with resistor, photoresistor, and STL-ready 3D printed case.
Present a project idea for ATtiny development using deep sleep with button wakeups to read a plant moisture sensor, display results on a tiny OLED, and calibrate battery voltage.
Wire the battery clip, ground, capacitive moisture sensor, and a 0.91 inch oled display to the ATtiny 45, and power the sensor only when awake to enable deep sleep.
Explore flowchart-driven project setup for ATtiny and Arduino programmers, configuring button and moisture sensor pins, implementing interrupts and deep sleep, and repeatedly reading and displaying sensor and battery data.
Visualize text on an OLED display using the tiny library to verify wiring. Display moisture value and seconds with a six by eight font, then simulate deep sleep and restart.
Learn to display moisture sensor data on an ATtiny microcontroller using an Arduino workflow, converting analog readings to a 0–100% moisture percentage and printing it for alerts.
Learn key takeaways: set up global variables, address the OLED display, visualize moisture sensor data as a bitmap, and apply interrupts with deep sleep for AVR power management.
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
Practical example: Digital dice with random number and LEDs
PraPractical examplexisbeispiel: Digital dice with WS2812b and FastLED
Practical example: Binary clock with RTC Module and Shift Register
Practical example: Plant monitor and Deepsleep with CR2032 Battery
Practical example: Plant monitor with OLED
Practical example: Tones (creating own Melody) as circuit board pendan
Practical example: Transistor circuit with reedswitch and clap detector
Practical example: Temperature sensor with OLED 0,96” at Digispark ATtiny85
Practical example: 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