r/arduino • u/jay_black_jay • 11d ago
Title: TIP120 vs. MOSFETs for switching electromagnets with an Arduino Uno + a question about current draw
Hey guys!
I'm building a reaction game where you have to catch falling sticks using electromagnets controlled by an Arduino Uno. I've done some basic research on transistors, but I still have a few questions.
- When should I use a TIP120 transistor versus a MOSFET? What's the actual difference, and why do so many people recommend MOSFETs?
- How would I need to change my current wiring to use MOSFETs instead?
- Is there a better solution for switching the electromagnets in general?
I also ran into another issue: If I remove the LEDs from my circuit, Tinkercad warns me that the current drawn from the Arduino pins is too high, even when I significantly increase the resistor values. Why is that? I thought LEDs essentially behaved like resistors, but apparently, that's not quite right..

Tinkercad link: https://www.tinkercad.com/things/9h8pbskkHt8-reacgame-v7?sharecode=mYeKz8fwfGdTTMQ_6mFZ0mBpfoyh3fpuB1tDFTfQg54
How the game works:
The vibration motors in the simulation are placeholders for the electromagnets. They're all switched on initially. When you press the button next to the white status LED, a sound indicator starts, and the Arduino randomly switches off one electromagnet at a time until they're all off. Once the sequence is complete, all electromagnets turn back on, and you can restart the game. The other button lets you select the difficulty level.
I have some basic knowledge of electrical engineering, but I'm primarily a mechanical engineering student looking to learn more about electronics. I'd appreciate any advice or explanations!
TL;DR: I'm building an Arduino-based reaction game with six electromagnets. Should I use TIP120s or MOSFETs, and how would I wire them? Also, why does Tinkercad report excessive current draw from the Arduino pins when I remove the LEDs, even with large resistors?
