Article
Magnetic Levitation the Digital Way
ESP32 Pico Replaces the Analog Comparator
In the article “Magnetic Levitation the Easy Way,” we saw that magnetic levitation isn’t too difficult to achieve with a permanent magnet, the coil and core of a standard 5 V relay, a Hall sensor and a good-old analog comparator. In this second project, an ESP32 Pico SoC is in control, integrated in the handy M5Stack ATOM.
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)