Skip to content

Serial Commands

Alan Weinstock edited this page Mar 14, 2019 · 3 revisions

To set the auto-tuning parameters using serial input, use the following:

  • To change trigger active duration: TRG_D [integer for milliseconds]
  • To change gain factor: GAIN_F [integer for gain state - see note*]
  • To change sensor input pullup vRef high threshold: VADJH [float value]
  • To change sensor input pullup vRef low threshold: VADJL [float value]
  • To change comparator trigger high threshold: VCOMPH [float value]
  • To change comparator trigger high threshold: VCOMPL [float value]

These commands should be wrapped in this format: <CMD, INT, FLOAT>

You must include the unused variable for each instance.

Examples: <GAIN_F, 3, 0.00> <VADJH, 0, 2.35>

*Note for Gain Factor:

The gain STATE is representative of these values:

  • 0 = 3x
  • 1 = 3.5x
  • 2 = 4.33x
  • 3 = 6x
  • 4 = 11x
Clone this wiki locally