Ok...

RB5 goes to pin 2 IC2.
Pin 2 has a diode connected to VCC (internally)
VCC is connected to 5V
5V is connected to D1
D1 is connected to relay.
In other words, RB5 is connected to relay through diode.
Same applies to RB4, RB3, RA1.
This problem only occurs in battery mode.
What voltage do you measure on K1 in battery mode.
I would expect 3V or something like that.

Could be some weird latch up. Chips sometimes do that, often when
you are fiddling with a ciruit. Your relay coil has no reverse diode, that
may cause latch up as well. But you should get rid of that relay anyway.

And RA2 is connected to +5V and used to detect if you have 5V.
R11 is in parallel with K1. If you keep K1, no need for R11.
Keep R11 ;-)

What is the purpose of IC4 then?

4094 will draw next to nothing, when outputs are turned off, certainly in
comparison to your PIC's consumption.

Cheers, Frank

----- Original Message ----- From: "jb-electronics" <[email protected]>
To: <[email protected]>
Sent: Friday, April 01, 2011 10:51 AM
Subject: Re: [neonixie-l] OT: Help with birthday present needed


Hi Frank,

Hi Jens,

Is it a big relay? Could be that the PIC is trying to energize the relay, through
input protection diodes in the 4049, when in battery mode.

It is a small reed relais that draws about 10mA. But I do not really get how the PIC would do that? There is no connection to the relais except over RA2 but that is an input.

What really bugs me is that the phenomenon does not always occur, I cannot reproduce it. I have had it running for 12 hours without a problem. This suggests some irregular CMOS (?) behavior.

R11 is across 5V input. RA2 is connected to +5V input. Is that a schematic mistake?

Nope, RA2 checks if there is any primary voltage on JP1, and R11 is the pulldown.

Do you really need the relay. Why not just use D1 and D2. Diode current is zero because 5V input voltage is slightly higher etc. The relay is not an improvement.

I think it is, because if the supply voltage is slightly lower than the battery voltage, the batteries would supply power and not th external source.

Connect VCC IC2 and IC8 to IC1. Use software to turn off leds, when in battery mode. Or make one led flash shortly every 2 seconds, to preserve power in backup mode.

I'll try that. I just hope the CD4094 do not draw tooo much current in quiescent mode (OE = 0).

Many thanks,
Jens

--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To post to this group, send an email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/neonixie-l?hl=en-GB.


--
You received this message because you are subscribed to the Google Groups 
"neonixie-l" group.
To post to this group, send an email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/neonixie-l?hl=en-GB.

Reply via email to