Start Up Guide

This startup guide is meant to supplement the Trio Documentation and the Loop and Learn walkthrough videos for “iAPS” (the name of the app that preceded Trio). This guide attempts to summarize the highlights of the information you need when setting up Trio. It is not a complete A-Z guide, and you will need to consult the documentation for details when you are in doubt.

Last updated: June 31, 2024
App version used: Trio 0.2.0

  • What you need to have:

    • A relatively new iPhone (full device list)

    • A supported insulin pump (full pump list)

    • A supported CGM (full CGM list)

    • An Apple Watch (optional!) (version 3 and newer)

    • An Apple Developer account
      Using a free account requires you to re-build the app every week with a Mac

    • A Github account
      If you want to build and update Trio using your web browser

    • Time

    What you need to know:
    Here are some terms and abbreviations that are commonly used.

    • DIY: Do It Yourself, synonymous with taking control of your diabetes

    • BG: Blood Glucose

    • Profile Basal Rate: This is your preset rate of basal insulin, in units / hour

    • ISF: Insulin Sensitivity Factor (also known as Correction Factor)

    • CR: Carb Ratio (also known as Insulin to Carbohydrate Factor)

    • COB: Carbohydrate On Board (how many grams of carbohydrates are still active in your body)

    • IOB: Insulin On Board (how many units of insulin are still active in your body, not including insulin from your scheduled basal rates)

    • Temp Basal Rate: when needed, Trio will temporarily change your basal rate for a limited time. This is called a temporary basal rate

    • SMB: Super Micro Bolus. When needed, Trio will automatically bolus for you. An SMB is usually followed by a zero temporary basal rate (“zero-temp” or ZT). This is intentional and expected behavior

    • UAM: Unannounced Meal. Trio can detect an unexpected BG rise and treat it as an unannounced meal

    • TDD: Total Daily (insulin) Dosage. The total amount of insulin (basal + bolus) for an entire day

    • Core Settings: Profile Basal Rate, CR, and ISF

    What you need to do:
    You can’t download Trio from the App Store because this app is DIY. By installing the app yourself, you are taking ownership of and responsible for using Trio. We are here to help, but implementing any and all changes is ultimately your decision.

    To get started, you need to build the Trio app. The source code is “open source,” free to download and install on your iPhone.

    Build instructions can be found here. If you run into problems when building the app, reach out to the iAPS Community on Facebook or Discord.

    The rest of this guide assumes that you have a compatible iPhone, pump, and CGM and have built and installed the Trio app on your phone.

    • Build and install Trio
      If you have another DIY loop app installed on your iPhone, please remove CGM and Pump from that app before you continue.

    • Allow Notifications
      If you want to customize Trio notifications, go to Settings -> Notifications

    • Add your CGM
      Then, force-quit and restart Trio. Wait for Trio to pick up CGM readings. It might take up to 15 minutes. Nightscout is not a valid CGM for looping.

    • Add your Pump
      Remember to select the right insulin type to get an accurate insulin curve.

    • Add Nightscout (optional)
      Nightscout is not required for Trio to work. However, it is a great tool for reporting and remote features.

    • Add Apple Health (optional)
      Apple Health is not required for Trio to work. However, it is a great tool for reporting.

    • Add Basal Profile
      If you are uncertain, consult your endo or diabetes nurse. More information here.

    • Set your Target Glucose
      If you are uncertain, consult your endo or diabetes nurse. More information here.

    • Add Insulin Sensitivities (ISF)
      If you are uncertain, consult your endo or diabetes nurse.

    • Add Carb Ratios (CR)
      If you are uncertain, consult your endo or diabetes nurse. More information here.

    • Select Glucose Units
      Default is mmol/L; change to mg/dL if needed.

    • Set your Recommended Bolus Percentage
      This number will be applied as a factor in the bolus recommendations. A number below 100% will limit the bolus recommendation. More information here.

    • Set your Max Basal and Max Bolus in Pump Settings
      Max Basal is a limitation that ensures Trio will never set a higher basal rate. Max Bolus is a limitation that ensures Trio will not administer a bolus higher than this. There are several other limiting factors, but these are hard limits that will never be automatically exceeded. More information here.

    • Raise Max IOB
      to allow Trio to dose insulin. This is a hard limit. If IOB is above this limit, Trio will not automatically dose insulin. There are several other limiting factors, but these are hard limits that will never be automatically exceeded. More information here.

    • Check Bolus Increment
      Default is 0.1U. Set it based on your pump:

      • Omnipod, Dana: 0.05U

      • Medtronic x23, x54: 0.025U

      • Medtronic x15, x22: 0.1U

    • Enable SMB

      • With COB
        (Trio is allowed to give SMBs when there are carbs entered and onboard )

      • With Temp Target
        (Trio is allowed to give SMBs when there is a temporary target)

      • After Carbs
        (Trio is allowed to give SMBs after carbs are added )

      • With High BG
        (Trio is allowed to give SMBs when glucose is high, as defined by the setting “...When Blood Glucose is over (mg/dL)”. Note that this setting is in mg/dL! Default is 110 mg/dL.)

    • Change the Max Delta-BG Threshold SMB to 0.3
      to allow Trio to use SMB when glucose is rising quickly.

    • Enable UAM
      to allow Trio to detect unannounced meals and dose insulin when needed.

    • Do not enable any Dynamic Settings yet!
      Trio needs time to accumulate data before the dynamic features can work properly.

    • Close Loop

    • Change your app icon in Preferences 🙂

    You should now see that Trio is looping every 5 minutes. The loop circle should be green, adjusting your basal rates and giving you SMBs.

    The prediction lines in Trio should be ignored for the first 24 hours. They do not have adequate data to be reliable. They are only used in dynamic calculations. For this reason, do not turn on dynamic settings in the first 24 hours.

    In the first 24 hours, Trio will likely keep lows away, and the night will be awesome. Meals and highs, however, will be hard to handle without manual intervention. You should enter carbs and bolus for meals. Use the “Bolus” feature to add the insulin you need if your glucose is high. No need to add fake carbs to treat highs. Wait 24 hours while Trio gathers enough information about your glucose and TDD (Total Daily Insulin Dosage). This information is necessary before enabling dynamic features.

  • Tuning core settings

    Because #WeAreNotWaiting, you probably want to turn on all the dynamic features by now. Before you do, please note that the dynamic features work much better if your core settings (ISF, CR, and Basal Rates) are fairly accurate and your average TDD has had time to settle.

    The recommendation is to spend 2-7 days on this step. Some are ready to move on after a few days; others must spend more time adjusting settings.

    Many users of other DIY solutions have assumed that their current core settings would work fine in Trio. While existing core settings can be a good starting point, please be open to changing them. Each DIY algorithm utilizes the core settings in varying ways. What works in one may not work as well in another.

    Your core settings should also be comparable in aggressiveness for Trio to function optimally.

    Tuning SMB and UAM

    Trio uses SMB and UAM to give you insulin when your glucose rises. The amount of insulin you need is calculated with every loop cycle (5 minutes), but there are several safety limitations to ensure you do not get too much insulin.

    The settings Max SMB Basal Minutes and Max UAM SMB Basal Minutes will limit how much insulin can be delivered in one SMB. The first is used when corrections above a temp basal adjustment are needed, and the second is when Trio detects unannounced carbs.

    The default setting for both is 30, meaning one SMB is limited to 30 minutes of your current basal rate. To calculate this limit, use the formula: (Max SMB Minutes/60) x current basal rate. If your basal rate is 1 U/h, SMBs will be limited to (30/60) x 1 = 0.5U. This is a delivery cap; it will only give up to 0.5U.

    These default settings are conservative for many adult users. Consider raising them if you constantly get SMBs that max out the limitation.

    Look at the Common Scenarios and ideas on how to solve them. We’ve added these under Guides - Common Scenarios.

    When you are happy with your results, enable dynamic features.

    • Enable Dynamic ISF
      Trio
      will dynamically adjust your ISF

    • Enable Dynamic CR
      Trio
      will dynamically adjust your CR

    • Don’t touch the Adjustment Factor yet
      This is a safety feature that limits how much impact the dynamic features can have

    • Disable Autosens features that will be handled by Dynamic ISF

      • Disable High Temptarget Raises Sensitivity

      • Disable Low Temptarget Lowers Sensitivity

      • Disable Sensitivity Raises Target

      • Disable Resistance Lowers Target

    Wait for 24 hours and watch how Trio handles things before adjusting more settings.

    You can see how Trio adjusts your ISF and CR at any time by tapping the loop status. You will see ISF: X -> Y and CR: X -> Y. This means that Trio is dynamically adjusting your ISF and CR.

  • Here are some settings that may need tuning.

    Autosens Max
    This is a multiplier cap for autosens, autotune, and other dynamic features. The default setting is 1.2 (120%). The affected features will be limited to making your settings 20% more aggressive than your profile settings when glucose is above target. Changing this setting to, e.g., 1.5 means that the affected features will be limited to making your settings 50% more aggressive than your profile settings.

    Autosens Min
    This is a multiplier cap for autosens, autotune, and other dynamic features. The default setting is 0.7 (30% reduction). The affected features will be limited to making your settings 30% less aggressive than your profile settings when glucose is below target. Changing this setting to, e.g., 0.6 (40% reduction) means that the affected features will be limited to making your settings 40% less aggressive than your profile settings.

    Adjustment Factor
    The adjustment factor is a safety feature. It allows you to specify a value between 0.1 and 3 (10% - 300%). A lower adjustment factor will make ISF less aggressive (increasing your ISF number). A higher adjustment factor will make ISF more aggressive (decreasing your ISF number).

    The Sigmoid Formula requires a lower starting point for the adjustment factor. Because of that, the default value has been set to 0.5. If you are not using the Sigmoid formula, the recommended starting point is 0.7-0.8.

    Max SMB and UAM Basal Minutes
    These settings will limit how much insulin can be delivered in one SMB. The first is used when there’s COB, and the second is when Trio detects an unannounced meal.

    The default setting for both is 30, meaning one SMB is limited to 30 minutes of your current hourly basal rate. If your basal rate is 1 U/h, SMBs will be limited to 0.5U. This is a limitation; it does not mean that 0.5U will be given.

    These default settings are conservative for many adult users. Consider raising them if you constantly get SMBs that max out the limitation.

    SMB Delivery Ratio
    This is another safety feature intended to avoid dosing too much insulin. Then Trio calculates how much insulin you need, the resulting SMB will be multiplied with this factor. The default value is 0.5, meaning half the calculated amount can be delivered. The amount will also be limited by Max SMB/UAM Basal Minutes.

    Please remember that Trio does a new calculation with every loop cycle (5 minutes). This setting does not necessarily need to be changed.

    Sigmoid or Logarithmic formula
    By default, Trio uses a Logarithmic formula for the dynamic ISF feature. This is the default and recommended setting for new users because it is built on documented research and has been tested for over a year in the AndroidAPS community. By not activating the Sigmoid formula, you are using the Logarithmic formula.

    The Sigmoid formula is a different approach to determining dynamic ISF. Rather than looking at historical data to determine ISF, the Sigmoid feature will change your ISF depending on how far away your current BG is from your target BG. While some users have successfully used the Sigmoid feature, it is still considered highly experimental and does not yet have a long track record.