SpenceKonde / arduino-tiny-841

Arduino core for ATtny841, 828, 1634 and 441
http://drazzy.com/e/tiny841.shtml
Other
28 stars 8 forks source link

ATTiny Modern - 441, 841, 828, 1634 for Arduino 1.6.x (1.6.3+ recommended) THIS CORE HAS BEEN MERGED WITH https://github.com/SpenceKonde/ATTinyCore

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.

Board Manager Installation

This core can be installed using the board manager. The board manager URL is:

http://drazzy.com/package_drazzy.com_index.json

  1. File -> Preferences, enter the above URL in "Additional Board Manager URLs"
  2. Tools -> Boards -> Board Manager... *If using 1.6.6, close board manager and re-open it (see below)
  3. Select ATTinyCore (Modern) and click "Install".

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.

Status

Pin Mapping

ATtiny 441/841

x41 pin mapping

ATtiny 1634

1634 pin mapping

ATtiny 828


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

Hardware

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/

Caveats

Manual Installation

All Versions:

First ensure the Arduino software is correctly installed, and that the IDE is not running during the installation process.

You want it to look like this:

core installation

1.0.x-specific additional steps

Modifying avrdude.conf should no longer be necessary, ever as of 8/22/2015 changes.

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