Head Tracker v2.1
  • Head Tracker v2.1
    • HeadTracker v2.2
  • Getting Started
    • Hardware Required
    • Software Installation
      • Flashing Firmware
    • Wiring
      • Option 1- Bluetooth
        • Adding a FrSky BT Module
        • Checking Bluetooth Functionality?
      • Option 2 - Wired
        • Pulse Position Modulation (PPM)
          • Trainer Ports
        • Serial Bus (SBUS)
          • Radio Master TX16S Setup
          • FrSky Taranis X9D
      • Option 3 - Bridged
        • Radio Master TX16S Mk2
      • Analog Input
      • Digital Inputs
      • PPM Input
      • PWM Output
      • ELRS Setup
      • Flight Stick
    • Mounting
      • User Designed Cases
    • Structure of the Application
    • IMU, Calibration and Drift
    • Extended Servo Range
  • Settings
    • GUI Setup
      • Tilt / Roll / Pan
      • General
      • Output
      • Input
      • Bluetooth
      • PWM
      • Analog
      • Aux
  • Radio Setup
    • How to Edit Documentation
    • Open/Edge TX
      • Color Screen Radios
      • Black and White Radios
    • Jeti
    • Spektrum
      • NX
      • DX
        • DX18
    • Flysky
    • Frsky - Ethos
  • Videos
    • YouTube
  • Support
    • Discord Chat
    • Issues
    • Development
      • Firmware
        • Debugging
        • Arduino Nano 33 BLE
        • IMU Sensor Chip
      • GUI (Qt6)
      • GUI (Qt5, Depreciated)
      • Git Workflow and Actions
  • Links
    • Download
    • GitHub Page
    • RC Groups Forum
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started
  2. Wiring

Digital Inputs

PreviousAnalog InputNextPPM Input

Last updated 3 years ago

Was this helpful?

You can add a digital button channel via the Head Tracker by cheating a little bit and use the analog input pins. Although this isn't going to be of too much use as your radio usually has plenty of switches :) Maybe you want an extra button on your headset for some reason.

Wire your switch from the 3.3V pad on the Arduino Nano through your switch and into A6 or A7. (As of V2.1 you can use A4-A6). You will need a pull down resistor to keep the signal at zero when the switch is off. On the Analog page of the GUI leave the settings as default. Gain=310, Offset=0.

You can also make this work with a 3 position switch and two 10K resistors. Wire like shown below for a 3 position switch. When in the center it makes a voltage divider inputting 1.65v into the analog pin. Switching the toggle up or down will drive the pin to zero or 3.3v.