Hi electro noob here!
I am making a small project where I need an electromagnet turned on and off many times a second. As such I cannot use a relay to have the Arduino switch an external powersource to the electromagnet. I have been trying to make the following circuit as seen in this link:
https://sebastianpatten.files.wordpress ... tities.jpg
I am using a MMBT2222A NPN Bipolar Transistor, 1 A 40 V, 3-Pin SOT-23 transistor, but when I switch on the transistor the electromagnet becomes very weak compared to directly plugging it to the external powersource (External powersource is rated at 9V 1300mA). Now why is this happening? Shouldn't I be able to omit using a relay by using a transistor given the right readings? (I chose the MMBT2222A because the 1A rating was the closest I could find to the 1300mA external power supply).
Also is there some other tips you could give on this kind of application?
Thanks for the help