attiny13

does anyone know why I cant program my attiny13 ...is there a simple way ?

Read Arduino core for attiny13 thread.
It is the easiest way.

I have read that there is no support for attiny13 with version 1.6.4 of the IDE has anyone heard that or maybe know how I can get these to work ? I ordered some and hate to waist them

Once the tiny13 core is installed correctly the IDE should work fine, I recently asked if the latest tiny13 cores are working with latest IDE and the answer was YES

I add attiny13 install file for 1.6.4 IDE :
ATTiny13 for 1.6.4

Thanks guys

question has anyone tested this with the 13 ? and can honestly say it does work ?

WOOooooooo!! WORKS! Ive got an attiny13a blinking like crazy !!

well how do I fix the timing ? the chip is working but the timing is off quit a bit

External clock source or adjust the OSCCAL value.

what kind of project are you working on? :slight_smile:

where do I find the occal value ?

Setup version: Arduino 1.6.5 Stable
platform: Linux Ubuntu 14.04 LTS
sketchbook: /home/me/Arduino/

I installed attiny from Github successfully using Boards Manager and I am wanting to add the ATTiny13 files but the hardware folder is missing from the sketchbook folder.

I did a partition wide search for location of .h and .cpp files that should be installed with no results. Online howto's say that it can be done.

What have I done wrong.

Board manager installations are buried in user folders. You don't need to modify them.

Just install the ATTiny13 core. It is totally separate from the other ATTiny cores.

If you're doing manual (not board manager install) you will need to create the hardware folder in sketchbook if it is not already there.

I'll have to get back to you. The last session ran well into the night. Tonight I will switch to the FlightSim computer running Win7 and Arduino 1.04?. The problem will probably be traced back to my original installation some time before upgrading to 1.6.5 When attiny84 and attiny85 are up and running, why can I not find the files?

LowTech:
I'll have to get back to you. The last session ran well into the night. Tonight I will switch to the FlightSim computer running Win7 and Arduino 1.04?. The problem will probably be traced back to my original installation some time before upgrading to 1.6.5 When attiny84 and attiny85 are up and running, why can I not find the files?

They're in (user folder)\AppData\Roaming\Arduino or something like that (it's a hidden folder), and the layout of the files is slightly different for board-manager installed cores. You're not supposed to use board manager if you want to modify the core files yourself. Also, the core for the 84/85 is pretty minimal, if you mean the one most people use (it doesn't contain it's own core files, just some variants and a boards.txt - I think the tiny13 cores have to actually supply a modified core, like my just-about-every-attiny-cores do).

Hi.

I am new here and perhaps you could help me. I am trying to program Attiny13 with the following short sketch which uses ADC (analogread()) function, that is supposed to work like this:

  • reads voltage from voltage divider using photoresistor - analogread() from A1 (ADC1)
  • turns LED on/off whenever there is low light (covering photoresistor) - digitalwrite() LED at 3 (PB3)

however it does not work on each of the ADCs:

  • works when I use A3 (ADC3) as analogread
  • does not work when I use A1 (ADC1) or A2 (ADC2) as analogread

Do you know what might be the reason? Same code, but works on 1 of the ADCs only.

I program uC with USBASP programmer, but I don't think this matters since with 1 of the ADCs all works fine. Also it works on Arduino Mega 2560 and uC Atmega88, so something wrong with Attiny13.

Sketch that does not work:


int state = 0;

void setup()
{
pinMode(3, OUTPUT); // THIS IS WHERE LED IS CONNECTED
}

void loop()
{
int reading = analogRead(A1); // THIS IS WHERE READING FROM PHOTORESISTOR IS DONE

if (reading < 100) // ONCE I COVER PHOTORES. IT GOES INTO THIS LOOP AND TURNS ON/OFF THE LED
{
state = !state;
digitalWrite(3, state);
delay(200);
}

delay(100);
}