Skip to content

YuTecHealth/TriBLE_nRF52_Arduino

Repository files navigation

  • Biomedical Development Platform for Wearable Device (Video)
    • Hardware - Three channels bluetooth main board (Tri_BLE) / biosensor board (ECG、EMG、PPG、EEG、Breath、Temp)
    • Firmware - Use Arduino IDE to develop or restore Tri_BLE
    • Software - iOS, Android and PC Application for Tri_BLE

Firmware

This document includes the following content:

  1. [For user] Using the Factory Settings to get the data easily with main board (TriBLE) and sensor boards.

  2. [For developer] Basic information you need to know about the TriBLE as a micro-controller.

    A. TriBLE description

    B. Develop with TriBLE Arduino IDE

    C. TriBLE Playground

  3. Frequently asked questions (FAQ)

1. [For user] TriBLE Factory Settings and Usage

  • A. TriBLE has 3 channels to connect with sensor boards. The channel names are shown in the following figure.

    Yutech logo

  • B. Quick steps to start-up:

    • Select sensor boards and software
      • Sensor board: ECG、EMG、PPG、EEG、Breath、Temp
      • Software - iOS, Android and PC Application for Tri_BLE
    • Power on TriBLE and assemble sensor boards on it.
    • Connect TriBLE and Software then get biosignal!
  • C. An start-up example:

    • Start-up Video

    • Select TriECG and TriPPG as sensore boards and choose iOS apps as Software
      Yutech logo

    • Power on TriBLE and assemble TriECG and TriPPG to it.
      Yutech logo

    • iOS Apps: Scan, connect then start showing biosignal
      * Yutech logo

  • D. Other firmware with different case:

    • For wireless communication

      • Firmware:
        • Factory Settings:TriBLE Official Firmware <--works on iOS / Android / PC
        • TriBLE 1~10: Same as TriBLE Official Firmware with number)
        • TriPPG Pro Ver.K: Use for TriPPG Pro daughter module
        • TriBLE-YuCloth: Use for YuCloth sensor with TriResp and TriECG daughter module
      • Software:
    • For wired communication

  • E. How to change factory settings firmware to others?

    • YuTech TriBLE Firmware Programmer
    • Arduino BSP Method
      • a. Install Arduino Board Support Package (BSP)
      • b. Launch Arduino IDE
      • c. Select Tools > Programmer > TriBLE Official Firmware (for wireless communication) or TriAnswer UART FW - Ver.S (for wired communication)
        Yutech logo
      • d. Select Tools > Port > COMXX (Yutech TriBLE nRF52840)
        Yutech logo
      • e. Select Tools > Burn Bootloader
      • f. Wait about 5~10 sec, if jump out the following commends, it's means UNSUCCESS, please follow the following steps.
        Yutech logo
      • g. Select Tools > Port > COM YY (Yutech TriBLE nRF52840) (YY won't be equal to XX)
      • h. Select Tools > Burn Bootloader
      • i. Wait about 10~30 sec, it's means SUCCESS if the following commends are shown.
        Yutech logo

2. [For developer] TriBLE Factory Settings and Usage

A. TriBLE description

  • a. Pin configuration
    Yutech logo
  • b. Pin function discriptions
    Yutech logo

B. Develop with TriBLE on Arduino IDE

  • a. Environment establish: Install Yutech nRF52 Board Support Package (BSP) via Arduino Board Manager

    • I. Download and install the Arduino IDE (At least v1.6.12)
      • Select the version of your OS.
      • Directly press 'Just Download' in the donate page.
        Yutech logo
    • II. Start Arduino IDE (for linux users, please start Arduino IDE under sudo su (run the command aruidno after run the command sudo su in command line))
    • III. Go to File -> Preferences
    • IV. Add https://raw.githubusercontent.com/YuTecHealth/silver-bassoon/master/package_Yutech_index.json as an 'Additional Board Manager URL'
      Yutech logo
    • V. Restart the Arduino IDE (for linux user, please run the following command sudo pip3 install adafruit-nrfutil or sudo pip install adafruit-nrfutil in command line before starting Arduino IDE)
    • VI. Select the Boards Manager
      • Tools -> Board: "XXXXXXXXX" -> Board Manager
      • Type "Yutech" and you can find "Yutech nRF52 by Yutech" to install the BSP. (Please install latest version)
        Yutech logo
    • VII. Once the BSP is installed, select 'Yutech TriAnswer Boards (nRF52 Series)' from the Tools -> Board, which will update your system config to the right compiler and the correct settings for the TriBLE main Board. Complete installation for Yutech nRF52 BSP!
      Yutech logo
    • (Appendix 1) How to change language. * File -> Preferences -> Editor language
      Yutech logo
    • (Appendix 2) Window 7 need extra drivers
  • b. UPLOAD and run your codes

    • I. Select an example Code (File > Examples > Examples for Yutech TriBLE nRF52840 > TriBLE Tutorial) or make your own codes.
    • II. Connect your TriBLE with your PC. (Recommendation: Use the USB as power source)
    • III. Select Tools > Board > Yutech TriAnswer Boards (nRF52 Series) > Yutech TriBLE nRF52840
      Yutech logo
    • IV. Select Tools > Port > COMXX (Yutech TriBLE nRF52840)
      Yutech logo
    • V. Press Yutech logo (Compile + Upload), or press Yutech logo (Compile), and then press Yutech logo (Upload)).
    • Upload successfully 👋 Shows "Device programmed"
      Yutech logo

