patrick99e99
Newbie level 4
- Joined
- Aug 23, 2013
- Messages
- 7
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 63
(from https://www.analog.com/library/analogdialogue/archives/46-06/staying_well_grounded.html)Separate Analog and Digital Grounds
It is a fact of life that digital circuitry is noisy. Saturating logic, such as TTL and CMOS, draws large, fast current spikes from its supply during switching. Logic stages, with hundreds of millivolts (or more) of noise immunity, usually have little need for high levels of supply decoupling. On the other hand, analog circuitry is quite vulnerable to noise—on both power supply rails and grounds—so it is sensible to separate analog and digital circuitry to prevent digital noise from corrupting analog performance. Such separation involves separation of both ground returns and power rails—which can be inconvenient in a mixed-signal system.
I suspect your problem is that the 5V logic level you are driving it with is too low and being seen as 'low' and 'not quite high enough". It needs to be at least 7.6V when high and the 5V you are providing is borderline on being high enough so it is leaving the circuit in an indetermnate state. Your better solution is to wire an NPN bipolar transistor across pins J1.1 and GND with it's collector to J1.1 and drive your digital signal through a 1K resistor to it's base. Alternatively, if you want to use your relay, wire it's contacts across J1.1 and GND but keep the grounds of the 50V supply and the logic supply isolated.
If you are using a relay, connect it's contacts directly across Pin 1 and pin 3 and drive it's coil from your logic circuit. There is no need to connect the grounds together, the relay's contacts are electrically isolated from it's coil so there is no need to provide any return path or other connection between them.
Sometimes the problem needs you to think in terms
of the current loop, not some single-point-voltage
as referenced to some other arbitrary point. When
it comes to anything inductive (long wires, solenoids,
etc.) you need to know where that current and its
dI/dt will be showing up. The common ground of a
microcontroller is not one of the better places. That
can jack every logic input on the device and make
for mysterious behaviors.
How are you driving the reed relay? Maybe the micro's output port can't supply enough current to keep the reed relay properly energized. You may need to add a buffer switching transistor on the output port of the micro. You can test and see how much current the reed needs to operate and determine if your micro can supply it.
If we forget the uP your gate is at 7.6V. More then enough to saturate the mosfet. So the drain is close zero Volt.
Then you make the uP port high. The uP gives out 5V. (or less) . After the diode it is 7.6V so the diode goes in conduction. The uP now hase to sink current. How low the voltage becomes depents on the Rout of the uP port and gate resistors. I think around 3 to 4 V. So your mosfet has to dissipate. It is not 100% saturated. Then the uP port gets low. Now the Voltage will be a few hundered mV and the mosfet stops conducting.
The problem is not in the ground. The main problem the design. Just remove R1 and R3. Make R2 something like 470 Ohm to 1K. Maybe a speedup cap over it. Then get rid of the rest and invert in the software.
Can you post a solenoid specification or at least a picture of it so we have some idea what you are driving?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?