Distance sensor for Arduino? Answered
I want to make a sort of self-educating machine as a programming project:
there is an electromagnet and a magnetic thing and if the distance between
the magnets has increased between two measurements the Arduino lowers the
current through the magnet, and if had fallen (the distance, not the object) it ircreases...
In some time it should be able to reduce the aplitude of the object's oscillations.
Is there a good and easy way to make a non-contact distance sensor?
AND Is it possible at all????