Hello all
I have not been able to get my head around this small problem. Not enough knowledge yet :o
I have one of these hall switches below (on a DIL breakout board).
Wired it up as the data sheet expains which is pretty basic. 0v, +3.3v and an output, with the 3.3v and output linked with a 47k resistor.
That works fine. Present a magnet, and I get a high signal.
Here is my problem.
My circuit needs to be 3.3v, as most of the planned components are 3.3v and I don't really want to do loads of level shift everything.
The circuit needs negligible current draw while off, as its powered by 3.7v battery.
It will run an Atmega386 (if I get that far!).
This little hall switch will not cope with the load of the ATmega + associated circuitry I don't think, so I planned to simply switch an NPN power transistor I have here (BC547) to supply power to the IC.
Then, early in the code, the processor would put a pin high to keep it's own power on via another transistor.
Does that make sense?
But, all configurations of a transistor I tried failed. I have NO idea how to calculate the correct base value for the transistor, and my electronics manual really didn't help me understand.
I can get it to switch using a 100R resistor on the base, but I only get 2.6v out of the collector. I assume due to losses in the transistor.
How do I get a clean 3.3v switched through to fire up the processor using a hall switch?
I have searched around the RS site and found a few IC's that appear to operate as latching switches, but not exactly sure what I am looking at.
Any pointers greatly appreciated.