I have some small PCB mount relays 12V coil 2A contacts. I've got a couple of Hall sensors one is an OHN3120 but neither can pickup the coil when engaged.
I'm not sure this will even work, would a small coil work?
Relays are usually pretty well shielded. What kind of current does the coil draw when it's switched? An external coil might work, or trying to find a sweet spot on the relay housing where some of the magnetic flux leaks out, the orientation of the sensor is important too as hall sensors are only sensitive with a specific orientation. If the sensor is small enough you could possible mount it inside the relay housing.
Actually it's to monitor a set of relays on a PCB that runs an automation system. I'm working on a daughter board and wanted a solution that doesn't require soldering or modifying the existing board. The hall effect sensors were not sensitive enough so it looks like another solution would be a DIP IC to ribbon cable adapter to tap into the relay signal.
I'm going to try another approach, a simple method to watch the relay coil. The relays are all 12V DC coils and connected directly to +12V and an open collector diode clamped output of an ULN2003. Comments on the following circuit appreciated.
You never know if the relay is working at all using that circuit. Mine also has a disadvantage not knowing if the contacts are closed, but at least you'll know that the coil is alright.
Try this. I guess you'll like it more than yours. The relay coil in this example has a resistance of 240Ohm.
Hmm perhaps your right, the ULN2003 will only go to 1.4V when it's on plus the diode drop, another choice would be an opto-isolator like a 4N35. It is a Schmitt trigger input so with a 5V VDD it's 1V low and 4V high. Thanks Hans.
Hmm perhaps your right, the ULN2003 will only go to 1.4V when it's on plus the diode drop, another choice would be an opto-isolator like a 4N35. It is a Schmitt trigger input so with a 5V VDD it's 1V low and 4V high. Thanks Hans.
You probably didn't read the voltage values for 'H' and 'L'. The 'L' is at 458mV and 'H' at 3.298V in my example - good figures for a PIC to "know" the difference between ON and OFF.
The Schmitt trigger inputs require VDD*0.8 (4V when VDD = 5V).
I've tossed a transistor on the input, although the relay ON should turn off the transistor.
provided the relay is powered by +12V you've plenty to play with. Use 8K2 for R3 and 4K7 for R1 in the voltage divider. This will give you 0.532V for 'L' and 4.292V for 'H' with the same (as mentioned before) coil resistance of 240Ohm.
Using 5K1 for R1 won't change much, but the 'L' condition will also travel upwards.
CMOS Schmitt-Triggers are satisfied with lower input voltages. They just require VDD/2 (in that particular case slightly above 2.5V)