Useful for non contact waterproof type switches position sensors rotary shaft encoders.
Hall effect sensor raspberry pi.
Change directory cd home pi sunfounder sensorkit for rpi2 c 17 analog hall switch step 3.
Raspberry pi banana pi orange pi if your using banana pi or orange see first the gpio pins hall effect sensor led any color 220 ohms resistor solder less bread board jumper wire dupont wire 10k resistor optional.
Compile gcc analog hall switch c lwiringpi step 4.
A hall effect sensor can measure current without any electrical connection to the high amp electrical system it rely solely on the magnetic field set up by a the current flowing through the wire.
High response rates allow readouts to be taken even at frequencies of 100khz.
Interfacing hall sensor with raspberry pi required components.
Hall effect sensors detect whether a magnet is near.
Most popular uses are in proximity sensing detecting speeds of spinning objects or as door sensors.
The sensor i chose was an allegro hall effect sensor a1120eua t.
I wanted a cheap compact magnet that i would be able to easily mount on the printer so i ordered some from.
It can be triggered by a natural magnet or an electromagnet.
Runs at 3 5v up to 24v.
This tutorial will be based on the raspbian stretch os so to proceed as usual i will assume you.
For using hall effect sensor with raspberry pi connect the components according to the schematic.
I tried dozens of different hall effect sensors to see which one would work best for the spokepov kit to determine the wheel location and this one came out on top.
It cost approximately 1 from cpc.
Build the circuit raspberry pi pcf8591 module analog hall.
Hall sensor module is a very responsive switch that is activated by a magnetic field.