isp_for_attiny13
If you want to send us your comments, please do so. Thanks
More on comments
ISP for ATtiny13
Arduino IDE: Version 1.8.8
Hardware: Arduino Nano on a breadboard
GND is ground is 0 Volt
- Test if the Arduino Nano works by installing the blink sketch with a few blink rates
- Upload the ArduinoISP sketch: File | Examples | 11.ArduinoISP | ArduinoISP to the Nano
- In the Adruino IDE do File | Preferences | Settings tab (if there is more than one entrys eparate hem with a , (comma and a space)
- Paste the URL of the hardware package: https://raw.githubusercontent.com/sleemanj/optiboot/master/dists/package_gogo_diy_attiny_index.json into the Additional Boards Manager URLs: field and click the Ok button
- In the Adruino IDE do Tools | Board | Boards manager
- In the Type rolldown menu select All
- In the list scroll down to the end where you probably will find the DIY ATtiny by James Sleeman entry
- Check the rolldown menu next to the Install button if the latest version is going to be installed. If not select the newest version
- Click the Install button
- Click the close button
- Turn of the power of the Nano
- Connect 10uF capacitor between the reset and GND of the Nano (now it is not possible to program the Nano)
- Insert the Attiny13 into the breadboard
- Connect the 6 pin ISP header to the ATtiny13
Nano ISP header | ATtiny13 pin | Function |
---|---|---|
1 | 6 | MISO |
2 | 8 | Vcc |
3 | 7 | SCK |
4 | 5 | MOSI |
5 | n.c. | |
6 | 4 | GND |
- Connect the D10 pin of the Nano to pin 1 of the ATtiny13
- Connect a resistor of 330 Ohm for testing purposes to pin 3 of the ATtiny. The other end of the resistor is connected to the long leg of the LED, use a free connection strip on the breadboard. The short leg of the LED goes to GND
- In the Arduino IDE goto Tools
- Select Board: and scroll down to the bottom and in the chapter DIY ATtiny select ATtiny13
- Processor Version: : ATtiny13
- Processor Speed: : 9.6 MHz Internal Oscillator
- Use Bootloader: : No (ISP Programmer Upload)
- Millis, Tone Support: : Millis Available, No Tone
- Millis Accuracy: : Better Or Equal 1.666% Error (Default)
- BOD: : BOD 4.3V
- Compiler LTO: and select LTO enabled (default)
- Print Support: : Bin, Hex, Dec Supported
- Serial Support: : Half Duplex, Read+Write
- Link Time Optimisation: : LTO Enabled
- Brown-out Detection Level: : 2.7V
- Override Clock Source: : Default
- Override Frequency: : Default
- Turn on the Arduino Nano
- Select Port and select the right USB port
- Do Burn Bootloader
Paste this Blink sketch into a new Arduino sketch and save it as BlinkATtiny13
/* Blink Turns an LED on for the given time then off for the given time repeatedly. http://www.arduino.cc/en/Tutorial/Blink For the ATtiny13 */ #define LEDpin 4 #define Duration 250 // The setup function runs once when you press reset or power the board void setup() { // initialize digital pin 4 (pen 3 on the ATtiny13) as an output. pinMode(LEDpin, OUTPUT); } // The loop function runs over and over again forever void loop() { digitalWrite(LEDpin, HIGH); // turn the LED on (HIGH is the voltage level) delay(Duration); // wait for a second digitalWrite(LEDpin, LOW); // turn the LED off by making the voltage LOW delay(Duration); // wait for a second }
- Program the ATtiny13 using Sketch | Upload Using Programmer CTRL+SHIFT+U
Alternative hardware packages
Not tested by us:
Only for the ATtiny 24/44/84 and 25/45/85: https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json
Hardware packages that did not work
- Paste this URL: https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json into the Additional Boards Manager URLs: field and click the Ok button
- In the Adruino IDE do Tools | Board | Boards manager
- In the Type rolldown menu select All
- In the list scroll down to the end where you probably will find the MicroCore by MCUdude entry
- Check the rolldown menu next to the Install button if the latest version is going to be installed. If not select the newest version
- Click the Install button
- Click the close button
- In the Arduino IDE goto Tools and select
- Board: and scroll down to the bottom and in the chapter MicroCore select ATtiny13
- BOD: : BOD 4.3V
- Compiler LTO: : LTO enabled (default)
- Clock: : 9.6 MHz internal osc.
- Programmer: : Arduino as ISP
- Turn on the Arduino Nano
- Port and select the right USB port
- Do Burn Bootloader
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
isp_for_attiny13.txt · Last modified: 07-02-2019 00:12 by wim