Go Down

Topic: Using a photo resistor with an ATtiny85 (Read 2218 times) previous topic - next topic

mrroboto20


The items that are on the battery side of the power switch are causing the problem. You will have more that enough tome for the Arduino to wake up.. If Not then rewire those inputs so that they pull down a processor pin that is powered up when the Arduino is. The bias path for the Arduino IS the stuff that isn't switched off when the Arduino is.

Doc


so, if I understand you right, the arduino is discharging through my chips when disconnected?
"A strange game... the only winning move is not to play.  How about a nice game of chess?" -WOPR Supercomputer

"No... it's necessary." -Cooper (from Interstellar)

Coding Badly


When the processor is not correctly powered, electricity can "leak through".  In addition to causing the problem you are having, there is a high probability that it will damage the processor.  Move SW1.

Runaway Pancake

Move SW1 (see attached.)
"You gotta fight - for your right - to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"
It's "bipolar transistor" or "junction transistor" - "BJT" is just stupid.
When all else fails, check your wiring!

mrroboto20

OH MY GOODNESS

that is as plain as day. duh. big duh. I will test ASAP (i'm swamped with other homework at the moment)

but thank-you everyone. I cannot believe I didn't catch that.

will post back tomorrow!
"A strange game... the only winning move is not to play.  How about a nice game of chess?" -WOPR Supercomputer

"No... it's necessary." -Cooper (from Interstellar)

Docedison

Quote
The items that are on the battery side of the power switch are causing the problem.


The simple solution is to move them to the other switch connection point so they are also operated by the power switch.
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

mrroboto20

couldn't wait... it worked!

My actual project is using a signal from ANOTHER chip where SW1 is, so I'm just going to use a NPN2904 transistor where SW1 is. Perfection! for now lol
"A strange game... the only winning move is not to play.  How about a nice game of chess?" -WOPR Supercomputer

"No... it's necessary." -Cooper (from Interstellar)

Runaway Pancake

#21
Apr 26, 2013, 05:22 am Last Edit: Apr 26, 2013, 02:50 pm by Runaway Pancake Reason: 1
Karma ponits points... they're almost like getting paid for this.
"You gotta fight - for your right - to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"
It's "bipolar transistor" or "junction transistor" - "BJT" is just stupid.
When all else fails, check your wiring!

Go Up