Toy Levitation From Solenoid Coil
Introduction: Toy Levitation From Solenoid Coil
Magnetic levitation has always been in my intention. Summer is here, I am ready to build a toy for my daughter. It's a toy levitation that can make small toys float in the air. My daughter is very naughty and hyperactive so she needs to be trained on concentration with this toy.
Please check my testing below before getting started.
Step 1: Things We Need
The main materials are used in this project:
* 1pcs x Magnetic coil: Amazon - Banggood.
* 1pcs x Arduino Nano: Amazon - Banggood.
* 1pcs x KY-024 Linear Magnetic Hall Sensor: Amazon - Banggood.
* 1pcs x NPN Transistor: TIP122 Amazon , Or TIP120 Banggood.
* 1pcs x R10K: Amazon - Banggood.
* 1pcs x N4007: Amazon - Banggood.
* 1pcs x DIY Double side prototype PCB board 5 x7 cm: Amazon - Banggood.
* 2pcs x Terminal screw type – 2 pin: Amazon - Banggood.
* 2pcs x DC Power Male & Female Plug: Amazon - Banggood.
* 1pcs x Power Supply 5VDC & 12VDC: Amazon - Banggood.
* 1 meter x 8P/16P Rainbow Ribbon Cable: Amazon - Banggood.
* 1 meter x 2 Core Power Cable: Amazon - Banggood.
* Some Neodymium Magnets.
* 2pcs x Elbow PVC Pipe Ø42mm.
* 1 meter x PVC Pipe Ø42mm.
* 1pcs x Tee PVC Pipe Ø42mm.
* 2pcs x End Cap PVC Pipe Ø42mm.
* 2pcs x Reducing Tee Ø60mm to Ø42mm.
* 4pcs x End Cap PVC Pipe Ø60mm.
Tools:
* Drilling machine.
* Hand saw.
* Soldering machine.
Step 2: Schematic
The project schematic is in picture above.
Step 3: Hall Module Selection
There are many magnetic sensor modules sold in the market and according to description they can output both digital and analog signals but that is not true. I bought a few modules but it really has only digital signal and in the end I chose the module called “KY-024 linear magnetic Hall module”.
The KY-024 linear magnetic Hall sensor reacts in the presence of a magnetic field. It has a potentiometer to adjust the sensitivity of the sensor and it provides both analog and digital outputs. This module consists of a 49E linear Hall-effect sensor, a LM393 dual differential comparator, a potentiomenter, leds and resistors.
The 49E is a linear hall-effect sensor. 1000
It can measure both north and south polarity of a magnetic field and the relative strength of the field. It works as follow:
* If NO magnetic field is present the 49E will output a voltage around half of the source voltage, around 2.5V.
* If the SOUTH pole of a magnet is placed near the labeled side of the 49E, then the output voltage will linearly ramp up towards the source voltage (go up to around 4.2V).
* If the NORTH pole of a magnet is placed near the labeled side of the 49E then the output voltage will linearly drop down toward the ground voltage relative to the strength of the magnetic field (drop to around 0.86V).
Step 4: Magnetic Coil
My magnetic coil is taken from a magnetic lock. I removed the metal housing and core, just keeping the coil. Its operating voltage is 24VDC.
I used a multimeter to measure coil resistance value, it is about 15.0 ohm. In this project, I use 12VDC to power this coil.
Step 5: Soldering Work
1. KY-024 Hall module modification.
* Cutting 3 pins of Hall sensor 49E on the module.
* Soldering a 3-core wires connecting the sensor and module.
2. Main control board
Following the schematic on STEP 2, I soldered all the connections and components on a PCB prototype board size 50x 70mm.
The component arrangement is described as follow.
* Top view
* Bottom view
If you have a PCB project, please visit the NEXTPCB website to get exciting discounts and coupons.
* Only $0 for 1-4 layer PCB Prototype: https://www.nextpcb.com/pcb-quote?act=2&code=tune...
* New customer get $100 coupons, register at: https://www.nextpcb.com/register? 611