I took a physics class that focused on electromagnetism. It got me really interested in electronics and their relationship to magnetism. This project came from that interest, and now I made this Instructable to show how to make a simple electromagnet housed in a highlighter.
Step 1: Materials and Tools
-Enamel coated magnet wire
-Nail (or other small magnetic rod)
-Highlighter (of course)
-Hot glue gun
-Soldering iron and solder
-Sandpaper or a file
-Dremel or similar tool (optional)
Step 2: Taking Apart the Highlighter
Next, the switch needs to be put into the end of the of the highlighter. Make a hole in the piece you just pulled off using either a Dremel or soldering gun. I suggest using a Dremel as melting plastic releases harmful fumes. Don't make the hole too big, because you want the switch to fit snugly into the hole. Then, jam the switch into the end so that you can easily press down the button with your finger. If it's not a tight fit, add a little hot glue to keep it in place.
Step 3: Wrapping the Electromagnet
When you start wrapping wire, secure the end of the wire with a bit of tape outside the wall of hot glue. Wrapping a wire coil isn't very hard and there are other Instructables out there that explain it, so I won't go into it anymore.
Once you've wrapped about four layers or so, cover it with electrical tape. Cut the wire, and file or sand off the enamel on both ends. The enamel insulates the wire, so if you don't do this it won't work. You can even scrape it off with a knife if you want. Whatever works best for you.
Step 4: Connecting Everything
If this is confusing, one end of the battery should connect to the switch, from there to the wire coil, then to another wire, and back to the other end of the battery. I made a schematic in Paint that might explain it a little better.
Also, now is a good time to test that everything is connected and works. Just hold down the button, and try to pick up something that will stick to a magnet. When you let go of the button, it should drop right off.
Step 5: Sealing the Highlighter and Finishing
The final step is to put everything inside and close it. Basically you just shove everything in and try not to break it apart. The only tricky part is making sure that the nail gets through the opening at the end. The easiest way to do this is try to keep it straight as you push it down the highlighter.
This little magnet works great for picking up small screws that might have been dropped somewhere that your fingers can't reach.