using_attiny_microcontrollers_with_arduino_on_windows_11
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| using_attiny_microcontrollers_with_arduino_on_windows_11 [2025/08/28 13:54] – tkbletsc | using_attiny_microcontrollers_with_arduino_on_windows_11 [2025/08/28 14:35] (current) – tkbletsc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Using ATtiny microcontrollers with Arduino on Windows 11 ====== | ====== Using ATtiny microcontrollers with Arduino on Windows 11 ====== | ||
| - | It's 2025, and there' | + | ATtiny microcontrollers such as the ATtiny85 are nice, because they're dirt cheap and can run with no outside components. However, now (in August |
| ===== Arduino support ===== | ===== Arduino support ===== | ||
| - | The core you want is [[https:// | + | Hardware support for a given family of chips on Arduino is called a " |
| * This core can be installed using the boards manager. The boards manager URL is: \\ '' | * This core can be installed using the boards manager. The boards manager URL is: \\ '' | ||
| * File→Preferences on a PC, or Arduino→Preferences on a Mac, enter the above URL in " | * File→Preferences on a PC, or Arduino→Preferences on a Mac, enter the above URL in " | ||
| * Tools → Boards → Boards Manager…, Select " | * Tools → Boards → Boards Manager…, Select " | ||
| + | ===== Setting up your sketch ===== | ||
| + | Writing the code for the ATtiny series is out of scope, so we'll assume you have a sketch written. If you need one to test, why not the plain " | ||
| + | |||
| + | Set your " | ||
| + | |||
| + | With that chosen, here are key Arduino settings you'll need. Under the Tools menu: | ||
| + | * **Chip**: Pick the exact chip model you have. | ||
| + | * **B.O.D. level**: this enables auto-restart on low voltage (" | ||
| + | * **Clock source**: These chips can work either with an internal oscillator (no external components needed, but mediocre time accuracy) or an external clock source (you need a crystal or other clock source, but it can be very accurate). For most mild tasks, I recommend "8 MHz (internal)" | ||
| + | * **millis()/ | ||
| + | * **Programmer**: | ||
| + | |||
| + | For the settings marked "Only set on bootloader", | ||
| + | |||
| + | ===== Programming ===== | ||
| + | |||
| + | You can program it several ways. Here's two: | ||
| + | * **USBasp**: A dirt cheap dedicated USB programmer. I'll be documenting this. USBtinyISP wasn't tested, but likely works similarly. | ||
| + | * **Arduino as ISP**: Use an existing Arduino Uno, Nano, or similar as a programmer. I'm not gonna document this approach, but it googles easily. | ||
| + | |||
| + | ==== Programming with USBasp ==== | ||
| + | |||
| + | === Getting the right USBasp driver === | ||
| + | |||
| + | To allow Windows 11 to support USBasp, you need to download [[https:// | ||
| + | |||
| + | (Note: In Windows 10, libusb-win32 was recommended, | ||
| + | |||
| + | === Hooking up to the chip === | ||
| + | |||
| + | If the thing you're programming is a board with a standard 6- or 10-pin programming port, you can just hook it to the USBasp with an appropriate ribbon cable. | ||
| + | |||
| + | If the thing you're programming is a bare ATtiny chip (e.g. on a breadboard), | ||
| + | |||
| + | ^ Signal ^ Color ^ | ||
| + | | VCC | Red (standard VCC color) | | ||
| + | | GND | Black (standard GND color) | | ||
| + | | RESET | White (reset = blank slate = white) | | ||
| + | | SCK | Yellow (socks, but old and nasty) | | ||
| + | | MISO | Green (miso soup can be green) | | ||
| + | | MOSI | Blue (hey that's a common color we haven' | ||
| + | |||
| + | (Yeah my mnemonics are dumb/bad, but they work for me) | ||
| + | |||
| + | === Initiating programming === | ||
| + | |||
| + | In Arduino 2.x, they did a dumb thing, and made the upload button NOT respect the ATtinyCore' | ||
using_attiny_microcontrollers_with_arduino_on_windows_11.1756414478.txt.gz · Last modified: by tkbletsc
