Raspberry Pi Pico W connected to a Hall sensor
Example code of the Raspberry Pi Pico W connected to a Hall sensor.
The objective is to measure a magnetic strength, thus determine its distance from the sensor
Connections
Description | Colour | Pico W | Hall Sensor |
---|---|---|---|
Power 3v | Orange | pin36 3V3(OUT) | 3.3v |
Ground | Black | pin33 GND | GND |
Analog | Yellow | pin31 GP26 ADC0 | Analog output |


Photo






