I hope this is the right place to ask this kind of question.
I'm quite new to this, so I expect there is a simple explanation.
Basically, I have a small electro magnet (the type from an old doorbell) and when I take the 3.3v pin from the Raspberry Pi and connect that to one of the wires of the electromagnet, and then touch the other wire with a connection to ground, the electromagnet operates as expected.
However, when I take the positive voltage from a GPIO Pin instead of the 3.3v pin (I tried both 23 and 24 in this case) it appears not to work when I set the voltage high. Connecting it to a breadboard with an LED lights the LED fine, but connecting it to the electromagnet does not work -- it's as if, for some reason, the GPIO connection doesn't like it and doesn't let the voltage flow? Measuring it on the magnet with a voltmeter shows a small (tiny, barely noticeable) voltage change.
Apologies for getting any terminology wrong etc., but hopefully that makes sense.
Any feedback hugely appreciated.