Hi, I've started a new project to learn about using feedback in microcontrollers and I've already hit a wall haha.
I'm trying to make an electromagnetic levitator to float an object like a coin, using PWM through an electromagnet and using a hall effect sensor for feedback on how hard to drive the solenoid.
(kind of like those floating globes one can buy)
My problem is i first need to know how to design an electromagnet. It needs to pick up something relatively small, like a coin, and be able to hold it in the air (roughly 3-4cm away).
I have different awg enameled wire which i plan to use but i dont know how to pick my design constraints:
-wire gauge
-number of turns
-length of the solenoid
-diameter??
Thanks for any help! I'm asking here because I've had nothing but great assistance from eevblog in the past.