I am following a hackster project on magnetic levitation here - https://www.hackster.io/jsirgado/magnet-levitation-with-arduino-eeeee4
However, I have followed everything but still, it's not working.
Here are changes to the circuit I made:
- The electromagnet which I am using is that of 5V instead of 12V
- The transducer which I am using is ss8050 instead of TIP120
- Hall sensor is tapped just at the bottom of the electromagnet
Electromagnet link - https://shop.edwinrobotics.com/widgets/1568-5v-electromagnet-25-kg-holding-force-p4020.html
Update:-
The best I can do is to make the magnet jump up and down fast but it never levitates. Have tried changing PID setting from the project as aggressive and mild but still didn't achieve the final result.
I need advice from an expert to tell me what I am doing wrong here. All components are in good condition and 5v electromagnet is strong enough.
So what am I missing here?