
In Stock
Price: KSH 400.00
ATTINY85-20PU DIP-8 IC MCU - Overview
The ATTINY85-20PU is a small and efficient 8-pin microcontroller from the Atmel (now Microchip) ATTINY series. It is widely used in small, low-power projects where a full-sized Arduino may be overkill. With 8 KB of flash memory, 512 bytes of SRAM, and 6 I/O pins, it is a great option for projects where space and power consumption are important factors.
Pinout
Here is the pinout diagram for the ATTINY85-20PU:

Wiring Instructions
To wire the ATTINY85-20PU to an Arduino for programming, follow these steps:
- VCC (Pin 8): Connect to the 5V supply from your Arduino board.
- GND (Pin 4): Connect to the ground (GND) on your Arduino board.
- Reset Pin (Pin 1): Connect to an appropriate reset circuit or leave unconnected if using the internal reset on Arduino.
- Clock (Pin 2): Connect to a crystal oscillator or a resonator for accurate clock timing, or use the internal clock if you prefer.
- I/O Pins (Pin 3, 5, 6, and 7): Connect to the desired peripherals, such as sensors, LEDs, or motors. These pins can be configured as inputs or outputs in your code.
Sample Code
Below is a simple example to blink an LED connected to pin 0 of the ATTINY85. This code can be uploaded using Arduino IDE with the ATTINY85 bootloader installed:
void setup() { pinMode(0, OUTPUT); // Set pin 0 as an output } void loop() { digitalWrite(0, HIGH); // Turn the LED on delay(1000); // Wait for 1 second digitalWrite(0, LOW); // Turn the LED off delay(1000); // Wait for 1 second }
Applications
The ATTINY85-20PU is perfect for small embedded applications. Some of the common use cases include:
- Battery-powered projects
- Low-power sensors
- LED projects
- Home automation
- Small robotics
Key Features
- 8-pin DIP package
- 8 KB Flash memory
- 512 Bytes SRAM
- 6 I/O pins
- Internal 8 MHz clock
- Low power consumption