Is pin 1 resetting the attiny when pin 7 on the LM393 triggers? I'm getting strange results during testing using bench power supply.
Hi Eric... I have not done that. I will study the link you sent and repurpose that pin to in/out.hi j,
Have you re-programmed the Reset Pin?
E
Clip:
Reclaiming as I/O: The pin can be repurposed as a standard input/output pin by disabling the RSTDISBL fuse in the configuration bytes.
https://www.google.com/search?client=firefox-b-d&q=tiny85+reset+pin

I like it. I just wish I had known before I finalized my boards a few weeks ago. Hopefully I can utilize what I have. I'm definitely keeping your schematic for future reference. My dark sensor circuit is working great. I'm not sure about the low batt circuit because I believe I need to disable the reset pin on the attiny85. I've spent all afternoon trying to disable the reset with no success. Thx.Here's a revised comparator circuit should you wish to redo the design.
The comparators are operated from the 5V supply. Note the comparator output behavior.
This is a cleaner design than what you have now.
View attachment 363322
View attachment 363323
Couldn't hurt, I would try that.I read in an article that it was recommended to add a 10k pull up resistor on pin 1 (along with the internal) to avoid "accidental" triggers/resets.
Thoughts?
There should definitely be a pull up at pin 1 and Pin 2, otherwise the inputs will float (bad thing). I never use internal PU, always external.I read in an article that it was recommended to add a 10k pull up resistor on pin 1 (along with the internal) to avoid "accidental" triggers/resets.
Thoughts?
Ok... Should I not use the INPUT_PULLUP at all and only use a 10k to 5v at pin 1 & 2?There should definitely be a pull up at pin 1 and Pin 2, otherwise the inputs will float (bad thing). I never use internal PU, always external.
Internal pullup not needed if using a 10K to 5 volts.Ok... Should I not use the INPUT_PULLUP at all and only use a 10k to 5v at pin 1 & 2?
I still haven't been able to disable the reset pin 1.
the pins wouldn't need it if the diode wasn't there, because there is a pullup at the output of the 393 that is connected to each input pin. But since the diode is there, the input pin is floating and needs a pullup. You can use the internal pullup, but I don't recommend it because they are automatically disabled at boot-up. I recommend an external (10k) pullup and disabling the internal pullup.Ok... Should I not use the INPUT_PULLUP at all and only use a 10k to 5v at pin 1 & 2?
What type of USB board are you using?After a lot of study and many attempts over the last few hours, I am unable to disable the reset pin. It is saying that I don't have access to make the required change, even though I am the admin.
View attachment 363324
Looks similar to mine.
The programmer board uses the reset function for communications during programming.I still haven't been able to disable the reset pin 1.