1
\$\begingroup\$

I need high side switch for 3V relay (exactly RM40-3021-85-1003 with 45ohm coil -> need ~65mA). I have multiple VL53L1X (ST's ToF distance sensor, 2V8 logic levels) connected with theirs OC GPIO outputs ("INT") to one common wire. Normally the common wire high (2V8) all the time, but when any of the sensors trigger (something comes closer than distance limit) - the common wire logic level goes from 2V8 down to 0V (VL53L1X open collector outputs are active low, so, this is why I can't use low side switch). Is it possible to solve this by only one PNP? (+resistor+flyback) And not using aditional NPN as suggested in question here... The GPIO output of the sensor has level 2V8 (as sensor is powered by 2V8 LDO on PCB, can't be changed to 3V3 in this situation). But the 3V relay (emitor of PNP) is powered by 3V3 source (no 2V8, nor 5V supply possible). Its only 0,5V difference, is it secure to do it simply like this circuit: simple high side driver or by adding a diode to base to prevent "highside switch fail"?

Please can you also give me exact values of all parts (resistors, PNP number, diode 1N4148?) as I need something very reliable for many years of lifetime and yet simple (I thought the more parts the more to fail during time), as I'm good in ESP and PIC (SW+HW), but not that good in bipolar transistor simulation... (The result device must be very secure to stop moving parts before a human may be hurt. It's HW backup solution if the SW stop fails.) Thanks.

\$\endgroup\$
0

2 Answers 2

1
\$\begingroup\$

You can "offset" the 2.8V digital control signal upwards by about half a volt, with a single diode, D1 here:

schematic

simulate this circuit – Schematic created using CircuitLab

D1 develops half a volt or more when it passes any current, a potential difference which is added to \$V_{IN}\$. X is therefore half a volt or so higher than \$V_{IN}\$.

When \$V_{IN} = 2.8V\$, you can expect X to rise close to 3.3V, easily enough to turn Q1 off.

\$\endgroup\$
0
0
\$\begingroup\$

No - That's not going to be 'guaranteed' to work always. The problem is your logic control signal can only go to max 2.8V, but the VCC is 3.3V. Like you say, that's "only 0.5V" and "in theory" the transistor won't turn on until there's 0.7V difference there. But with such a small margin, you can't be assured that always the transistor would be completely off. They really don't have a hard-fixed cutoff voltage like that - It's more of a range. That's why there are extra transistors in the other referenced link. They allow for the base of the PNP transistor to get up to the same voltage as "VCC", thus ensuring that transistor is off.

Understand your concern about 'more parts = higher likelyhood of failure". That's not really my experience.... IMO it's more like "The harder you drive the parts, the more likely to fail". If you're being very gentle with the parts - operating them very far from their maximum voltage, current & power limits - resistors and transistors will last pretty much forever. Relays are another story.... Do you really need to have a relay - i.e. you really need the electrical isolation??? Relays are mechanical devices and as such, they definitely will eventually fail.

\$\endgroup\$
2
  • \$\begingroup\$ I surely need a relay in this situation, I'm aware of its risks, but during normal operation the relay is not used, or in worst case only small number of times during lifetime of the device. But still I can add second relay to be sure one of them not fail, and even can add software counter of relay usage (sensing GPIO wire). I think there is no need for transistor to be completely off, as the relay coil need relatively high current to switch on. But do you think that constant small residual current can raise the risk of transistor or relay to fail after many months? \$\endgroup\$
    – rejnok
    Commented Jun 15, 2020 at 8:48
  • \$\begingroup\$ It's up to you. Here's the thing - If you do what you're describing, then you are creating a marginal design. Will it work on one unit? Probably. But that trickle current is a variable that depends on factors you won't control such as temperature - You need to ask yourself - If the worst happens, and somebody gets hurt, are you comfortable defending your decision to not include that extra drive transistor during a review of your design by an investigating engineer???? Some people will stand on the edge of the Grand Canyon for the great view. Some people will stand 10 feet back.... \$\endgroup\$
    – Kyle B
    Commented Jun 15, 2020 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.