Difference between revisions of "User:Mcmaster/Pr0ncnc"

From Microwiki
Jump to: navigation, search
 
Line 1: Line 1:
 
[[Category:mcmaster]]
 
[[Category:mcmaster]]
 +
 +
See also: [[Chassis]]
  
 
pr0ncnc is the standard platform that I use to build my CNC microscopes.  A typical system consists of:
 
pr0ncnc is the standard platform that I use to build my CNC microscopes.  A typical system consists of:
  
* uvscada for high level control
+
*uvscada for high level control
* AmScope MU800 camera
+
*AmScope MU800 camera
* Driver box
+
*Driver box
** BBB running machinekit
+
**BBB running machinekit
** BBB cape w/ optional CD4050 3.3V => 5V boosters
+
**BBB cape w/ optional CD4050 3.3V => 5V boosters
*** XYZ output standard
+
***XYZ output standard
** Connected over USB w/ static USB-ethernet bridge IP
+
**Connected over USB w/ static USB-ethernet bridge IP
** Case: Hammond 1591-E
+
**Case: Hammond 1591-E
** TODO: standard rubber feet
+
**TODO: standard rubber feet
* IMS MDrive stepper motors (such as MDrive17 or MDrive23)
+
*IMS MDrive stepper motors (such as MDrive17 or MDrive23)
* Linear stages vary
+
*Linear stages vary
* Step/direction connectors: Combicon 4 pin
+
*Step/direction connectors: Combicon 4 pin
** TODO: move to mini connectors
+
**TODO: move to mini connectors
* Where applicable, bipolar motors use Combicon 5 pin
+
*Where applicable, bipolar motors use Combicon 5 pin
* Newport 39 mirror mount (tip tilt stage)
+
*Newport 39 mirror mount (tip tilt stage)
  
 
BBB bolt pattern
 
BBB bolt pattern
  
* WARNING: not square.  According to breakout.py:
+
*WARNING: not square.  According to breakout.py:
** 0.000, 0.000
+
**0.000, 0.000
** 0.000, 1.900
+
**0.000, 1.900
** 2.600, 0.125
+
**2.600, 0.125
** 2.600, 1.775
+
**2.600, 1.775
* For 4-40 standoffs into case
+
*For 4-40 standoffs into case
* Standoffs are CA glued in
+
*Standoffs are CA glued in
* Standoffs should not peek out other side
+
*Standoffs should not peek out other side
* Consider putting Kapton on back in case they stick through slightly
+
*Consider putting Kapton on back in case they stick through slightly
* Need tight fit.  Drill size?
+
*Need tight fit.  Drill size?
  
= Motor connector =
+
=Motor connector=
  
 
Although there is a de-facto DB25 standard for step/direction pulses (from Compumotor?), I don't like DB25 connectors.  Instead I use Combicon connectors since I can quickly wire them up and plug/unplug them.
 
Although there is a de-facto DB25 standard for step/direction pulses (from Compumotor?), I don't like DB25 connectors.  Instead I use Combicon connectors since I can quickly wire them up and plug/unplug them.
Line 40: Line 42:
 
Cable colors
 
Cable colors
  
* Step+: red (left)
+
*Step+: red (left)
* Step-: black
+
*Step-: black
* Dir+: blue
+
*Dir+: blue
* Dir-: white (right)
+
*Dir-: white (right)
  
= BBB 5V cape =
+
=BBB 5V cape=
  
 
Defunct: I now use b3index
 
Defunct: I now use b3index
Line 55: Line 57:
 
P8
 
P8
  
{| class="wikitable sortable" border=1
+
{| class="wikitable sortable" border="1"
! Pin !! CPU GPIO !! CNC function !! I/O !! Color !! Note |
+
!Pin!!CPU GPIO!!CNC function!!I/O!!Color!! Note |
 
|-
 
|-
|   12 ||   gpio1[12] ||   X dir   || O || White ||  
+
|12||gpio1[12]||X dir||O||White||
 
|-
 
|-
|   13 ||   gpio0[23] ||   X step   || O || Blue ||  
+
|13||gpio0[23]||X step||O||Blue||
 
|-
 
|-
|   14 ||   gpio0[26] ||   Y dir   || O || White ||  
+
|14||gpio0[26]||Y dir||O||White||
 
|-
 
|-
|   15 ||   gpio1[15] ||   Y step   || O || Blue ||  
+
|15||gpio1[15]||Y step||O||Blue||
 
|-
 
|-
|   18 ||   gpio2[1] ||   Z dir   || O || White ||  
+
|18||gpio2[1]||Z dir||O||White||
 
|-
 
|-
|   19 ||   gpio0[22] ||   Z step   || O || Blue ||  
+
|19||gpio0[22]||Z step||O||Blue||
 
|-
 
|-
 
|}
 
|}
Line 74: Line 76:
 
