Switching Off using Transistor

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
prasannjain
 
Posts: 1
Joined: Thu Jul 24, 2014 5:34 am

Switching Off using Transistor

Post by prasannjain »

I am working on a project where I want to to switch off a 12V Electromagnet, which will be otherwise always on.
There are quite many examples of switching on using a transistor but not one of switching on, I can find.
Any help is appreciated.

PS- I am using flora.

User avatar
adafruit_support_bill
 
Posts: 88086
Joined: Sat Feb 07, 2009 10:11 am

Re: Switching Off using Transistor

Post by adafruit_support_bill »

The circuitry is identical. Just invert the logic. Do a digitalWrite(magnetPin, LOW) to turn it off. and digitalWrite(magnetPin, HIGH) to turn it back on.

User avatar
zener
 
Posts: 4567
Joined: Sat Feb 21, 2009 2:38 am

Re: Switching Off using Transistor

Post by zener »

I am curious your application that has the electromagnet on all the time. It seems like that would use a lot of power and be fairly hot. Maybe there is another way to do it.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”