# ATTiny85 Not Working at all

I am using Arduino to program my ATTiny85 like this.

I am trying to make a simple blink example, here's the code:

void setup() {
pinMode(0, OUTPUT);
}

void loop() {
digitalWrite(0, HIGH);
delay(1000);
digitalWrite(0, LOW);
delay(1000);
}


Connected to my programmer (which has a LED connected to pin 0) the LED flashes. When I plug it in to my circuit it does not work (the LED stays on.)

simulate this circuit – Schematic created using CircuitLab

• Please tell me if the tags don't make sense (I am very new). – nedla2004 Aug 7 '17 at 2:34
• A: Try changing the delay(1000) to delay(1). B: switch place with the HIGH and LOW in the code. If you can see that it blinks or is more dim after doing A then there's something wrong with the clock divider. If it still stays on after doing A then there's something else weird going on. If it still stays on after doing B then there's something wrong happening before it enters the loop part of the code. – Harry Svensson Aug 7 '17 at 3:46
• Hi. Just edited the circuit for easy viewing. Have you tried adding 470nF cap to Gnd at the Reset pin? – Jason Han Aug 7 '17 at 5:11
• When connected to my programmer it works, when I plug it into my circuit it doesn't work. From this line I'd be more inclined to say there is a mistake/error in your circuit as opposed to the ATTiny85 itself. – Doodle Aug 7 '17 at 7:49
• @JasonHan he will read 5V. Otherwise the LED wouldn't light up. @ Nedla2004, if it stays on at full power for A and B then there's something else MUCH wrong. Take a picture of your setup. And what exactly are you using to upload to the ATTiny? (Is it an Arduino in programmer mode? Or an actual programmer?) Are you sure you're uploading to the ATTiny? – Harry Svensson Aug 7 '17 at 16:50