# ScoutMakes DRV5032 Hall Sensor

## Overview

![proximity_20240813_210319.jpg](https://cdn-learn.adafruit.com/assets/assets/000/132/531/medium800/proximity_20240813_210319.jpg?1727055580)

This is a breakout for the Texas Instruments DRV5032 Digital Magnetic Hall Effect Sensor. It is the perfect way to add proximity sensing to your project. The sensor has a digital output that indicates when the magnetic flux density threshold has been crossed. The device integrates a Hall effect element, analog signal conditioning, and a low-frequency oscillator that enables ultra-low average power consumption. By operating from a 1.65-V to 5.5-V supply, the device periodically measures magnetic flux density, updates the output, and enters a low-power sleep state.

The breakout comes with a 3-pin header for breadboard use. This board has a simple plug-and-play JST PH (2mm pitch) 3-pin input connector for solderless use. This cable is&nbsp;[sold separately](https://www.adafruit.com/product/3893)&nbsp;and is not needed to use the board.

[Open Source Hardware Association Certified US002671](https://certification.oshwa.org/us002671.html)

Specific sensor: TI DRV5032FBDBZR

![](https://cdn-learn.adafruit.com/assets/assets/000/132/532/medium800/proximity_20240813_211657.jpg?1727055429)

# ScoutMakes DRV5032 Hall Sensor

## Pinouts

![proximity_20240813_211759.jpg](https://cdn-learn.adafruit.com/assets/assets/000/132/527/medium800/proximity_20240813_211759.jpg?1727055593)

The breakout can be used via the 3-pin JST-PH connector, or the 3 pin breadboard header.

## JST-PH Connector

On the front of the board is the JST-PH connector with the three pins for providing power and a signal from the DRV5032FBDBZR Digital Hall Sensor.

- **GND -** The left input on the JST-PH connector is common ground shared between the two CAN connections.
- **VIN -** &nbsp;It is connected to the middle pin on the JST-PH connector. This has to be a DC voltage 1.65V to 5.5V.
- **OUT** &nbsp;- the DRV5032 output signal pin changes between HIGH and LOW depending on the presence of a magnetic field. It is connected to the right input on the JST-PH connector.

https://www.youtube.com/watch?v=_kNhAP1jb1I

# ScoutMakes DRV5032 Hall Sensor

## CircuitPython

The ScoutMakes DRV5032 Hall Sensor can be easily used with CircuitPython. Since the signal pin from the breakout board drives HIGH or LOW based on the presence of a magnetic field, it can be easily connected to IO pins to a QT Py, for example, or other microcontroller.

```auto
"""CircuitPython ScoutMakes DRV5032 Digital Hall Sensor example"""
import time
import board
from digitalio import DigitalInOut, Direction, Pull
switch = DigitalInOut(board.A0)
switch.direction = Direction.INPUT
switch.pull = Pull.UP

while True:
    # We could also do "led.value = not switch.value"!
    if switch.value:
        print ("1")
    else:
        print ("0")
    time.sleep(0.1)  # debounce delay
```

![proximity_ScoutMakes_Hall_Sensor_GIF.gif](https://cdn-learn.adafruit.com/assets/assets/000/132/528/medium800thumb/proximity_ScoutMakes_Hall_Sensor_GIF.jpg?1727055609)

# ScoutMakes DRV5032 Hall Sensor

## Downloads

- [ScoutMakes/TinkeringTech DRV5032 Digital Hall Sensor Design Files](https://github.com/tinkeringtech/DRV5032-Hall-Sensor)

![proximity_Board-capture-schematic.png](https://cdn-learn.adafruit.com/assets/assets/000/132/529/medium800/proximity_Board-capture-schematic.png?1727055624)

Specific sensor: TI DRV5032FBDBZR

![proximity_Board-capture.png](https://cdn-learn.adafruit.com/assets/assets/000/132/530/medium800/proximity_Board-capture.png?1727055630)


## Featured Products

### STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm](https://www.adafruit.com/product/3893)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3893)
[Related Guides to the Product](https://learn.adafruit.com/products/3893/guides)

## Related Guides

- [Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout](https://learn.adafruit.com/adafruit-tca9548a-1-to-8-i2c-multiplexer-breakout.md)
- [Monster M4sk Is Watching You](https://learn.adafruit.com/monster-m4sk-is-watching-you.md)
- [Feather Freezer Door Alarm](https://learn.adafruit.com/feather-door-alarm.md)
- [Adafruit Trinkey QT2040](https://learn.adafruit.com/adafruit-trinkey-qt2040.md)
- [Adafruit VCNL4020 Proximity and Light Sensor](https://learn.adafruit.com/adafruit-vcnl4020-proximity-and-light-sensor.md)
- [Adafruit Metro RP2350](https://learn.adafruit.com/adafruit-metro-rp2350.md)
- [No-Code WipperSnapper Summoning Horn](https://learn.adafruit.com/adafruit-io-wippersnapper-summoning-horn.md)
- [Matrix Portal Money-Sensing Tip Jar](https://learn.adafruit.com/matrix-portal-money-sensing-tip-jar.md)
- [Adafruit BH1750 Ambient Light Sensor](https://learn.adafruit.com/adafruit-bh1750-ambient-light-sensor.md)
- [NeoPixel Remote: IR Control with WLED](https://learn.adafruit.com/neopixel-remote-ir-control-with-wled.md)
- [LSM303 Accelerometer + Compass Breakout](https://learn.adafruit.com/lsm303-accelerometer-slash-compass-breakout.md)
- [No-Code Offline Data Logger with WipperSnapper](https://learn.adafruit.com/no-code-offline-data-logging-with-wippersnapper.md)
- [Adafruit VL53L4CD Time of Flight Distance Sensor](https://learn.adafruit.com/adafruit-vl53l4cd-time-of-flight-distance-sensor.md)
- [Adafruit MAX17048 LiPoly / LiIon Fuel Gauge and Battery Monitor](https://learn.adafruit.com/adafruit-max17048-lipoly-liion-fuel-gauge-and-battery-monitor.md)
- [Using the RockBLOCK Iridium Modem](https://learn.adafruit.com/using-the-rockblock-iridium-modem.md)
