cameron647 / electromagnetic-levitation Goto Github PK
View Code? Open in Web Editor NEWArduino code for a electromagnetic device (no PID) with linear hall effect sensor and ultrasonic distance sensor. Code makes real-time decisions based on value returned from hall sensor and ideal equilibrium output to oscillate neodymium magnet by turning electromagnet on and off.