14
For
linear Hall sensor module (with a comparator added)
Step 1:
Build the circuit
Linear Hall Sensor Module SunFounder Uno
AO ------------------------------------------- A0
DO ------------------------------------------- Digital 8
- -------------------------------------------- GND
+ ---------------------------------------------- 5V
LCD1602 connection:
connect pin RS to digital pin 3; R/W to GND; E to digital pin 4; D4~D7 to
digital pin 9 to 12; VSS to GND; VDD to 5V; A to 3.3V; K to GND
Potentiometer connection
: Connect its middle pin to VO of LCD1602 and any other pin to
GND
Step 2:
Program (Please refer to the example code in
LEARN -> Get Tutorial
on our
website
)
Step 3:
Compile
Step 4:
Upload the sketch to SunFounder Uno
Now, put a magnet close to the linear Hall
sensor, and the indicator LED on the linear Hall
sensor will light up. At the same time, the analog and digital value displayed on the LCD will
change accordingly.
SunFounder