# mbed-os-example-s1sbp6a **Repository Path**: mirrors_ARMmbed/mbed-os-example-s1sbp6a ## Basic Information - **Project Name**: mbed-os-example-s1sbp6a - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-20 - **Last Updated**: 2025-09-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BP6A Example The example project is the getting started example for BP6A. It contains ECG, PPG, BIA, and GPIO, i2c application. You can build the project with all supported Mbed OS build tools. ## Mbed studio You can import s1sbp6a example. * step 1. Open the File menu and select Import Program * step 2. Paste the full HTTPS of this example, "https://github.com/ARMmbed/mbed-os-example-s1sbp6a" ## Mbed CLI You can import after clone manually. * step 1. manually clone this example ```bash $git clone https://github.com/ARMmbed/mbed-os-example-s1sbp6a ``` * step 2. set the this program directory as the root of your program ```bash $mbed new . ``` * setp 3. get all missing libraries ```bash mbed deploy ``` #### Build & Download You can build the example and copy it to DAPLink to download the firmware image. ```bash $mbed compile -t -m S1SBP6A ``` ## Expected output The example starts show the menu you can select. ```bash $sudo minicom /dev/ttyACM0 SIDK BP6A Example ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> ``` ### BIA example This example is for Body impedance. ```bash ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> b Select menu >>BIA ExampleStart Calibration Start calibration r: 0, code: 849 calibration r: 1, code: 408 5653 215 170 150 142 139 142 148 157 166 175 187 195 202 209 215 221 ``` ### ECG example This example is for ECG. ```bash ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> e Select menu >>ECG ExampleStart 2681 2620 2547 2553 2654 2634 2583 2543 2632 2676 2602 2555 2577 2675 2633 2564 2583 2663 2639 2579 ``` You can also see the ECG data as a graph with bp6a_data_plot.py ```bash $python bp6a_data_plot.py -p /dev/ttyACM0 ``` ![ecg plot](./image/ecg_view.gif) ### PPG example This example is for PPG. ```bash ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> p Select menu >>PPG ExampleStart 2166293 2174849 2181769 2162016 2170146 2172667 2168917 2166199 2158735 2171078 2173429 2161364 2169346 2167306 2195398 2182067 2183647 2185844 2170946 ``` You can also see the PPG data as a graph with bp6a_data_plot.py ```bash $python bp6a_data_plot.py -p /dev/ttyACM0 ``` ![ecg plot](./image/ppg_view.gif) ### GPIO example This example is forLED, Buzzer and button. When the button is pressed, the LED color changes and the LED flashes repeatedly or a buzzer sounds. ```bash ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> g Select menu >>start gpio_example if you press the Test button, LED and buzzer will be changed ``` ### i2c example You can test IMU with i2c example ```bash ========= Menu ========= bia example : b ecg example : e ppg example : p gpio example : g i2c example : i stop example : q ============================ Select menu >> i Select menu >>i2c IMU example Who am I : 0x12 Accel Config : 0x0 Gyro Config : 0x0 Accelerometer : -172 292 16652 Gyroscope : -16 -39 43 Accelerometer : -144 192 16516 Gyroscope : -7 -62 45 Accelerometer : -176 220 16708 Gyroscope : -34 -40 28 ```