13
For
Switch Hall Sensor module
Step 1:
Build the circuit
Switch Hall Sensor Module SunFounder Uno
S ----------------------------------------Digital 8
- ---------------------------------------- GND
+ ---------------------- ----------------- 5V
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, place a magnet close to the switch Hall sensor. Then the indicator LED on the switch
Hall sensor will light up and the buzzer will beep. At the same time, the LED attached to pin
13 on the SunFounder Uno board will light up.
SunFounder