I need to control it with an atmega 328. I don't care too much about the software part because as far as I know I just need to enable one of the pins of the chip to activate the transistor, the thing is that I'm not sure which transistor I should use. I was using a voltage supply with 9 volts...
I'm working on a project where i need to control an electromagnet but I'm not sure how to do it. I tried using a npn but the current passing through the magnet is just to small, should I use a mosfet instead.
The specifications for my project say that they will provide us with 9 volts and a...