hi all, i have a project where i need an led to remain off in the presence of a small magnet, and gradually brighten as the magnet moves away (a few cm difference between full on and off i hope, although the mechanical design could be adapted for smaller distances if necessary) .
alternatively if its simpler, i guess the opposite might be acceptable, i.e. led gets brighter as magnet approaches, again with a modified mechanical design. .
i assume a hall effect sensor is the answer, and im hoping i can find one which can do what i ask with extremely minimal external components, as i have to build literally hundreds of the things for an art installation.
most of the stuff online uses the sensor as a switch, or to provide a pwm output to an arduino or similar.
i understand that analogue hall sensors will output a variable voltage depending on field strength, but i am unsure if a) one exists that can directly drive an led (ideally a fairly bright one) and b) if one exists with an inverse output so the led gets brighter with reducing field strength.
any pointers would be most appreciated.
alternatively if its simpler, i guess the opposite might be acceptable, i.e. led gets brighter as magnet approaches, again with a modified mechanical design. .
i assume a hall effect sensor is the answer, and im hoping i can find one which can do what i ask with extremely minimal external components, as i have to build literally hundreds of the things for an art installation.
most of the stuff online uses the sensor as a switch, or to provide a pwm output to an arduino or similar.
i understand that analogue hall sensors will output a variable voltage depending on field strength, but i am unsure if a) one exists that can directly drive an led (ideally a fairly bright one) and b) if one exists with an inverse output so the led gets brighter with reducing field strength.
any pointers would be most appreciated.

