DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

SBOMs are essential to circumventing software supply chain attacks, and they provide visibility into various software components.

Related

  • AI-Led Digital Strategies for Agile Product Development
  • Introduction to ESP32 for Beginners Using the Xedge32 Lua IDE
  • The Pros and Cons of API-Led Connectivity
  • Blink a LED on a Raspberry Pi With Vaadin

Trending

  • The AWS Playbook for Building Future-Ready Data Systems
  • Contract-Driven ML: The Missing Link to Trustworthy Machine Learning
  • Streamline Your ELT Workflow in Snowflake With Dynamic Tables and Medallion Design
  • Stop Prompt Hacking: How I Connected My AI Agent to Any API With MCP

DIY Wireless Magnetic Levitating Moon Lamp

Want to learn how to make your own levitating moon lamp?

By 
Erich Styger user avatar
Erich Styger
·
Jul. 09, 19 · Tutorial
Likes (9)
Comment
Save
Tweet
Share
43.3K Views

Join the DZone community and get the full member experience.

Join For Free

If your child ever makes a special wish, you will do everything in your power to make it happen, right? So, my daughter's wish was a 'moon lamp'. And here is it: a magnetic, levitating (MagLev) wireless moonlight:

Image title

MagLev Wireless LED Moon

It is the 50th anniversary of the moon landing, so I thought that that wish needs to be realized.


To build it, I used the following:

  • A laser cutter or access to it (I used an enhanced version) to cut plywood and PMMA material
  • A 3D printer or access to it (I used an Ultimaker 2) to print the moon and a white PLA
  • 3D model of the moon: I used the fantastic work from Leung Chan (https://www.thingiverse.com/thing:3242080)
  • MagLev Kit, search the usual vendors, e.g. this one: https://www.aliexpress.com/item/32826436109.html
  • For a wireless moon illumination, search for “Magnetic levitation wireless power supply module,” e.g. this one: https://www.aliexpress.com/item/32822002952.html
  • For a battery/USB-based LED kit with remote controller, see the following: https://www.aliexpress.com/item/32998601607.html

The wireless LED module gets placed into a 3D-printed enclosure:

Image title

Wireless LED Module

The magnet is put inside the enclosure and the LED module is glued on top of it:

Image title

LED Module With Magnet

Below, a test with the 4″ version of the moon:

Image title

4-inch Moon Version

The module gets glued into the moon while it's printed. Below is the 6″ version of it:

Image title

LED Module Placed Into Moon

I printed the moon without any support, with 100 percent infill, and using a white PLA. To stabilize it, I used some scrap plywood to keep it in place:

Image title

Fixing the Moon While Printing

MagLev Base

The original MagLev base came with 8 LEDs on the side. I have cut them and re-attached them to have everything inside a circle.

Image title

Ring LEDs

Below is a version of the enclosure using a laser cut 5mm PMMA/Acrylic:

Image title

PMMA Enclosure

I have put the wireless charging board into the bottom part of the PCB and added an on-off switch to turn off the light:

Image title

MagLev Bottom Side

Placing the moon on the base takes a bit of practice and should be done quickly; otherwise, the coils get very hot and could overheat. The video below demonstrates the process:


The magnetic field can pull the magnet away with up to about 500 g. Of course, no sensitive devices should be placed in the magnetic field.

A cool use case is to levitate small things or a cactus on the magnet :-):

Image title

MagLev Cactus

Desk Lamp

I have built a version of the moon lamp with a LED bump inside. I used a 40W (10 or 20W would do it as well) LED light bulb with a cable and a switch:

Image title

LED Light Bulb

Image title

LED Lamp

The LED bulb then gets placed inside the moon and it can hang up. I used a 'warm white' LED here:

Image title

Another option is to use a charged version: This includes an IR sender and a microcontroller board with 4 LEDs (white, red, green, blue). The picture below shows it with a 4″ moon version:

Image title

The board with the battery is glued into a 3D-printed socket:

Image title

3-D-Printed Socket

With this, I have a color cycling moon!

Image title

Red Moon

Image title

Purple Moon

Image title

White Moon

Looking for another use case? At the university, our institute's Chief Assistant designed his own nameplate:

Image title

Nameplate

Kind of boring, right? The next step in the evolution is to have something laser cut like this:

Image title

Laser-cut Plywood Nameplate

Having a MagLev available makes things a bit more exiting:

Image title

MagLev Plywood Nameplate

I like the Acrylic one too:

Image title

Acrylic MagLev Nameplate

But maybe you like the version with the moon too:

Image title

MagLev Moon Nameplate

It is a really cool thing to make such a MagLev device. All that it needs are some pre-built parts that you later put together.

Happy Mooning!

LEd

Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • AI-Led Digital Strategies for Agile Product Development
  • Introduction to ESP32 for Beginners Using the Xedge32 Lua IDE
  • The Pros and Cons of API-Led Connectivity
  • Blink a LED on a Raspberry Pi With Vaadin

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: