|
| 1 | +.. zephyr:code-sample:: max32664c |
| 2 | + :name: MAX32664C + MAX86141 Sensor Hub |
| 3 | + :relevant-api: sensor_interface |
| 4 | + |
| 5 | + Get health data from a MAX32664C and a MAX86141 sensor (polling mode) and publish them via Bluetooth. |
| 6 | + |
| 7 | + NOTE: This example requires sensor hub firmware 30.13.31! |
| 8 | + |
| 9 | +Overview |
| 10 | +******** |
| 11 | + |
| 12 | + This sample measures the heart rate and the blood oxygen saturation on a wrist and use the Zephyr |
| 13 | + Heartrate service to publish them via Bluetooth. It uses the MAX32664C sensor to control the MAX86141 sensor. |
| 14 | + |
| 15 | +Requirements |
| 16 | +************ |
| 17 | + |
| 18 | + This sample uses the MAX32664 sensor controlled using the I2C30 interface at |
| 19 | + the nRF54L15-DK board. |
| 20 | + |
| 21 | +References |
| 22 | +********** |
| 23 | + |
| 24 | + - MAX32664C: https://www.analog.com/en/products/max32664.html |
| 25 | + |
| 26 | +Building and Running |
| 27 | +******************** |
| 28 | + |
| 29 | + This project outputs sensor data to the console. It requires a MAX32664C |
| 30 | + sensor to be connected to the desired board. An additional MAX86141 sensor |
| 31 | + must be connected to the MAX32664C to provide the sensor data for the algorithms. |
| 32 | + |
| 33 | + .. zephyr-app-commands:: |
| 34 | + :zephyr-app: samples/sensor/max32664/ |
| 35 | + :goals: build flash |
| 36 | + |
| 37 | + |
| 38 | +Sample Output |
| 39 | +============= |
| 40 | + |
| 41 | + .. code-block:: console |
| 42 | +
|
| 43 | + Test all attributes for a good guess of attribute usage away of saturation. |
| 44 | + Light (lux): 6179 ALS (raw): 7100 IR (raw): 27 it: 0 div4: 0 gain: 0 -- |
| 45 | + Light (lux): 1500 ALS (raw): 3447 IR (raw): 34 it: 0 div4: 0 gain: 1 -- |
| 46 | + Light (lux): 4664 ALS (raw): 3537 IR (raw): 17 it: 0 div4: 0 gain: 2 -- |
| 47 | + Light (lux): 5601 ALS (raw): 3218 IR (raw): 13 it: 0 div4: 0 gain: 3 -- |
| 48 | + Light (lux): 1302 ALS (raw): 374 IR (raw): 5 it: 0 div4: 1 gain: 0 -- |
| 49 | + Light (lux): 5584 ALS (raw): 3208 IR (raw): 11 it: 0 div4: 1 gain: 1 -- |
| 50 | + Light (lux): 5285 ALS (raw): 1002 IR (raw): 3 it: 0 div4: 1 gain: 2 -- |
| 51 | + Light (lux): 1455 ALS (raw): 209 IR (raw): 2 it: 0 div4: 1 gain: 3 -- |
| 52 | + Light (lux): 4925 ALS (raw): 11317 IR (raw): 50 it: 1 div4: 0 gain: 0 -- |
| 53 | + Light (lux): 3916 ALS (raw): 17999 IR (raw): 90 it: 1 div4: 0 gain: 1 -- |
| 54 | + Light (lux): 2796 ALS (raw): 4299 IR (raw): 28 it: 1 div4: 0 gain: 2 -- |
| 55 | + Light (lux): 5178 ALS (raw): 5950 IR (raw): 26 it: 1 div4: 0 gain: 3 -- |
| 56 | + Light (lux): 4339 ALS (raw): 2493 IR (raw): 12 it: 1 div4: 1 gain: 0 -- |
| 57 | + Light (lux): 2186 ALS (raw): 2512 IR (raw): 19 it: 1 div4: 1 gain: 1 -- |
| 58 | + Light (lux): 5578 ALS (raw): 2115 IR (raw): 8 it: 1 div4: 1 gain: 2 -- |
| 59 | + Light (lux): 4494 ALS (raw): 1291 IR (raw): 6 it: 1 div4: 1 gain: 3 -- |
| 60 | + Light (lux): 3675 ALS (raw): 16892 IR (raw): 93 it: 2 div4: 0 gain: 0 -- |
| 61 | + Light (lux): 3209 ALS (raw): 29495 IR (raw): 172 it: 2 div4: 0 gain: 1 -- |
| 62 | + Light (lux): 4520 ALS (raw): 13710 IR (raw): 66 it: 2 div4: 0 gain: 2 -- |
| 63 | + Light (lux): 4215 ALS (raw): 9687 IR (raw): 49 it: 2 div4: 0 gain: 3 -- |
| 64 | + Light (lux): 3492 ALS (raw): 4013 IR (raw): 22 it: 2 div4: 1 gain: 0 -- |
| 65 | + Light (lux): 3786 ALS (raw): 8700 IR (raw): 43 it: 2 div4: 1 gain: 1 -- |
| 66 | + Light (lux): 4735 ALS (raw): 3591 IR (raw): 15 it: 2 div4: 1 gain: 2 -- |
| 67 | + Light (lux): 3779 ALS (raw): 2171 IR (raw): 11 it: 2 div4: 1 gain: 3 -- |
| 68 | + Light (lux): 3848 ALS (raw): 35376 IR (raw): 188 it: 3 div4: 0 gain: 0 -- |
| 69 | + Light (lux): 3565 ALS (raw): 65535 IR (raw): 359 it: 3 div4: 0 gain: 1 -- OVERFLOW |
| 70 | + Light (lux): 4333 ALS (raw): 26297 IR (raw): 130 it: 3 div4: 0 gain: 2 -- |
| 71 | + Light (lux): 3576 ALS (raw): 16435 IR (raw): 93 it: 3 div4: 0 gain: 3 -- |
| 72 | + Light (lux): 4409 ALS (raw): 10133 IR (raw): 47 it: 3 div4: 1 gain: 0 -- |
| 73 | + Light (lux): 3395 ALS (raw): 15606 IR (raw): 85 it: 3 div4: 1 gain: 1 -- |
| 74 | + Light (lux): 4519 ALS (raw): 6854 IR (raw): 31 it: 3 div4: 1 gain: 2 -- |
| 75 | + Light (lux): 3694 ALS (raw): 4245 IR (raw): 23 it: 3 div4: 1 gain: 3 -- |
| 76 | + Light (lux): 3565 ALS (raw): 65535 IR (raw): 376 it: 4 div4: 0 gain: 0 -- OVERFLOW |
| 77 | + Light (lux): 1782 ALS (raw): 65535 IR (raw): 723 it: 4 div4: 0 gain: 1 -- OVERFLOW |
| 78 | + Light (lux): 3992 ALS (raw): 48450 IR (raw): 253 it: 4 div4: 0 gain: 2 -- |
| 79 | + Light (lux): 3943 ALS (raw): 36247 IR (raw): 191 it: 4 div4: 0 gain: 3 -- |
| 80 | + Light (lux): 3970 ALS (raw): 18248 IR (raw): 92 it: 4 div4: 1 gain: 0 -- |
| 81 | + Light (lux): 3814 ALS (raw): 35064 IR (raw): 176 it: 4 div4: 1 gain: 1 -- |
| 82 | + Light (lux): 4082 ALS (raw): 12381 IR (raw): 62 it: 4 div4: 1 gain: 2 -- |
| 83 | + Light (lux): 4052 ALS (raw): 9311 IR (raw): 47 it: 4 div4: 1 gain: 3 -- |
| 84 | + [...] |
| 85 | + Test finished. |
0 commit comments