Installing Attiny13 core files

background image

In an instructable "Make an Attiny13 based IR proximity sensor for $2.42
(http://www.instructables.com/id/Make-an-Attiny13-based-IR-proximity-sensor-
for-2/)" by Dustin Andrews refers to having to install the Attiny13 core files.

Unfortunately the core files that are linked to do not contain the boards.txt file
that will let the Attiny 13 show up as choice under 'Tools-boards' in the IDE. If
you are a novice at installing core files this may seem daunting, but since I just
did it, I thought I'd just share that knowledge with you.

Do the following:
-Download the Attiny cores from: http://sourceforge.net/projects/ard-core13/
(http://sourceforge.net/projects/ard-core13/)
-Go to your sketches folder
-most likely there is a folder called 'hardware' if not, create that.
-open the hardware folder
-create a folder called 'attiny13'
-open that folder
-create a folder called cores
-open that folder
-create a new folder called 'core13'
-so now you have the structure /hardware/attiny13/cores/core13
-open that deepest folder and unzip the attiny core files to that folder
-go back to your /hardware/attiny13 folder
-create a text file called 'boards.txt'
open that file.

Related

(http://cdn.instructables.com/FBT/GJCN/H1O5DHQP/FBTGJCNH1O5DHQP.LARGE.jpg)

About This Instructable

License:

4,503

views

10

favorites

(/member
/diy_bloke/)

diy_bloke (/member
/diy_bloke/)

Follow

I am a physician by trade. After a

career in the pharmeceutical world I
decided to take it a bit slower and do things
I like. Other than my hobbies that involves
grassroots medicine in S.E.&P Asia. I
...read more » (/member/diy_bloke/)

71

Bio:

(/id/Irrigating-your-garden-

with-an-opamp-The-circuit)

(/id/Cheap-PIR-sensor-

for-eg-Arduino)

(/id/Make-a-spigot-for-a-

lightstand-materials)

More by diy_bloke

Attiny13 (/tag/type-id/category-technology/keyword-

attiny13/)

attiny (/tag/type-id/category-technology/keyword-attiny/)

core (/tag/type-id/category-technology/keyword-core/)

arduino (/tag/type-id/category-technology/keyword-

arduino/)

programming (/tag/type-id/category-technology

/keyword-programming/)

Tags:

Programming an
ATTiny13A using Arduino
& servo interpreter
(/id/Programming-
an-ATTiny13A-using-

Installing Attiny13 core files

by diy_bloke (/member/diy_bloke/)

+ Collection

I Made it!

Download (/id/Installing-Attiny13-core-files/?download=pdf)

Favorite

(/)

let's make

share what you make >

(/about/submit.jsp)

(/)

Explore (/tag/type-id/)

Create (/about/submit.jsp)

Contests (/contest/)

Community (/community/)

Login (/you/)

Installing Attiny13 core files

http://www.instructables.com/id/Installing-Attiny13-core-files/

1 z 4

2014-03-12 20:45

background image

paste the following text in that file:

###########################################################################
attiny13int.name=Attiny13 @ 128 KHz (internal watchdog oscillator)
attiny13int.upload.using=arduino:arduinoisp
attiny13int.upload.maximum_size=1024
attiny13int.upload.speed=250 # important for not losing connection to a slow
processor
attiny13int.bootloader.low_fuses=0x7B
attiny13int.bootloader.high_fuses=0xFF
attiny13int.bootloader.unlock_bits=0x3F
attiny13int.bootloader.lock_bits=0x3F
attiny13int.build.mcu=attiny13
attiny13int.build.f_cpu=128000
attiny13int.build.core=core13

###############################################################

attiny13at4.name=ATtiny13 @ 4.8MHz (internal 4.8 MHz clock)
attiny13at4.upload.using=arduino:arduinoisp
attiny13at4.bootloader.low_fuses=0x69
attiny13at4.bootloader.high_fuses=0xff
attiny13at4.upload.maximum_size=1024
attiny13at4.build.mcu=attiny13
attiny13at4.build.f_cpu=600000
attiny13at4.build.core=core13
###############################################################

attiny13.name=ATtiny13 @ 9.6MHz (interne 9.6 MHz clock)
attiny13.upload.using=arduino:arduinoisp
attiny13.bootloader.low_fuses=0x7a
attiny13.bootloader.high_fuses=0xff
attiny13.upload.maximum_size=1024
attiny13.build.mcu=attiny13
attiny13.build.f_cpu=1200000
attiny13.build.core=core13
###############################################################

I got this 'boards.txt' file from here (http://elabz.com/arduino-shrunk-how-to-
use-attiny13-with-arduino-ide/), but had to adapt it a little as that file 'sneekishly'
suddenly changes the programmer in its last definition and also I had big
trouble getting more than 2 boards to show up, until I realised that 2 of the
board definitions carried the same name, so I had to change that as well.

So, just as a final check that you have done everything right:
Go to your hardware folderYou should see a folder there called attiny13
Open that folder
It should have 2 entries: a folder called 'cores' and a text file called 'boards.txt'
open the folder 'cores'
That should have one entry: a folder called 'core13'
open 'core13'. There you should find 13 files with 'h', 'c' and 'cpp' extensions.

To make it easy I made a zip file (http://dl.dropbox.com/u/52513692/attiny13.zip)

(https://docs.google.com/viewer?url=http://dl.dropbox.com/u/52513692

/attiny13.zip&embedded=false&chrome=false&dov=2) that should unpack with
the right directory structure. Unzip it in the 'hardware' folder

See More (/tag/type-id/?q=)

Pimp Your Chocolates with
Arduino IDE and ATtiny13
(/id/Pimp-Your-Chocolates-
with-Arduino-IDE-and-
ATtiny13/)

Chipper Board - ATtiny
Programming Shield
(/id/Chipper-Board-ATtiny-
Programming-Shield/)

Program an ATtiny with
Arduino (/id/Program-
an-ATtiny-with-Arduino/)

by randofo (/member/randofo/)

Programming the ATtiny
(/id/Programming-
the-ATtiny/)

by NaughtySlayer18 (/member

Installing Attiny13 core files

http://www.instructables.com/id/Installing-Attiny13-core-files/

2 z 4

2014-03-12 20:45

background image

Make Comment

(/member
/danm_daniel/)

1 year ago

Reply (CHO095DHCB8RAZL)

(/member
/diy_bloke/)

1 year ago

Reply (CU0A8H1HCB8L39F)

(/member
/WWC/)

1 year ago

Reply (C1QWNZ6H71Y6966)

(/member
/diy_bloke/)

1 year ago

Reply (CULN2UZH71GLVGG)

(/member
/dustinandrews/)

1 year ago

Reply (CUU3JHVH1JUH4JP)

(/member
/diy_bloke/)

1 year ago

Reply (C8UI359H1JUH4LD)

(/member
/diy_bloke/)

1 year ago

Reply (CKBCNCLH1JUH4LJ)

(/member
/diy_bloke/)

1 year ago

Reply (CJX7M7PH1JUH4MC)

danm_daniel (/member/danm_daniel/)

legit, thanks DIY_Bloke

diy_bloke (/member/diy_bloke/) (author) danm_daniel

my pleasure

WWC (/member/WWC/)

Very good!

I was actually trying to install the 13 files and not working. Then i came across
your ible on it and you saved the day. Works perfectly.

Thanks

W

diy_bloke (/member/diy_bloke/) (author) WWC

My pleasure

dustinandrews (/member/dustinandrews/)

Nice work!

Did you also have to change the wiring.c like it says here
(http://tekstop.wordpress.com/2011/12/30/programming-attiny13-using-arduino-
isp-and-all-the-hacking-involved/)? I think I ended up needing to do that to get the
blink program to work at the right speed. It may not matter for the IR sensor.

diy_bloke (/member/diy_bloke/) (author) dustinandrews

No I did not do that. I did not try the
blink program, just quickly a few other
statements and that worked. I did not
really set out to validate the core, just
to instruct how to install the available
one.
A quick test showed me it was working

diy_bloke (/member/diy_bloke/) (author) diy_bloke

Let me add that I am not sure if the
link you gave above is the same core
and I used the 22 IDE, not the 1.0

diy_bloke (/member/diy_bloke/) (author) diy_bloke

I checked a bit further and it seems
that the article about changing the
wiring.c that you provide th elink for,

Installing Attiny13 core files

http://www.instructables.com/id/Installing-Attiny13-core-files/

3 z 4

2014-03-12 20:45

background image

deals with a different core. That wiring.c has references to the 44 and 84,
whereas the one I describe above (that is coming from yr ibble :-) ) does
not have these. Also the header file 'iotn13.h' is not present in the core
(from 'Smeezekitty' you and I link to, suggesting the change in wiring.c
involves a different core.

About Us

Who We Are (/about/)

Advertise (/advertise/)

Contact (/about/contact.jsp)

Jobs (/community/Positions-available-at-Instructables/)

Help (/community?categoryGroup=Help)

Find Us

Facebook (http://www.facebook.com/instructables)

Youtube (http://www.youtube.com/user/instructablestv)

Twitter (http://www.twitter.com/instructables)

Pinterest (http://www.pinterest.com/instructables)

Google+ (https://plus.google.com/+instructables)

Tumblr (http://instructables.tumblr.com)

Resources

For Teachers (/teachers/)

Artists in Residence (/group/air/)

Gift Pro Account (/account/give?sourcea=footer)

Forums (/community/)

Answers (/tag/type-question/?sort=RECENT)

Go Pro Today » (/account/gopro?sourcea=footer)

We're Hiring! » (/community/Positions-available-at-Instructables/)

Mobile

Download our new apps for iOS,
Android and Windows 8!

Android (https://play.google.com/store

/apps/details?id=com.adsk.instructables)

iOS (https://itunes.apple.com

/app/instructables/id586765571)

Windows

(http://apps.microsoft.com

/windows/en-us/app/7afc8194-

c771-441a-

9590-54250d6a8300)

Join our newsletter:

Terms of service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721)

|

Privacy Policy (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079)

|

Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/)

| Mobile Site (http://m.instructables.com)

(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)

Join!

© Copyright 2014 Autodesk Inc. All rights reserved.

English

Installing Attiny13 core files

http://www.instructables.com/id/Installing-Attiny13-core-files/

4 z 4

2014-03-12 20:45


Wyszukiwarka

Podobne podstrony:
Instrukcja instalacji Arduino na AtTiny13
instalacja debiana
INSTALACJE TRYSKACZOWE I ZRASZACZOWE
Urządzenia i instalacje elektryczne w przestrzeniach zagrożonych wybuchem
Instalacje elektroenergetObl1
Projekt Instalacji deponowanie 2
Instalacje odgromowe
Wybrane elementy automatyki instalacyjnej
instalacje grzewczaet
monter instalacji gazowych 713[07] z2 03 u
8 Instalacja spalin wylotowych id
Installation instructions
ARTICLE SUSPENSION STRUT FRONT REPLACE INSTALL
Instalacja urządzeń grzewczych i wymienników ciepła
04 instalacja
Projekt instalacjii elektrycznej budynku mieszkalnego

więcej podobnych podstron