Hi Guys
I have no idea whether this is possible, a good idea or whether there is a better way to do it.
I want to use something like an Attiny85 to run a simple PWM circuit, the "issue" is that the only "signal" I can send to the Attiny is cycling the power. Basically it will be running on a battery and I want to control the PWM by cycling the power. I don't know if there is a better way to do this, but I was thinking if I could run the Attiny for up to 4-5secs off a capacitor, then I would have time to switch the power off and on.
I guess I might be able to put the Attiny in sleep mode for the 4-5 secs and then wake it up if it gets power again, potentially decreasing the power needed while the battery is switched off..?
I have no idea whether there are much better/smarter ways to do this so any help and suggestions are more than welcome.
Thanks
Jacob
I have no idea whether this is possible, a good idea or whether there is a better way to do it.
I want to use something like an Attiny85 to run a simple PWM circuit, the "issue" is that the only "signal" I can send to the Attiny is cycling the power. Basically it will be running on a battery and I want to control the PWM by cycling the power. I don't know if there is a better way to do this, but I was thinking if I could run the Attiny for up to 4-5secs off a capacitor, then I would have time to switch the power off and on.
I guess I might be able to put the Attiny in sleep mode for the 4-5 secs and then wake it up if it gets power again, potentially decreasing the power needed while the battery is switched off..?
I have no idea whether there are much better/smarter ways to do this so any help and suggestions are more than welcome.
Thanks
Jacob