• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/04-Jan-2025-9071

CMakeLists.txtD04-Jan-2025271 1310

README.rstD04-Jan-20251.1 KiB5336

prj.confD04-Jan-202554 43

sample.yamlD04-Jan-2025194 1211

README.rst

1.. zephyr:code-sample:: sm351lt
2   :name: SM351LT Magnetoresistive Sensor
3   :relevant-api: sensor_interface
4
5   Detect a magnet's presence using the SM351LT magnetoresistive sensor (polling & trigger mode).
6
7Overview
8********
9
10This sample application periodically polls an SM351LT magnetoresistive sensor
11and displays if a magnet near to the sensor, via the console.
12
13Requirements
14************
15
16This sample uses the Honeywell SM351LT sensor.
17
18References
19**********
20
21For more information about the SM351LT magnetoresistive sensor see
22https://sensing.honeywell.com/SM351LT-low-power
23
24Building and Running
25********************
26
27The SM351LT (or compatible) sensors are available on the following boards:
28
29* :zephyr:board:`bt510`
30
31Building on bt510
32==================
33
34:zephyr:board:`bt510` includes a Honeywell SM351LT magnetoresistive sensor.
35
36.. zephyr-app-commands::
37   :zephyr-app: samples/sensor/sm351lt
38   :board: bt510
39   :goals: build flash
40   :compact:
41
42Sample Output
43=============
44
45.. code-block:: console
46
47    Polling at 0.5 Hz
48    #1 @ 6 ms: 1
49    #2 @ 2007 ms: 0
50    #3 @ 4009 ms: 0
51    #4 @ 6010 ms: 1
52    #5 @ 8012 ms: 1
53