Colors
 
Colors
  
* Dir: white
+
*Dir: white
* Step: blue
+
*Step: blue
  
 
I'd like to stick with 5 V CMOS style outputs since all my units can take those
 
I'd like to stick with 5 V CMOS style outputs since all my units can take those
  
* Traditional drivers are optocopulers and take resistor limited +/- 5V inputs
+
*Traditional drivers are optocopulers and take resistor limited +/- 5V inputs
* MDrive17, MDrive23 basically 5-24V open drain but can also operate CMOS
+
*MDrive17, MDrive23 basically 5-24V open drain but can also operate CMOS
  
 
IMS MDrive probably don't take much current (TODO: verify)
 
IMS MDrive probably don't take much current (TODO: verify)
Line 86: Line 88:
 
My Compumotor M-Drive requires 20 mA min
 
My Compumotor M-Drive requires 20 mA min
  
* CD4050 can typically only source 3 mA or so
+
*CD4050 can typically only source 3 mA or so
* HEF4050 can do 20 mA max…borderline
+
*HEF4050 can do 20 mA max…borderline
* Sparkfun BOB-12009 theoretically can do 220 mA
+
*Sparkfun BOB-12009 theoretically can do 220 mA
  
 
Originally I shied away from the BOB, but think I can simplify the soldering process to make it more attractive
 
Originally I shied away from the BOB, but think I can simplify the soldering process to make it more attractive
  
= BBB pinout =
+
=BBB pinout=
  
 
[[File:mcmaster_pr0ncnc_p8_pinout.png|600 px]]
 
[[File:mcmaster_pr0ncnc_p8_pinout.png|600 px]]
Line 98: Line 100:
 
[[File:mcmaster_pr0ncnc_p9_pinout.png|600 px]]
 
[[File:mcmaster_pr0ncnc_p9_pinout.png|600 px]]
  
= Camera calibration =
+
=Camera calibration=
  
 
Put white piece of paper under camera
 
Put white piece of paper under camera
Line 108: Line 110:
 
Place V4L control values into microscope.json
 
Place V4L control values into microscope.json
  
* see example configs for specific usage
+
*see example configs for specific usage
  
  
= Combicon misc =
+
=Combicon misc=
  
 
[[File:phoenix_combicon_combicon_pins.jpg|400 px]]
 
[[File:phoenix_combicon_combicon_pins.jpg|400 px]]
  
 
Pin 1 on the left when
 
Pin 1 on the left when
* Female: looking in with round side down
 
  
 +
*Female: looking in with round side down
  
= Motor cables =
+
 
 +
=Motor cables=
  
 
Use 5 pos combicon for bipolar motors (wires: 2 A, 2 B, GND)
 
Use 5 pos combicon for bipolar motors (wires: 2 A, 2 B, GND)
  
 
BOM
 
BOM
* Molex 1552200235 (Digikey WM15664-10-ND)
+
 
* Phoenix Contact 1786200 (Digikey 277-5776-ND)
+
*Molex 1552200235 (Digikey WM15664-10-ND)
* Phoenix Contact 5448640 (Digikey 277-11353-ND)
+
*Phoenix Contact 1786200 (Digikey 277-5776-ND)
 +
*Phoenix Contact 5448640 (Digikey 277-11353-ND)
  
 
Notes:
 
Notes:
* 6' cables
+
 
* Cut sheath 2" from ends
+
*6' cables
* Expose wire 3/8"
+
*Cut sheath 2" from ends
* 3" of heatshrink (think its 1/2")
+
*Expose wire 3/8"
 +
*3" of heatshrink (think its 1/2")
  
 
Pins (ordered by color code):
 
Pins (ordered by color code):
* 1 Black
 
* 2 Brown
 
* 3 Green
 
