Difference between revisions of "Argon EXT connector"

From Granite Devices Knowledge Wiki
Jump to: navigation, search
[checked revision][checked revision]
(Simulated encoder output)
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
*Extension board connector (5V power supply and I/O & UART to extension board)
 
*Extension board connector (5V power supply and I/O & UART to extension board)
 
*Simulated encoder output port (i.e. output resolver position in quadrature format)
 
*Simulated encoder output port (i.e. output resolver position in quadrature format)
{{damage|EXT connector is directly wired to microcontroller I/O pins without any protection devices (such as ESD clamp diodes, or resistors). Any misiring may cause permanent damage to the drive.}}
+
{{damage|EXT connector is directly wired to microcontroller I/O pins without any protection devices (such as ESD clamp diodes, or resistors). Any miswiring may cause permanent damage to the drive.}}
 
{{info|Damage caused through EXT connector is not covered by the [[Product warranty terms|warranty]].}}
 
{{info|Damage caused through EXT connector is not covered by the [[Product warranty terms|warranty]].}}
 
==Pinout==
 
==Pinout==
Line 16: Line 16:
 
*Output A,B,Z 3.3 volt signals
 
*Output A,B,Z 3.3 volt signals
 
*Minimum output pulse length 2 µs (requirement for receiving device to accept count rate of 1 MHz)
 
*Minimum output pulse length 2 µs (requirement for receiving device to accept count rate of 1 MHz)
*Output resolution is '''divided by 4''' compared to the native resolution of the feedback device
+
*Output resolution is '''divided by 4''' compared to the native resolution of the feedback device. I.e. single turn resolver will yield 512 encoder pulses per revolution (2048 counts per rev after 4X decoding).
  
 
;Limitations
 
;Limitations
Line 32: Line 32:
 
# Not in use, do not connect
 
# Not in use, do not connect
  
[[category:Argon features]]
+
;Wiring
 +
As EXT connector pins are directly connected to microcontroller, they are very sensitive to ESD and damage by inproper loading. It is highly recommended to use optoisolator based buffer between the motion controller and EXT connector to prevent damaging devices in case of wiring error.
 +
 
 +
The suggested way is to use optocouplers with type H11L1 and circuit in order to achieve galvanic isolation and signal buffering at the same time.
 +
 
 +
{{picturebox|EXTisolator.png|caption=Encnoder simulator signal buffering with isolation. 5V-ISOLATED should be connected to motion controller's 5V supply (powering the optoisolators).}}
 +
 
 +
Suggested part types for isolation are:
 +
*Optoisolators: H11L1 (support frequency up to 500 kHz)
 +
*Resistors: 1 kOhm
 +
*Capacitor (for opto 5V supply): 100nF 25V ceramic. Optionally also 10-100uF electrolytic in parallel.
 +
 
 +
In addition to this, pull-up resistors may be necessary in optoisolator outputs: three 470 to 1000 ohm resistors from A-ISOLATED to 5V-ISOLATED, B-ISOLATED to 5V-ISOLATED and Z-ISOLATED to 5V-ISOLATED. The need of pull-ups depend on whether the motion controller has internal pull-up resistors or not.
 +
 
 +
[[Category:Argon_features]]

Latest revision as of 09:59, 22 September 2016

Argon (servo drive) has an internal 6 pin header that is directly connected to the I/O side user programmable STM32F205RBT6 microcontroller. EXT connector has several purposes:

  • MCU debugging port (SWD)
  • Extension board connector (5V power supply and I/O & UART to extension board)
  • Simulated encoder output port (i.e. output resolver position in quadrature format)

Pinout[edit | edit source]

Argonpcbextconn.png

Location of EXT connector


Argonextconn.png

Pin numbering and default hardware peripheral names on MCU

Simulated encoder output[edit | edit source]

From Argon firmware 2.0 version, the default function of EXT connector is an simulated encoder output. The pins will output quadrature signals to represent the position changes on feedback device (encoder, resolver etc).

Features
  • Output A,B,Z 3.3 volt signals
  • Minimum output pulse length 2 µs (requirement for receiving device to accept count rate of 1 MHz)
  • Output resolution is divided by 4 compared to the native resolution of the feedback device. I.e. single turn resolver will yield 512 encoder pulses per revolution (2048 counts per rev after 4X decoding).
Limitations
  • Output has lots of jitter (will look ugly on oscilloscope)
  • Index pulse may have delay of 1ms or more delay from the real index pulse location. EXT index pulse should be used for homing at very low speeds only (speed less than 1000 of feedback device counts per second)
  • No ESD protection, external buffer or protection circuit highly recommended
  • Maximum output count rate 275 000 counts/s
Pinout of encoder simulation
  1. GND
  2. 5V_OUT (leave unconnected if not needed)
  3. A
  4. B
  5. Z (index)
  6. Not in use, do not connect
Wiring

As EXT connector pins are directly connected to microcontroller, they are very sensitive to ESD and damage by inproper loading. It is highly recommended to use optoisolator based buffer between the motion controller and EXT connector to prevent damaging devices in case of wiring error.

The suggested way is to use optocouplers with type H11L1 and circuit in order to achieve galvanic isolation and signal buffering at the same time.

EXTisolator.png

Encnoder simulator signal buffering with isolation. 5V-ISOLATED should be connected to motion controller's 5V supply (powering the optoisolators).

Suggested part types for isolation are:

  • Optoisolators: H11L1 (support frequency up to 500 kHz)
  • Resistors: 1 kOhm
  • Capacitor (for opto 5V supply): 100nF 25V ceramic. Optionally also 10-100uF electrolytic in parallel.

In addition to this, pull-up resistors may be necessary in optoisolator outputs: three 470 to 1000 ohm resistors from A-ISOLATED to 5V-ISOLATED, B-ISOLATED to 5V-ISOLATED and Z-ISOLATED to 5V-ISOLATED. The need of pull-ups depend on whether the motion controller has internal pull-up resistors or not.