Free ATtiny85 SimulatorCycle-accurate AVR emulation
Write Arduino code for the ATtiny85 and run it instantly, with every AVR opcode emulated faithfully. All 6 I/O pins, USI for I²C and SPI, Timer0 and Timer1 PWM, a 10-bit ADC and the watchdog. Wire it to real SPICE analog circuits. Free, with no account.
Free and open source · Cycle-accurate avr8js · No account
ATtiny85 specs in the simulator
Everything you need to develop ATtiny85 firmware without a programmer or breadboard.
Core
AVR 8-bit RISC, 8 KB flash, 512 B SRAM, 512 B EEPROM. DIP-8 pinout (PB0–PB5 plus VCC and GND).
GPIO
6 I/O pins on PORTB, configurable as input, output or pull-up. Pin-change interrupts (PCINT0–PCINT5) and external INT0.
Timers and PWM
Timer0 (8-bit) with two PWM channels on PB0 and PB1. Timer1 (8-bit) with a high-speed mode and two PWM channels on PB1 and PB4, for higher-frequency PWM.
ADC
10-bit ADC with 4 input channels (ADC0 on PB5, ADC1 on PB2, ADC2 on PB4, ADC3 on PB3). Internal 1.1 V reference.
USI
The Universal Serial Interface bit-bangs I²C (TWI) and SPI. Works with TinyWireM, TinyWireS and standard SPI libraries.
Watchdog and sleep
Watchdog timer with reset and interrupt modes. Power-down, ADC noise reduction and idle sleep modes, handy for low-power demos.
What can you build?
ATtiny85 projects shine when they're small, low-power and analog-aware, which is where Eidolon's built-in SPICE solver helps.
Blink and PWM fade
The classic intros: hardware PWM LED fading on PB1 via Timer0, and high-speed Timer1 PWM on PB4.
Button-driven LEDs
Read a button on PB2 with the internal pull-up, debounce it in firmware and drive an LED on PB0.
NTC temperature
Read an NTC thermistor and fixed-resistor divider on ADC1. The SPICE solver returns the real divided voltage to analogRead().
I²C peripherals via USI
Talk to an OLED, an EEPROM or an RTC on PB0 and PB2 using TinyWireM. Bus traffic is emulated end to end.
WS2812 and shift registers
Bit-bang through the USI to drive a WS2812 string or a 74HC595 shift register from a couple of pins.
Analog switching
Drive a MOSFET gate from PB1 PWM through a SPICE-modelled gate-charge curve and see the slew rate's effect on the load.
Frequently asked questions
Develop ATtiny85 firmware without hardware
Download Eidolon or open the editor, then compile, simulate and probe your firmware.