* 4 Blue
 
* 5 White
 
  
= Power cables =
+
*1 Black
 +
*2 Brown
 +
*3 Green
 +
*4 Blue
 +
*5 White
 +
 
 +
=Power cables=
  
 
Two position combicon
 
Two position combicon
  
 
Pins (ordered by color code):
 
Pins (ordered by color code):
* 1 Black
+
 
* 2 Red
+
*1 Black
 +
*2 Red

Latest revision as of 04:05, 3 February 2020


See also: Chassis

pr0ncnc is the standard platform that I use to build my CNC microscopes. A typical system consists of:

  • uvscada for high level control
  • AmScope MU800 camera
  • Driver box
    • BBB running machinekit
    • BBB cape w/ optional CD4050 3.3V => 5V boosters
      • XYZ output standard
    • Connected over USB w/ static USB-ethernet bridge IP
    • Case: Hammond 1591-E
    • TODO: standard rubber feet
  • IMS MDrive stepper motors (such as MDrive17 or MDrive23)
  • Linear stages vary
  • Step/direction connectors: Combicon 4 pin
    • TODO: move to mini connectors
  • Where applicable, bipolar motors use Combicon 5 pin
  • Newport 39 mirror mount (tip tilt stage)

BBB bolt pattern

  • WARNING: not square. According to breakout.py:
    • 0.000, 0.000
    • 0.000, 1.900
    • 2.600, 0.125
    • 2.600, 1.775
  • For 4-40 standoffs into case
  • Standoffs are CA glued in
  • Standoffs should not peek out other side
  • Consider putting Kapton on back in case they stick through slightly
  • Need tight fit. Drill size?

Motor connector

Although there is a de-facto DB25 standard for step/direction pulses (from Compumotor?), I don't like DB25 connectors. Instead I use Combicon connectors since I can quickly wire them up and plug/unplug them.

  1. 29 drill for panel mount Combicon bolt holes using 6-32 SHCS

Cable colors

  • Step+: red (left)
  • Step-: black
  • Dir+: blue
  • Dir-: white (right)

BBB 5V cape

Defunct: I now use b3index

Based on CRAMPS pinout

Mcmaster brainscope bbb breakout 5v.png

P8

Pin CPU GPIO CNC function I/O Color
12 gpio1[12] X dir O White
13 gpio0[23] X step O Blue
14 gpio0[26] Y dir O White
15 gpio1[15] Y step O Blue
18 gpio2[1] Z dir O White
19 gpio0[22] Z step O Blue

Colors

  • Dir: white
  • Step: blue

I'd like to stick with 5 V CMOS style outputs since all my units can take those

  • Traditional drivers are optocopulers and take resistor limited +/- 5V inputs
  • MDrive17, MDrive23 basically 5-24V open drain but can also operate CMOS

IMS MDrive probably don't take much current (TODO: verify)

My Compumotor M-Drive requires 20 mA min

  • CD4050 can typically only source 3 mA or so
  • HEF4050 can do 20 mA max…borderline
  • Sparkfun BOB-12009 theoretically can do 220 mA

Originally I shied away from the BOB, but think I can simplify the soldering process to make it more attractive

BBB pinout

Mcmaster pr0ncnc p8 pinout.png

Mcmaster pr0ncnc p9 pinout.png

Camera calibration

Put white piece of paper under camera

Run manbal.py to get RGB values

Adjust V4L controls until balanced

Place V4L control values into microscope.json

  • see example configs for specific usage


Combicon misc

Phoenix combicon combicon pins.jpg

Pin 1 on the left when

  • Female: looking in with round side down


Motor cables

Use 5 pos combicon for bipolar motors (wires: 2 A, 2 B, GND)

BOM

  • Molex 1552200235 (Digikey WM15664-10-ND)
  • Phoenix Contact 1786200 (Digikey 277-5776-ND)
  • Phoenix Contact 5448640 (Digikey 277-11353-ND)

Notes:

  • 6' cables
  • Cut sheath 2" from ends
  • Expose wire 3/8"
  • 3" of heatshrink (think its 1/2")

Pins (ordered by color code):

  • 1 Black
  • 2 Brown
  • 3 Green
  • 4 Blue
  • 5 White

Power cables

Two position combicon

Pins (ordered by color code):

  • 1 Black
  • 2 Red