Pseudo Perpetual Spinning Top

by Makertronics in Circuits > Arduino

1866 Views, 12 Favorites, 0 Comments

Pseudo Perpetual Spinning Top

Pseudo Perpetual Spinning Top
ezgif-3-102fe7f318.gif

You must have seen many magic tricks and wondered how it works so, here's another one but you don't have to figure out how it works. I will show how it works (Spoiler😜 - It uses magnets and some electronics) and how you can make one yourself.

This magic Spinning Top rotates forever and you may think it is perpetual motion but it isn't so I call it Pseudo Perpetual Spinning Top


Supplies

PerpTop Supplies.png
PerpTop Supplies (1).png

Components

  • Attiny85
  • 49E Hall Sensor
  • LiPo Battery
  • TP4056 Battery Protection and Charge Circuit
  • 3.3V to 5V Boost Converter
  • SPDT Switch
  • USB-ASP AVR Programmer


Software

  • Arduino IDE


Hardware

  • 3x5mm Round Neodynium Magnet
  • Electromagnet(Buy or Make one yourself - Detail in Step)
  • 34-37 Guage Enamel Copper Wire
  • 2mm Non-Metallic Rod
  • Some 3D Printed Parts
  • SandPaper for sanding 3D Printed Parts
  • 3D Printer (Optional)
  • DoubleSided Tape
  • Glue Gun

Science Behind the Magic

ScienceBehindIt.gif

The perpetual top uses a few permanent neodymium magnets which lie inside the spinning top and an electromagnet that resides in the base i.e., the platform on which the spinning is rotating, and a Hall Effect Sensor that detects the polarity of the magnet in the spinning top and triggers the Electromagnet.

You can see this in the animation above; as soon as the North pole(Red) appears above the Hall Effect Sensor, it triggers the polarity of the Electromagnet such that the South Pole(Blue) is on the top side of the Electromagnet so that it will attract the spinning top and this gives a bit of acceleration to the spinning top. This triggering happens twice every rotation, one for the NorthPole and one for the South Pole, and that's how the spinning top gains enough stability to rotate forever (or as long as the Electromagnet's polarity keeps on changing on time).

Electronics and Circuit

Circuit_Image.png

The Circuit and the PCB for this project s designed in the Eagle CAD.

Attiny85 is used to read the value from the Hall Effect Sensor and a Motor Driver L9110S to drive the Electromagnet Coil in both Polarity.

This Circuit runs from a Lipo Battery so a Boost Converter is Used to step up the voltage from 3.2-4.2V from the battery to 5 V required for the Circuit and the Coil.

Apart from the Circuit TP4056 Lipo Protection and Charge Circuit is sued to charge and safely discharge the battery.

PCB Manufacturing From PCBWay.com

perptopPCBWAY.gif
IMG_2039.JPG

After creating the schematic and board design, rather than troubling myself with homemade PCBs, I generated the Gerber File (you can download it from this link) and ordered from the quick PCB Prototyping service of PCBWay.com. Ten pcs of professional-made PCBs arrived at my home within a few days.

Electromagnet

animated3.gif

You can buy an Electromagnet or even a wound one for yourself.

You will require enameled copper wire of 34-28 Guage ( I used 35 Guage).

Then I printed some stoppers that I put over the rod, so the coil is wound within a given range.

To quickly wound the coil, I used a small geared motor that has good torque and attached a chuck to hold the coil rod and wound the coil approximately 10 meters in length. The resistance of the coil after the wounding comes out to be 11Ohms.

PCB Assembly

pcbAssembly.gif

Start With the soldering of SMD parts first then move the Through Hole parts.

there are Pads for Battery connection and Electromagnets.

For the Boost Converter, you can use the special 3.3v to 5V Step-Up Converter which comes in 3 Pin configuration or you can use the standard boost converter and attach the input pin to Vin, ground to GND, and output to Vout. Just make sure the boost converter can supply at least 500mA.

Attiny85 Programming

perpTopCode.png
IMG_2171.JPG

If Attiny Boards are not installed in the Arduino IDE then first install the ATTINY Boards in the IDE through this link

After the Arduino Boards are installed then upload the code using USB-ASP AVR Programmer or Arduino Uno.

you can program the IC using the ISP Connector on the PCB or you can program it alone and then install it on the PCB.

3D Print

IMG_2142.JPG
IMG_1699.JPG

The 3D Model for this project is designed in Fusion 360 and there are four parts needed to be 3D Printed for the enclosure and the spinning top which will be holding the permanent magnets.

All the parts are listed below and I have also included the Fusion 360 File which you can tweak to your needs if required.

Spinning Platform Preperation

IMG_1703.JPG
IMG_1704.JPG
IMG_2143.JPG

The Spin Platform is a curved platform and the curve is provided so the spinning top can rotate in a given region where it is in range with the sensor as well as the electromagnet.

and it is recommended to print it at will 0.1mm layer height for better results. After printing the platform you can use sandpaper to smooth out the layers and create a seamless transition between the layers so the spinning top can rotate feeling on the base.

Spinning Top Assembly

SpinningTopAssembly.gif
IMG_2138.JPG
IMG_1807.JPG

The Spinning top will require 8 neodymium magnets.

4 magnets on each side of the spinning top, and the polarity of the magnets will be opposite on the other side as can be seen in the image/animation where blue is the SouthPole and Red is the NorthPole.

After adding the magnets in the holes cover it using the top part which will act as a handle for the spinning top to rotate.

Then add a 2mm pointed rod into both the parts. If the rod feels loose then use some adhesive like super glue or a glue gun.

In the animation, only 4 magnets are been shown but you can add more to increase the magnetic strength so the top position can be easily sensed by the Hall Effect Sensor.


Assembly Animation

Enclosure Assembly v9_2.gif

This animation is just for your reference to show what will go where during the assembly.

Solder Batteries and Switch

IMG_2151.JPG

After assembling the PCB, we need to solder the battery, Switch and the electromagnet to the PCB before the final assembly

Final Assembly

Assembly.gif
IMG_1808.JPG

First, attach the hall Effect Sensor to the bottom of the Spin Platform such that its sensing part is near to the center of the circular base using double-sided tape and

Then attach the PCB to the enclosure body in the given position and secure it using a glue gun or double-sided tape.

Then connect the electromagnet, battery, SPDT On/Off Switch, and TP4056 Charge Circuit to their respective position.


Electromagnet

First, attach the electromagnet temporarily to the body as its position needs to be adjusted in order to find the optimum position according to the electromagnet and neodymium combination used by you.

It is a little Hit and Trial method where you need to find the position where the rotation of the spinning top is the best.

Then finalize that position and secure it using a glue gun.


Show the Magic..

finalshow.gif

You are ready to show the trick to your friends and family and see their reactions.

It can be a fantastic showpiece on your table.


If you made it, do share it below and if you face any issues during the build, send me a message. I'll love to help you out.