Go Down

Topic: Programmed an attiny25 with Arduino IDE (Read 12666 times) previous topic - next topic

adamdb

I wanted to report that I also have had success programming a Tiny25 with the code from this site http://code.google.com/p/arduino-tiny/

For this one I also had to modify the boards.txt file to include entries for the Tiny25 which I created by copying the Tiny45 section and changing the relevant bits to Tiny25.

I was able to download the above LCD write sketch and also did tests of analogRead, analogWrite, tone, noTone, etc.

It's nice to have a few options.  :)

Coding Badly

Quote
I wanted to report that I also have had success programming a Tiny25 with the code from this site http://code.google.com/p/arduino-tiny/

Excellent!

Quote
That is exactly why I used SoftwareSerial, it didn't need any changes to run

The latest version of the Arduino Tiny core includes "Tiny Debug Serial".  If you only transmit, it should make a very nice replacement for SoftwareSerial.  I beleive it's smaller and the timing should be dead-on.  Some details are here...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285218245/25#25

Quote
For this one I also had to modify the boards.txt file to include entries for the Tiny25 which I created by copying the Tiny45 section and changing the relevant bits to Tiny25.

Please post your changes.  I'll add them to the Arduino Tiny core.

Quote
I was able to download the above LCD write sketch and also did tests of analogRead, analogWrite, tone, noTone, etc.

Any problems?

adamdb

This is the addition I made to the boards.txt file.
Code: [Select]
###########################################################################
attiny25at8.name=ATtiny25 @ 8 MHz

# The following DO work (pick one)...
attiny25at8.upload.using=arduino:arduinoisp

attiny25at8.upload.maximum_size=2048
#attiny25at8.upload.speed=19200

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; [CKSEL=0010 SUT=10]; default value
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny25at8.bootloader.low_fuses=0xE2
attiny25at8.bootloader.high_fuses=0xD7
attiny25at8.bootloader.extended_fuses=0xFF
attiny25at8.bootloader.path=empty
attiny25at8.bootloader.file=empty45at8.hex

attiny25at8.bootloader.unlock_bits=0xFF
attiny25at8.bootloader.lock_bits=0xFF

attiny25at8.build.mcu=attiny25
attiny25at8.build.f_cpu=8000000L
attiny25at8.build.core=tiny

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

It would be easy enough to also include make a 1mHz section.

I had no issues with any of the library functions that I listed above.

I will check out the Tiny Debug Serial.  Sounds like a great addition.

Coding Badly


Thanks.  The next update will include definitions for the ATtiny25 @ 8 MHz and the ATtiny25 @ 1 MHz.

GregaG87

Quote
They probably don't have interest because an ATMega2560 SMD chip is practically smaller than an DIP ATTiny85 so what would be the point I guess.

price maybe...

Go Up