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.
Switching Off using Transistor
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88086
- Joined: Sat Feb 07, 2009 10:11 am
Re: Switching Off using Transistor
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.
- zener
- Posts: 4567
- Joined: Sat Feb 21, 2009 2:38 am
Re: Switching Off using Transistor
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.
Please be positive and constructive with your questions and comments.