A fork of shimniok's ( github.com/shimniok ) fork of arduino-tiny, which made an attempt to support the Tiny841. All work appears to have stopped on that core, and it was never in a state where sketches could be compiled (it looks like the initial work was never completed).
This fork aims to finish what he started and add working support for the ATtiny841 on Arduino.
Additionally, it brings in support for the ATTiny1634, brought in from rambo's 1.0.6 ATTiny1634 core, and the ATTiny828
AS OF 7/9/2015 PLEASE RE-BURN BOOTLOADER TO ANY 8MHZ BOARDS I was too ambitious trying to make these work at 115200 baud upload, and it wound up being incredibly picky. Seems to work reliably at 57600.
When uploading sketches via ISP, due to limitations of the Arduino IDE, you must select a programmer marked ATTiny Classic or ATTiny Modern from the programmers menu (or any other programmer added by an installed third party core) in order to upload properly to most parts.
This core can be installed using the board manager. The board manager URL is:
http://drazzy.com/package_drazzy.com_index.json
Due to a bug in 1.6.6 of the Arduino IDE, new board manager entries are not visible the first time Board Manager is opened after adding a new board manager URL.
ATtiny 828 pin mapping. All pin numbers match ADC and PCINT numbers
// 16* 26 24 14
// 17 27 25 15
// PC0 PD2 PD0 PB6
// PC1 PD3 PD1 PB7
// _________________
// 18 RX PC2 | * | PB5 13
// 19 TX PC3 | | PB4 12
// 20 * PC4 | | PB3 11
// VCC | | GND
// GND | | PB2 10
// 21 * PC5 | | PB1 9
// 22 * PC6 | | AVCC
// 23 PC7 |_________________| PB0 8
// PA0 PA2 PA4 PA6
// PA1 PA3 PA5 PA7
// 0 2 4 6
// 1 3 5 7
For use with Optiboot, the following components and connections are required:
An example amenable to home etching can be found at http://drazzy.com/e/boards/boards.php
Suitable breakout boards can be purchased from my Tindie shop:
841: https://www.tindie.com/products/DrAzzy/attiny84184-breakout/
1634: https://www.tindie.com/products/DrAzzy/attiny1634-breakout-wserial-header-bare-board/
828: https://www.tindie.com/products/DrAzzy/atmega-x8attiny-x8828atmega-x8pb-breakout/
First ensure the Arduino software is correctly installed, and that the IDE is not running during the installation process.
Locate your Arduino Sketch folder. This is the folder where the Arduino IDE stores Sketches, typically located in your Documents folder.
Ensure the "hardware" folder exists under the Arduino Sketch folder. If it is not there, create it.
Download Arduino-Tiny-841 from github as a ZIP file, and extract it into the "hardware" folder. Alternately, you can clone the github repo to that location - this allows you to simply sync it to pick up the latest changes to the core. For example, if the Arduino Sketch folder is...
C:\Users\YourName\Documents\Arduino
After extracting, the following files / folders should exist...
C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\LICENSE C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\avrdude.conf C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avrdude_conf16x.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avrdude_conf106.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\Boards106.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\Boards.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\ChangeLog C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\README C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\README.md C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\platform.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\programmers.txt C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\bootloaders\ C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\cores\
The following folder should contain the source files for the Arduino-Tiny core...
C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\cores\
You want it to look like this:
Modifying avrdude.conf should no longer be necessary, ever as of 8/22/2015 changes.
Windows
Locate avrdude.conf - typically in C:\Program Files (x86)\Arduino\tools\avr\etc
If you are using Windows Vista or later, right-click avrdude.conf and choose the Security tab. Select "Users", and see if there is a checkmark in the "Allow" column for "Full Control". If not, click Edit, select Users, and click the checkbox to Allow Full Control. Apply.
Open avrdude.conf using any text editor. At the end of the file, copy+paste the contents of avrdude_conf_16x or 106 (depending on which version of the IDE you are using)
If you are using Arduino 1.0.x, move the contents of C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\avr\ to C:\Users\YourName\Documents\Arduino\hardware\arduino-tiny-841\
OSX
~/Documents/Arduino
)cat ~/Documents/Arduino/hardware/arduino-tiny-841/avrdude_conf_16x.txt | pbcopy && pbpaste >> /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf
IF YOU ARE USING ARDUINO 1.0.x, you must update the compiler toolchain
Download and install Atmel Studio 6.2 (available from the Atmel website).
Locate the location of the Arduino toolchain, typically in:
C:\Program Files (x86)\Arduino\tools\avr
If using Windows Vista or later, right-click avr folder, Security tab. Select "Users", and see if there is a checkmark in the "Allow" column for "Full Control". If not, click Edit, select Users, and click the checkbox to Allow Full Control. Apply.
Copy the AVR toolchain from Atmel Studio over the old Arduino Toolchain, replacing files when prompted.
C:\Program Files\Atmel\Atmel Toolchain\AVR8 GCC\Native(version)\avr8-gnu-toolchain
You must leave the old toolchain there, and copy these over it, because there are files needed by Arduino in addition to the toolchain that are located in the same directory.