1. Home
  2. Docs
  3. MANUALS AND DATASHEETS
  4. Polaris Manual
  5. Main Connector
  6. Using Analog Inputs

Using Analog Inputs

There are 4 analog input channels on the Main connector, that share the same external pin with digital channels. The MCU can select one of two external input ranges:

  • Range = High (0 – 32 Volts)
  • Range = Low (0 – 5 Volts)

Here below the simplified schematic of each analog channel:

Here is an example Arduino sketch that reads analog inputs AIO1 and AIO2 and prints out the measured voltage:

void setup()  void loop()  

The same example with Zerynth:

from fortebit.polaris import polaris polaris.init() while True: print("AIO1 (V):", polaris.readAnalogInputVoltage(0, LOW)) print("AIO2 (V):", polaris.readAnalogInputVoltage(1, HIGH)) sleep(1000) 

How can we help?