update to current cad package, add more documentation
A => README.md +32 -0
@@ 0,0 1,32 @@ 
+Optical micrometer
+
+This is a little project that turns a Micro-Epsilon laser displacement sensor into
+a non-contact micrometer. It can display measurements in inches, millimeters and 
+anglo-american printers' points. An exposed micro-USB connector allows for easy
+firmware updates as well as potential future features such as data logging and
+measurement triggering. 
+
+This build uses a optoNCDT 1302-20 sensor and a STM32 microcontroller board. 
+Other sensors in the 1302 range can be used provided the measurement range 
+is changed and a new firmware is compiled. Other optoNCDT sensors may be used, 
+such as the optoNCDT1402 range, however the driver will probably need to be 
+adjusted in order to read the additional range.
+
+Given a pre-programmed microcontroller board, the skill level required to complete
+this project is low to medium: patience, attention to detail, basic soldering of 
+header pins and splicing of wires as well as the ability to use a hot glue gun 
+without getting burned are the primary skills required.
+
+src/
+   source code for the microcontroller firmware; there is a platform.io build
+   configuration in the root of the project.
+
+doc/
+   contains a Bill of materials as well as a simplified list of connections with a 
+   number of notes I made when putting things together in order to ease future builds 
+cad/ 
+   3d model for the case I used in Fusion 360 format, as well as an STL from the 
+   current version.
+
+pcb/ 
+   kicad files for the schematic and board layout

          
A => cad/OPTOCASE-V47.f3d +0 -0

        
A => cad/OPTOCASE-V47.stl +0 -0

        
M doc/OPTO_MICROMETER_CONNS.txt +40 -17
@@ 1,31 1,54 @@ 
-Sensor - NC
-Blue
-Brown
-Red
-Purple
-Pink/Grey
+Notes:
+
+NC = no connection
+
+Display, RS422 module and Microcontroller modules all have +5v and GND connections. They are not listed separtely below and should be connected to the appropriate pins on the button/jumper PCB.
+
+It is easiest to use Dupont wires to make the various connections. They can be a bit touchy so make sure to have them well seated. It should be possible to wire everything up outside the case for testing. For final assembly after testing, it may be helpful to use a bit of hot glue or silicone adhesive to keep the connectors from pulling loose. Have everything wired and tested before installing the various components in the enclosure. There isn't a lot of room for making adjustments... again, adding some adhesive around the various connections will keep things from working loose during installation. 
+
+One drawback of the dupont wires is that the connectors take up a fair amount of space. If using the enclosure provided, it will likely be a tight fit and you may need to bend some of the headers so that everything has room to fit inside the cavity. This shouldn't present a reliability problem as long as everything's working before you button things up.
+
+The sensor cable and power connectors have unterminated ends, so you'll need to strip back the outer jacket to access the wires. I recommend stripping back more than you think you'll need. Cut dupont wires in half and splice these onto the sensor sensor cable wires in order to make neat connections. I also used a bit of heat shrink tubing to cover the soldered splice.
+
+The microcontroller board has no mouting features, so the easiest solution is to use hot glue to "stick" it to the back wall of the enclosure. If you plug a USB cable into the board through the opening designed for this before applying the adhesive, you can make sure that everything is well aligned.
+
+Power connector (barrel jack):
+
+Black - To switch
+White - GND
+
+Switch - From Black on power connector
+Switch - To 15V on Button/Jumper PCB
+
+optoNCDT Sensor using Harting Cable
+Blue - NC
+Brown - NC
+Red - NC
+Purple - NC
+Pink/Grey - NC
 
 Blue/Red - GND
 Black - +15V
 Grey - PC15 / GND (laser on)
 
-Pink - R+
-Yello - R-
-Green - T-
-White - T+
+Pink - RS422 R+
+Yellow - RS422 R-
+Green - RS422 T-
+White - RS422 T+
 
-
+Modules
 
 RS422 TXD -> A10   
 RS422 RXD -> A9
 