C. TriBLE Playground

Appendix. If you got some trouble... try to renew bootloader!!!!

Method 1: Connect TriBLE board to PC through USB cable only.
Method 2: Connect TriBLE board to PC through both J-Link device and USB cable. (Fatal error only)
--------------------------------------------------------------
Method 1

  • I. Select Tools > Board > Yutech TriAnswer Boards (nRF52 Series) > Yutech TriBLE nRF52840
  • II. Select Tools > Port > COMXX (Yutech TriBLE nRF52840)
  • III. Select Tools > Programmer > DFU for TriBLE nRF52
  • IV. Select Tools > Burn Bootloader
  • V. Wait about 20~30 sec.
  • Figure of successful burning
    Yutech logo

Method 2

  • I. To use J-Link, user should install the driver Here.
  • II. Choose your OS and click to download.
    Yutech logo
  • III. Install the driver.
    Yutech logo
  • IV. Connect TriBLE and J-link to your PC.
    Yutech logo
  • V. Launch Arduino IDE.
  • VI. Select Tools > Board > Yutech TriAnswer Boards (nRF52 Series) > Yutech TriBLE nRF52840
  • VII. Select Tools > Programmer > J-link for TriBLE nRF52
  • VIII. Select Tools > Burn Bootloader and press Accept
    Yutech logo
  • IX. Wait about 20~30 sec.
  • Figure of successful burning
    Yutech logo

3. [Frequently asked questions (FAQ)]

Q1 -> If you have problem with TriBLE Default Firmwares....

  1. Please check whether your arduino IDE has the comments shown in the following figure after doing the steps in TriBLE Default Firmwares / Apps - Firmware setting steps.

Yutech logo

  1. Don't remove your device and re-do Step 4~6 of TriBLE Default Firmwares / Apps - Firmware setting steps.

Q2 -> If you have problem with MISSING COM-Port in arduino IDE in win7....

  1. Please install the driver. (Yutech board driver for win 7)
  2. Commonly, there will be a long waiting time for COM-Port search (about 1~2 mins) when it is used at the first time.
  3. Maybe, you will encounter another long waiting time for COM-Port search when you solve Q1. (Don't remove your device from PC, JUST WAIT !!!!!!)

Q3 -> If you have problem with Compile/Upload in Arduino IDE just like the following picture....

Yutech logo

  1. Please download the previous Arduino IDE version. (1.8.11 is recommended !!!!)

Q4 -> If you have problem with BSP version update....

Shows "java.lang.NullPointerException"

Yutech logo

(The folder AppData may be hidden. To show the folder, please follow the step in the figure below.)

Yutech logo

  1. Delete this folder "C:\Users[username]\AppData\Local\Arduino15\cache".
  2. Delete this folder "C:\Users[username]\AppData\Local\Arduino15\packages\Yutech".
  3. Delete this file "C:\Users[username]\AppData\Local\Arduino15\package_Yutech_index.json".
  4. Follow the Step 6~7 of BSP Installation to re-install the BSP.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages