Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Relays on Outputs

(you are viewing a thread; or go back to list of threads)

Relays on Outputs (by TimBilt)
Hi,

I'm using a PIC to control inputs on a separate electronic device. Both have the same power source but the separate electronic device drops the inputs voltages to 2.5VDC. If I drop a single input to 0V than several of the inputs activate.

Question #1. Why is this happening is there a easy fix?

I tried a micro mechanical relay with dry contacts but its coil is too much for the PIC. I was able to power the relay's coil with a NPN transistor. But these relays take up a lot of space and add cost.

Question #2. Is there some type of transistor that operates similar to relay dry contacts?
Mon Jul 18 2011, 15:27:09
(no subject) (by Jonathan Westhues)
It's not clear from your description what the inputs are doing. Do you mean that if you attempt to apply a logic level high (+5V or +3.3V, perhaps) from the PIC's output to the input, then the voltage measured at the input drops to 2.5 V? That would mean something relatively bad is happening, since the output pin voltage won't drop unless a large current is being drawn, probably more than the rated absolute max.

So your inputs seem to be drawing significant current. Inputs shouldn't usually do that; so it would be a good idea to get as much documentation as possible, and see if you can figure out how you're supposed to be driving them. Perhaps they really do need the high current, and you need some kind of high current driver, or perhaps you're driving them with an incorrect voltage.

You might also try measuring the voltage from the PIC's ground pin to each of the two wires that your relay shorts when things work correctly; that might give some insight as to the correct expected input voltage.

It may be that you can drive your input with some type of open drain / open collector output, or with some other circuit. But the solid-state device that behaves most like a relay is an optocoupler, for example a phototransistor, like

http://cq.cx/interface.pl#4 ,

or a photo-FET like the PhotoMOS family (e.g., AQY284EH) from Panasonic. Optocouplers transmit information from the input to the output using light, not electricity; so they can work when there's no electrical connection between the two sides (which is not the case here, since you said they both ran off the same power supply), or when there's an electrical connection with some undesirable voltage between the two sides (which could be the case here).
Tue Jul 19 2011, 01:39:07
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):