Shop OBEX P1 Docs P2 Docs Learn Events
Dangerous/incorrect usage of transistor? — Parallax Forums

Dangerous/incorrect usage of transistor?

SimEnzoSimEnzo Posts: 21
edited 2007-04-29 23:28 in BASIC Stamp
I'm using a Board of Education with a Basic Stamp II. I'm powering the board using a 9v battery.

I have a NPN transistor that I'd like to use to trigger a relay. The dc adapter I'm using for the relay puts out about 16v.

I've attached (as a test) the VDD to the base of the transistor, the relay's ground to the collector pin, and the adapter's ground to the emitter.

My understanding is that for transistor to work, it needs to also connect back to the base's ground (i.e., the Board's vss)... I'm feeling a bit nervous about mixing the adapter's grounding with the battery's. Is this ok to do? Would I put a resistor going from the emitter to vss (in addition to the emitter connecting to the adapter's ground)?

Many thanks!

Post Edited (SimEnzo) : 4/29/2007 8:19:38 PM GMT

Comments

  • SimEnzoSimEnzo Posts: 21
    edited 2007-04-29 20:16
    Thanks for the response, but the schematic and the pdf doesn't really answer the thrust of my question... which has to do with using a battery for the base (and needing, as I understand it, ground from the emitter). Is this safe in combination with an adapter? My concern being that the ground of the load going into the battery and doing something nasty there.
  • FranklinFranklin Posts: 4,747
    edited 2007-04-29 20:24
    Could you provide a schematic as PJ's drawing is how it's done most of the time.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SimEnzoSimEnzo Posts: 21
    edited 2007-04-29 20:43
    My schematic skills are a bit rough, so apologies in advance.

    Here's the difference, I believe the schematic that PJ provides depends on the the base and the load to be using the same power source... right? If the base is using a different power source, then it needs grounding too.

    Note, the power is coming from the VDD and ground in the VSS of my board, but the schematic has the 9v battery just to be explicit as to what is powering the board.
    320 x 240 - 9K
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-04-29 21:20
    · The Stamp and the transistor circuit and the relay supply should all share/have the same Ground.· If they don't have the same Ground (Reference), then the circuit will not work.
    · Full Stop.
  • SimEnzoSimEnzo Posts: 21
    edited 2007-04-29 21:30
    Hmm... well, it works when I wire it up per my schematic (though I'm still wanting to know if this is dangerous and will cause the battery to explode or something)... and doesn't when I don't include a grounding from the emitter to the battery (via vss).

    Do you suppose the reason it works in the setup I'm describing is that, in effect, I'm connecting the stamp's vss to the power supply's ground?

    In anycase, my main question is still out there: Is this safe?

    Post Edited (SimEnzo) : 4/29/2007 9:35:33 PM GMT
  • FranklinFranklin Posts: 4,747
    edited 2007-04-29 22:09
    In your case it is safe. and you don't need/want the resistor in the ground connection. All the grounds need to be at the same potential and then the 9v is powering the base in reference to ground. (which, as you said, works)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SimEnzoSimEnzo Posts: 21
    edited 2007-04-29 22:10
    Great, many thanks Franklin!
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-29 23:28
    You need to connect the grounds together, yes.

    You definitely need to keep the + voltages separate.

    The "common ground" insures that both supply voltages are referenced to the same ground. That's why you connect the grounds.
Sign In or Register to comment.