The ATtiny85 is one of the most popular microcontrollers for ultra-compact, battery-powered maker electronics and wearable circuits. This online workbench allows you to write C++ Arduino code, connect peripheral sensors and LEDs, and simulate everything directly inside your browser.
1. Understanding the ATtiny85 DIP-8 Pinout
Despite its miniature 8-pin size, the ATtiny85 packs a full 8-bit AVR RISC processor running at up to 16MHz internal clock with 8KB Flash ROM and 512 bytes of RAM.
PB0 (Pin 5) - MOSI / SDA / PWM0
Digital Pin 0 with hardware PWM output and I2C Data (SDA) / SPI MOSI capabilities.
PB1 (Pin 6) - MISO / PWM1
Digital Pin 1 with hardware PWM output (Timer0 OCR0B / Timer1) and SPI MISO.
PB2 (Pin 7) - SCK / SCL / ADC1
Digital Pin 2, 10-bit Analog Input A1, I2C Clock (SCL), and SPI Clock (SCK).
PB3 & PB4 (Pins 2 & 3) - ADC3 / ADC2
Digital Pins 3 and 4 with 10-bit Analog input channels (A3 and A2) for sensors and potentiometers.