Servo Trigger

Servo Trigger

Servo Trigger
This is a basic Servo Trigger with the servos running at variable speed. The servo can be stopped at any point in it's travel.

Features

Trigger inputs
There are six trigger input pins that activate when shorted to ground. The pins are labeled "Switch Inputs" on the circuit board. A row of ground pins is provided so all that's needed is to short the pair of pins for an input. the trigger inputs are assigned an input pin (1-6) depending on the operating mode. The possible trigger inputs are:

Limit switch inputs
There are two of limit switch inputs that can be used with Level Triggers. When limit switches are used the servo will stop when the limit switch is activated OR when the end of travel (retract or advance position) is reached. Like the trigger inputs, the limit switch inputs are assigned an input pin (1-6) depending on the operating mode. The limit switch inputs are:

Control Knobs
Three trimpots with knobs control these settings:

Operating Modes
The input pin functions depend on the mode setting. The 'setup' button indicates the current mode and allows a new mode to be entered. Pressing 'setup' blinks the current mode number, then press the 'setup' button 1 to 4 times to set a new mode. After a pause, the new mode number will blink and the setup is complete.

Mode 1 - (default) General purpose assortment of level triggers edge triggers
Pin 1Level triggerRun continuously
Pin 2Level triggerMove to advance position
Pin 3Level triggerMove to retract position
Pin 4Edge triggerFull cycle (to retract position)
Pin 5Edge triggerHalf cycle
Pin 6Edge triggerRun/stop toggle

Mode 2 - Level triggers with limit switches
Pin 1Level triggerRun continuously
Pin 2Level triggerMove to advance position
Pin 3Level triggerMove to retract position
Pin 4Limit switchAdvance position limit
Pin 5Limit switchRetract position limit
Pin 6Edge triggerRun/stop toggle

Mode 3 - All edge triggers
Pin 1Edge triggerMove to advance position
Pin 2Edge triggerMove to retract position
Pin 3Edge triggerFull cycle (to retract position)
Pin 4Edge triggerHalf cycle
Pin 5Edge triggerRun
Pin 6Edge triggerStop

Mode 4 - Edge triggers with limit switches
Pin 1Edge triggerMove to advance position
Pin 2Edge triggerMove to retract position
Pin 3Edge triggerFull cycle (to retract position)
Pin 4Edge triggerHalf cycle
Pin 5Limit switchLimit switch on advance position
Pin 6Limit switchLimit switch on retract position

Configuration Console
Servo trigger can be plugged into a USB port and any serial terminal at 115200 baud can be used to configure more settings. Settings that can be changed are:

Specifications

Optional Input Conditioning
Pads are provided on the circuit board for:

Design Documents

Schematic Diagramservo_trigger_schematic.pdf
PCB Gerbersgerbers_OA22.zip
Arduino Source CodeArduino.ino

Parts List

C1-C66100nF typicalNoise suppression capacitor (optinal)
J11.1" 2 pin JSTPower connector
J21.1" 2x6 headerPower connector
J31.1" 1x3 headerPower connector
R1-R661K typicalStrong pullup resistor (optinal)
RV1-RV3310K trimpotKnobs
SW11small buttonTactile switch for setup
U11ESP32-C3Microprocessor
PCB1OA22Printed circuit board

Build Pictures

Breadboard development
Breadboard

Boards from PJRC
Boards

Finished Board
Finished