Axon Documentation
  • Axon Robotics Documentation
  • Axon Servos
    • Servo Quickstart
    • Axon MAX+
    • Axon MINI+
    • Axon MICRO+
    • Analog-JST Board
    • Servo Programmer
  • Axon Bevels
    • Bevel Quickstart
Powered by GitBook
On this page
  • Overview
  • Code for getting the position of + series servos
  1. Axon Servos

Analog-JST Board

Wiring and programming

PreviousAxon MICRO+NextServo Programmer

Last updated 1 year ago

Overview

The Axon Servo Analog-JST Board allows you to wire the analog output from "+" series servos without the need for custom wiring/adapters. Simply plug in the 3-pin analog output connector from up to two servos into the back of the board, and a 4 pin JST-PH wire from the front of the board to either of the analog ports on the REV Robotics Control or Expansion Hubs.

(The Analog ports are on the bottom right)

Code for getting the position of + series servos

//get our analog input from the hardwareMap
AnalogInput analogInput = hardwareMap.get(AnalogInput.class, "myanaloginput");

// get the voltage of our analog line
// divide by 3.3 (the max voltage) to get a value between 0 and 1
// multiply by 360 to convert it to 0 to 360 degrees
double position = analogInput.getVoltage() / 3.3 * 360;
Expansion Hub Pinout (Photo from REV Robotics)