ATtiny85 and latest IDE

Please excuse my mental state firing after top-dead center.

I'm trying to get the attiny85 board in my boards manager.
I'm using IDE 2.3.2

I've read through several older posts using older IDE versions, I've had no luck.... probably due to my lack of experience with it.

I've tried the adafruit trinket, i've tried using a nano as ISP and went through a few youtube videos on how to do that.

no success.

Can any one put this in a way my toddler can understand it?
or post a good link to how to do it.

This is the most recent attempt:
GitHub - SpenceKonde/ATTinyCore: Arduino core for ATtiny 1634, 828, x313, x4, x41, x5, x61, x7 and x8

but I cant get it to work. This is also in the closest IDE version on an older post i found. (IDE 2.2.1 i think it was)

The instructions for manual install mention a sketchbook folder. I don’t have a sketchbook folder.

Thank you.

This is the link I use... I noticed this past week my IDE warned that the file (site) was not found... but no errors today.

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

No luck on my end with that.
I’m getting an error

Does "2.x" still have

File
    Preferences

Just add this to the list --
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

Boards Manager Installation

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

note @hmeijdam :This original URL gives a certificate error for a few months now
http://drazzy.com/package_drazzy.com_index.json

luckily a helpful person put up a copy of the file on this URL, so that the boards manager can install attinycore after you add below URL to your IDE "Additional boards manager URLs" that you can find under menu item "file->preferences".

https://descartes.net/package_drazzy.com_index.json

  1. File->Preferences on a PC, or Arduino->Preferences on a Mac, enter the above URL in "Additional Boards Manager URLs
  2. Tools -> Boards -> Boards Manager...
  3. Select "ATTinyCore by Spence Konde" and click "Install".

This did work as far as getting an 85 in the boards manager, but for clarification, this is the only board for the 85 after i installed that.

ATtiny85 (Micronucleus / DigiSpark)

does this work for the digispark USB type or will this also do the ISP type?
like using the nano as the programmer straight to the attiny?

I think that using "Arduino UNO Board", "ArduinoISP Sketch", and "Arduino as ISP (Programmer)", you can "set the fuse bits" and "storing Bootloader Program" into your fresh ATtiny85 by performing the "Burn Bootloder" process.

After that the MCU can be installed in the 8-pin socket of the following HW-260 Breakout Board (Fig-1) which is now a colone of Digispark ATtiny85 Dev Board (Fig-2).

Attiny85DevBoard
Figure-1:

DigisparkAttiny85Board
Figure-2:

Hasn't 'digispark' gone bye-bye?

Digistump Digispark no longer available? - Hardware - Arduino Forum

Some people in the Foum have reserved the Bootloader Program, the Fuse bit values, the schematic, and the Windows Driver. So, if anyone needs these, he can can get them from Forum Members on request.

AttinyCore supports a whole list of Attinies:

or I don't understand your question.

1 Like
Sketch uses 542 bytes (8%) of program storage space. Maximum is 6586 bytes.
Global variables use 6 bytes (1%) of dynamic memory, leaving 506 bytes for local variables. Maximum is 512 bytes.
Failed uploading: uploading error: exit status 0xc0000135

Sorry for the delay, I've been busy with other life things.
Above is the error code i get when using the board shown above and the programmer from post7 fig1.

If you´re using the Digispark board, make sure to connect it to a USB 2.0 port, not the modern 3.0 ones. Only connect the board after the IDE tells you to.

I only have 3.0 (blue usb) on this laptop.
But in some research, that shouldn't matter. (unless its a really specific arduino/digispark thing)

This is what i'm currently trying.

  1. connect to nano
  2. install arduino ISP from examples with programmer set to ArduinoISP
  3. switch to basic blink sketch to be loaded on the 85 as a test.
  4. Change programmer to ardunio as ISP
    5a) this is loading the blink sketch onto the nano and pin0 (rx) blinks.
    5b) attempt to "burn bootloader" with programmer at Ardunio as ISP... below is the error message for that.
avrdude: Expected signature for ATmega328P is 1E 95 0F
         Double check chip, or use -F to override this check.
Failed chip erase: uploading error: exit status 1

Unfortunately for me, I've only dealt with actual arduino boards, this is my first time trying to add non-arduino boards to the IDE.

are there any other options as far as boards comparable to the 85 that are more user friendly to the arduino IDE? and available as a dip package?
the 328 dip is a bit obnoxious for the size i'm trying to get to on my PCB.

Thank you all for your continued support.

If i cant get this to work then my other option is to find a footprint for the promini that works with KiCad and build a shield for that.

Ok, so it´s now clear for me that you don´t have a Digispark board and you´re trying to program the Attiny using a Nano as ISP. Regarding your steps:

  1. connect to nano
  2. upload arduino ISP from examples (with programmer set to ArduinoISP--> not yet)
  3. with everything turned off, make the connections between the Nano and the Attiny85. Make sure to add a 10uF capacitor between the Nano reset and GND pins
  4. turn everything on again
  5. now change the programmer to Arduino as ISP
  6. choose the Attiny Board on the IDE and configure it according to the settings you want
  7. click on "burn bootloader" (this step just need to be done once)
  8. switch to whatever sketch to be loaded on the 85 as a test.
  9. don´t use the upload button, use Sketch > Upload Using Programmer instead.
  10. be happy

Ok. I got all the way to step 7 sucessfully.

When uploading the test sketch which board do I select?
Nano (upload using Programmer) or the 85 board?
if the 85 board... which 85 board under the tinyCore selections?

Also, do i need to remove the cap after the "burn bootloader" process?

in my other research i came across using the 1Mhz selection. does that matter as well?

Thank you.
I'm getting alot closer to step 10 lol

I got it loaded!!!

after the bootloader(your step 7) this is how i got it to load.

  1. switch to blink sketch. ( pinMode(0,OUTPUT) blink with delay)
  2. switch board to micronucleous
  3. clock speed to 1Mhz
  4. arduino as ISP
  5. Upload using programmer
  • i did leave the capacitor in.

Thank you very much. :slight_smile:

1 Like

Please, specify the connection digarm as to which DPin of NANO to which PPin (physical pin) of ATTiny85.

Which one of the following to choose?
ATtiny 25/45/85
ATtiny85 (Microucleus / Digispark)

Why is needed the above capacitor?

I´m very happy for that!

The clock speed when you upload the sketch must match the one you set when you burned the bootloader. I use 16 Mhz in my circuits.

Thanks for the helping tips, but:

  1. We´re not at a classroom;
  2. I know you know the answers to your questions;
  3. OP already managed to solve his problem.
    :wink: