Now, the section on Self-Locking Relays makes sense... I read through it twice and followed the circuits and I completely understand how it works... in theory. But building the circuit is another issue. There's no wiring/breadboard diagram here to reference, so I did my best and one of the photos here shows my completed circuit. The problem is that the circuit isn't working the way it's supposed to... when I pull the magnet away, I hear the relay switch on... but it's supposed to lock - if you look close, you can see that I've applied 12V to the middle set of 3 upper terminals on my relay... corresponding to the small arm that moves inside. Moving the magnet back to the reed switch isn't supposed to turn the relay off... but it does. I've got a final video where you can here the relay opening and closing as I move the magnet back and forth.
Any ideas? My circuit is upstairs, waiting to be fixed...
UPDATE: I went back to Figure 3-91 and thought I'd found my mistake... there's a connection between the Emitter of the transistor and the ON post of the relay. I cut a small piece of wire and connected the Emitter to that post (on the left side of the relay inserted into the breadboard). Turned on the power and the relay went CRAZY. High pitched whining sound that probably isn't a "good" noise. Removing the magnet made it stop, but putting the magnet towards the reed switch caused it to go noisy again... so I'm still missing something...
UPDATE 2: Okay, I happened to glance over at Figure 3-93 and noticed that diode sitting there in the circuit. Of course, I've only read over the Blocking Bad Voltage section once - need to read it again - but I did seem to recall something in there about feedback... so I went up and added in that diode and the noise stopped! Okay, problem is partially solved. It STILL isn't working quite right - when I pull the magnet away (simulating a door opening) the relay is supposed to lock and not disengage when I put the magnet back (closing the door). But it does... argh.
UPDATE 3: Just a warning - these updates could run into the hundreds. Kidding. I went back and took a look at the relay that I tore open in an earlier chapter. It turns out that my relay is off when the arm is in the "down" position, pointing towards the coil. Easy enough - I rewired it so the top post is connected to the diode's anode side. But the relay still isn't locking as it should... something is missing from this circuit... just can't figure out what.
I don't have the book, so I can't look at any of these schematics you're talking about. One way you have a relay latch on is that you have the NO (normally open) contact connect power to the coil. This means the arm of the relay is connected to power, and the contact is connected to the top of the coil (which is where it seems you have the emitter of the transistor, assuming I follow your wires correctly), so that the relay is initially powered by the transistor, but then starts to power itself. I can't tell if that's what you're trying to do, but that's how I would do it.
ReplyDeleteThis is an old post so I'm sure you seen this by now-
ReplyDeletehttp://electronics.stackexchange.com/questions/76023/problems-getting-npn-bipolar-transistor-to-switch-on
I was having the exact same issue.