Hello AAC forum,
Working with ATTiny85 to use input from motion detector
to turn on 12 volt LEDs.
Working with info found at
https://blog.hobbycomponents.com/?p=553
a circuit to test the tiny microcontroller was developed.

Using sketch copied herewith below.
The expected result is that the LED would blink on and
off at one second intervals.
The actual result is the LED comes on and stays on.
Thinking that perhaps I had programmed the wrong pin
in the sketch the lead to R1 was touched to the 3 pin
and the same result was achieved. That is, the LED comes on
and stays on. This result also came from touching the
resistor lea to pins 0, 1, and 2.
The circuit is so simple the only component that might be failing
is the MC itself so several different out-of-the-box ATtiny85s
have been tried.
What am I missing?
Thanks.
Allen Pitts
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
modified 8 May 2014
by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 4 as an output.
pinMode(4, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Working with ATTiny85 to use input from motion detector
to turn on 12 volt LEDs.
Working with info found at
https://blog.hobbycomponents.com/?p=553
a circuit to test the tiny microcontroller was developed.

Using sketch copied herewith below.
The expected result is that the LED would blink on and
off at one second intervals.
The actual result is the LED comes on and stays on.
Thinking that perhaps I had programmed the wrong pin
in the sketch the lead to R1 was touched to the 3 pin
and the same result was achieved. That is, the LED comes on
and stays on. This result also came from touching the
resistor lea to pins 0, 1, and 2.
The circuit is so simple the only component that might be failing
is the MC itself so several different out-of-the-box ATtiny85s
have been tried.
What am I missing?
Thanks.
Allen Pitts
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
modified 8 May 2014
by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 4 as an output.
pinMode(4, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(4, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(4, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}