I'm out of ideas and hoping someone can help. I have a 12v - 15v source. I also have a separate 12v - 15v source that I want to use as an input. I've used a MIC5219 5v regulator to lower both to usable levels for the Attiny85.
When the 5v VCC is applied, I have RGBW LEDs go through a sequence and then stop on one color. From there, if the other 12v signal delivers 5v to the PB1 input on the Attiny, then I double the brightness of the LEDs. The loop continues and it either goes back to normal or remains brighter. The function is like that of a brake light.
The problem is that when I hold the 5v signal on PB1, the lights start to flicker and the Attiny reboots, repeating the initial color sequence.
I've tried pulling down PB1 with a 10k resistor to ground. I've tried swapping the regulator with a series resistor (240 ohm and then 1000 ohm to limit current more) and 0.5w zener limiting the voltage on PB1 to 3.5-4.0v to ensure it stays below VCC. None of these things worked. I'm out of ideas.
Any help would be deeply appreciated.
When the 5v VCC is applied, I have RGBW LEDs go through a sequence and then stop on one color. From there, if the other 12v signal delivers 5v to the PB1 input on the Attiny, then I double the brightness of the LEDs. The loop continues and it either goes back to normal or remains brighter. The function is like that of a brake light.
The problem is that when I hold the 5v signal on PB1, the lights start to flicker and the Attiny reboots, repeating the initial color sequence.
I've tried pulling down PB1 with a 10k resistor to ground. I've tried swapping the regulator with a series resistor (240 ohm and then 1000 ohm to limit current more) and 0.5w zener limiting the voltage on PB1 to 3.5-4.0v to ensure it stays below VCC. None of these things worked. I'm out of ideas.
Any help would be deeply appreciated.