Magnetic Levitation the Digital Way
ESP32 Pico Replaces the Analog Comparator

This is a MEMBER ONLY article. You need a subscription to read this article.
- Access to Elektor archive and 5,000+ Gerber files
- Receive up to 8 magazines per year (digital and/or paper)
- 10% discount in the Elektor store
Available from €4.95 per month.
What is Members Only
Elektor is committed to providing high-quality content on electronics, catering to tens of thousands of paying members. As part of this commitment, Elektor has launched Premium, an initiative that offers exclusive online articles to members sometimes even before they appear in the magazine.
Every day, members can access in-depth articles that showcase the best of Elektor's premium content.
This initiative aims to reward members with early access. Once logged in, members can easily enjoy this exclusive content and engage in discussions about featured projects. While Premium adds to the existing resources available, Elektor will continue to provide a wealth of free information.
Join the Elektor community today to take advantage of Premium and other benefits!
Component list
Component list
Resistors
R5* = 1k2
R6 = 270 Ω
Semiconductors
D2* = red LED
D3, D3’ = white LED (see text)
D4* = not mounted (or remove from relay board)
Q1* = BC550
U1 = Hall sensor A1302 or A1308 (Allegro) or SS49E (Honeywell)
Miscellaneous
5V relay board *
MOD1 = M5Stack ATOM Lite or M5Stack ATOM Matrix
Neodymium disk magnets
*= see [1] for the details on the electromagnet/relay board
Additional parts needed for analog adjustment:
Resistors
R1 = 4k7
RV1 = 5 k trimmer
Capacitors
C1 = 10 µF, 10 V radial
Discussion (0 comments)