User:Mcmaster/xy-ray
2017-12-30
- Same issue as below
- Initial issue using a different power supply caused brownout, not sure what was happening
- Switched to other supply and used USB cable
- Couldn't find aluminum platform using before. Taped sensor to 1.5" t-slot instead
- Issue getting USB ethernet working. Used regular ethernet
2017-03-02
- Symptom: can only move in one direction
- Cause: 5V ref can only be supplied via wall supply, not USB
- Fix: plug in 5V supply
Contents
Wiring summary
X axis breakout
P1 | Signal | I/O | To | To |
1 | I | |||
2 | I | |||
3 | I | |||
4 | I | |||
5 | I | |||
6 | I | |||
7 | I | |||
8 | I | |||
9 | I | |||
10 | I | |||
11 | I | |||
12 | I | |||
13 | I | |||
14 | I | |||
15 | I | |||
16 | I | |||
17 | I | |||
18 | I | |||
19 | I | |||
20 | I | |||
21 | X opto | I | XY P2.1 | BBB P9.5-6 5V Red |
22 | X step | I | XY P2.2 | BBB P8.13 Blue |
23 | X dir | I | XY P2.3 | BBB P8.12 White |
24 | X enable | I | XY P2.4 | N/C |
25 | X ground | I | XY P2.5 | Ground |
26 | X V+ | I | XY P2.6 | V+ |
27 | X ground | I | XY P2.7 | N/C (for now) |
28 | X V+ | I | XY P2.8 | N/C (for now) |
29 | X ground | I | XY P2.9 | N/C (for now) |
30 | X V+ | I | XY P2.10 | N/C (for now) |
XY P2
- Pin 1 (XY P1.21) is upper left when looking into connector with key up
- Keeps P2 and P1 number sequential
- Matches 1 to square key via on adapter PCB
Motor to IDC adapter board
This is used on the Z and X axis. Taken from Z axis assuming X is the same
Front:
ASSY 0400-0200 REV.B
MOTOR INTERFACE
CABLE IN
GUAVA TECHNOLOGY INC. (C) 2002
+24 VDC, GND
Back:
1460139
+24 VDC, GND, MOTOR
VSE
VALLEY SERVICES
ELECTRONICS
P2 | Motor | PCB label | Function |
1 | 1 Opto | Optoisolated output mode | |
N/C | 2 | N/C | |
2 | 3 | Step | |
3 | 4 | Dir | |
4 | 5 | Enable | |
5 | 6 V- |
GND | Ground |
6 | 7 V+ | +24 VDC | V+ |
7 | 6 V- | GND | |
8 | 7 V+ | +24 VDC | V+ |
9 | 6 V- | GND | Ground |
10 | 7 V+ | +24 VDC | V+ |
Y axis
Color | Signal | I/O | Breakout | To |
White | Optocoupler reference | I | 8 | BBB P9.5-6 5V Red |
Orange | Step | I | 6 | BBB P8.15 Blue |
Blue | Direction | I | 3 | BBB P8.14 White |
Brown | Output bridge enable | I | 4 | N/C |
Black | Ground | I | 1 | Ground Black |
Red | Power 12-75 VDC |
I | 2 | 24V |
BBB P8:
- Pin 1 is next to the ethernet port
- Pin 1, 2 are ground
- Is the one without the JTAG port next to it
<file> The signal applied to the optocoupler reference will determine the sinking/ or sourcing configuration of the inputs. To set the inputs for sinking operation, a +5 to +24 VDC supply is connected. If sourcing, the reference is connected to ground </file>
Voltage compatibility
Motor/driver:
- Logic Threshold (Logic 0): < 0.8 VDC
- Logic Threshold (Logic 1): > 2.2 VDC
BBB: While the GPIO pins on the BeagleBone Black run at 3.3 Volts, …
Sounds like should be able to directly hook BBB output to MDrive17+. Revisit if there are any signals that need to go vice versa
x-ray sensor
Gendex/Dexis GXS700
Source: local
x-ray head
GE 1000. Controlled with DLI WPS7 attached to several variacs for filament/voltage control
Source: eBay
Controller
Beagle Bone Black running LinuxCNC fork
- Was very easy to get stuff working
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#BBW.2FBBB_.28All_Revs.29_Machinekit_2]]
Pre-built images
- wget https://rcn-ee.com/rootfs/bb.org/testing/2015-06-29/machinekit/bone-debian-7.8-machinekit-armhf-2015-06-29-4gb.img.xz]]
- md5sum: fba67a50c02eec93672bbc76fc2bca7c
System Reference Manual (SRM): http://www.adafruit.com/datasheets/BBB_SRM.pdf]]
u/p: machinekit / machinekit
No-cape
http://blog.machinekit.io/p/machinekit_16.html]]
Select the example configuration that matches your hardware (I suggest starting with the CRAMPS configuration if you don't have any hardware) and launch LinuxCNC
NOTE: If you want to switch between configurations that load unique hardware overlays, you should reboot
From reading schematic, default/intended pinout is:
Function | OMAP pin | BBB pin | Note |
---|---|---|---|
X_STEP | EHRPWM2B | P8.13 | |
X_DIR | GPIO1_12 | P8.12 | |
X-MIN | |||
X-MAX | |||
Y_STEP | GPIO1_15 | P8.15 | |
Y_DIR | GPIO0_26 | P8.14 | |
Y-MIN | |||
Y-MAX | |||
Z_STEP | EHRPWM2A | P8.19 | |
Z_DIR | GPIO2_1 | P8.18 | |
Z-MIN | |||
Z-MAX | |||
ESTOP | |||
ESTOP_SW |
BeBoPr++
I'm not sure if these are available for purchase (or even if I need it), but it has example configs and documentation
Reading through the user guide
Hmm this is unfortunate:
Each BeBoPr++ comes with a license for use of the PRUSS stepper driver firmware. This
stepper driver is proprietary code that runs on a PRU co-processor and is stored in the
BeBoPr++'s on-board EEPROM. The driver handles deterministic and accurate timing of the
stepper pulses for all four axes simultaneously. It also generates the acceleration and
deceleration ramps. Via the API†, custom applications can easily generate accurate stepper
Does this mean the PRU's are usually unusable?
Probably not looks like there's also an open source version:
An open source code repository to build a 3D printer with the BeBoPr++ is available at
This code uses one of the PRU coprocessors for the
step pulse generation and can freely be changed.
Looks like LinuxCNC should have reasonable support out of the box
It has support for the BeBoPr since the original (first) BeBoPr and all software, including the
PRU stepper code is open source. As a community effort, it evolves faster than the BeBoPr 3D
printer code
XY stage
From HSC Electronics
10 TPI
Motor
M DRIVE
MOTOR + DRIVER
17
PLUS
MICROSTEPPING
MCM17A-GVT-40
203100065
V3.0.02
What is the MCM series? Evidently there are several variants of this
Mine
- MCMXXX17A
- ??? inputs
Step/direction input version
- Datasheet]]
- Spec sheet]]
- MDMXXX174
- MDrive 17 Plus step and direction input
- SPI
Programmable Motion Control version
- Datasheet]]
- MDIXXX174
- Step/Direction I/O for electronic gearing
- RS-422/485
Speed Control version
- Datasheet]]
- MDOXXX174
- SPI
Saw similar one on eBay: IMS/SCHNEIDER MDRIVE 17 Plus STEPPER MOTOR MDI1PRD17B4
- RS-422/485 communication
- +12 to +48 VDC input voltage
- Up to 74.9 oz-in (52.9 N-cm) holding torque
- Robust programmable I/O (up to 8 general purpose points) with input filtering
- Powerful instruction set with advanced math functions using 1-2 character mnemonics
- Step/Direction I/O for electronic gearing.
DC input voltage | Range (includes back-EMF) | +12 to +48 VDC |
Power supply current requirement | Max per MDrivePlus (depends on voltage and load) | 2.0 |
Aux-Logic supply | Voltage | +12 to +24 VDC |
Aux-Logic supply | Current requirement (max) | 194 mA |
Operating Temperature | Measured at heat sink (non-condensing humidity) | 85°C |
Operating Temperature | Measured at motor (non-condensing humidity) | 100°C |
Active microstepping?
Cabling
Y and Z go to 15 x 2 (30 pin) IDC cable
X has its own cable going from inline to 4 x 2 IDC
Parameter cable
Parameter setup cable MD-CC300-000 or equivalent (USB to SPI)
- MD-CC300-001
- MD-CC302-001
Parameter cable: http://motion.schneider-electric.com/downloads/datasheets/discontinued_prod/md_cc300_000.pdf]]
Found this cheap on eBay when I was looking for above:
MD-CC4
USB to RS422 Comm Converter
MD-CS300-400 REV-B 03/10
Might be useful for NEMA 23 (RS-422) but it turns out the manual had a typo…NEMA 17 is SPI, NEMA 23 is RS-422. Seems inconsistent
Original indexer
GUAVA TECHNOLOGIES, INC.
GUAVA MOTION BOARD 2
FAB 0400-0580 REV A
ASSY 0400-0590 REV
(C) 2008
"Millipore Takes Over Guava Technologies for $22.6M"
Probably hard to find info on it
Not worth the effort to figure out how it works. Replace with beaglebone black
Fixturing
PanaVise PCB holder (already had it around)
As centered won't be able to scan whole PCB. Need to find a way to re-mount it
Use original mast
Need to drill new hole on side to use the entire scan area
Allows adjusting PCB angle
Need to mount mast to t-slot
Re-mount rail
Instead of using the mast put stand offs on both ends onto t-slot. Maybe make an aluminum adapter if I need something more solid