-DISP CLK -> A5
-DISP MOS -> A7
-DISP RES -> A0
-DISP DC -> A1
-DISP CS -> A2
+DISPLAY CLK -> A5
+DISPLAY MOS -> A7
+DISPLAY RES -> A0
+DISPLAY  DC -> A1
+DISPLAY  CS -> A2
 
+Button/Jumper PCB
 HOLD -> B0
 STATUS -> B1
 ZERO -> PA4
-UNITS -> PA3
  No newline at end of file
+UNITS -> PA3

          
A => doc/omicrometer_schematic.pdf +0 -0

        
A => pcb/omicrometer.lib +43 -0
@@ 0,0 1,43 @@ 
+EESchema-LIBRARY Version 2.4
+#encoding utf-8
+#
+# OptoNCDT1302_CONN
+#
+DEF OptoNCDT1302_CONN J 0 40 Y N 1 F N
+F0 "J" 0 600 50 H V C CNN
+F1 "OptoNCDT1302_CONN" 0 -700 50 H V C CNN
+F2 "" 0 0 50 H I C CNN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ Connector*:*_1x??_*
+$ENDFPLIST
+DRAW
+S 100 -595 150 -605 1 1 6 N
+S 100 -495 150 -505 1 1 6 N
+S 100 -395 150 -405 1 1 6 N
+S 100 -295 150 -305 1 1 6 N
+S 100 -195 150 -205 1 1 6 N
+S 100 -95 150 -105 1 1 6 N
+S 100 5 150 -5 1 1 6 N
+S 100 105 150 95 1 1 6 N
+S 100 205 150 195 1 1 6 N
+S 100 305 150 295 1 1 6 N
+S 100 405 150 395 1 1 6 N
+S 100 505 150 495 1 1 6 N
+S 150 550 250 -650 1 1 10 f
+X ERROR 10_ERR -200 -400 315 R 50 50 1 1 P
+X I_OUT 11_I_OUT -200 -500 315 R 50 50 1 1 P
+X GND 12_GND -200 -600 315 R 50 50 1 1 P
+X NC 1_NC -200 500 315 R 50 50 1 1 P
+X NC 2_NC -200 400 315 R 50 50 1 1 P
+X RS422_Rx+ 3_RX+ -200 300 315 R 50 50 1 1 P
+X RS422_Rx- 4_RX- -200 200 315 R 50 50 1 1 P
+X RS422_Tx+ 5_TX+ -200 100 315 R 50 50 1 1 P
+X RS422_Tx- 6_TX- -200 0 315 R 50 50 1 1 P
+X V+ 7_V+ -200 -100 315 R 50 50 1 1 P
+X LASER_OFF 8_LASER -200 -200 315 R 50 50 1 1 P
+X TEACH_IN 9_TEACH -200 -300 315 R 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+#End Library

          
M pcb/omicrometer.pro +12 -12
@@ 1,6 1,6 @@ 
-update=Thursday, September 09, 2021 at 12:57:15 PM
+update=Tuesday, December 21, 2021 at 12:49:42 PM
 version=1
-last_client=kicad
+last_client=eeschema
 [general]
 version=1
 RootSch=

          
@@ 12,16 12,6 @@ NetIExt=net
 version=1
 LibDir=
 [eeschema/libraries]
-[schematic_editor]
-version=1
-PageLayoutDescrFile=
-PlotDirectoryName=
-SubpartIdSeparator=0
-SubpartFirstId=65
-NetFmtName=Pcbnew
-SpiceAjustPassiveValues=0
-LabSize=50
-ERC_TestSimilarLabels=1
 [pcbnew]
 version=1
 PageLayoutDescrFile=

          
@@ 251,3 241,13 @@ uViaDrill=0.254
 dPairWidth=0.2
 dPairGap=0.25
 dPairViaGap=0.25
+[schematic_editor]
+version=1
+PageLayoutDescrFile=
+PlotDirectoryName=
+SubpartIdSeparator=0
+SubpartFirstId=65
+NetFmtName=Pcbnew
+SpiceAjustPassiveValues=0
+LabSize=50
+ERC_TestSimilarLabels=1