I am making magnetic data storage with neodymium magnets and a hall effect sensor.
The sensor detects the strength of the magnet with current flow. If at anytime the south pole is near the sensor, the current flow is negative which turns into a 0 V output.
This project works by reading the magnetic poles of each magnet and giving it a value, 0 or 1, accordingly. Then the data is stored in an array of some sort and then the program will hopefully output a binary code.
So... I was thinking of a loop that reads the data from the sensor at a given time. The void would have to have some sort of delay OR... an conditional that makes the sensor read a north and a south pole or a south and a north pole in oder to store the data and then pass to the next magnet so that the sensor won't output a million values.
Any ideas? Pls help.