Video of it working with my 3030 prover max:
Use it like a Normal probe if you want , But the main purpose of this is to use a 3D probe to find stock 0 and then use this toolsetter to find tool change heights and forgo the alligator clip.
Wiring: I used CHAT GPT 4 to get this to work. Optical switch = LDO Long john switch.
Kit (SKU: LDO-MILO-LJK) : LDO Motors Long John CNC Tool Setter Kit - Google Search
Gcode macros: https://github.com/cncjs/CNCjs-Macros?
Use M3 x6mm screws to fix the PCB's and M3 screws to fix the top to the bottom.
optical switch data sheet: D2FP (omron.com)
Stl files for LDO Long John Kit: https://github.com/MotorDynamicsLab/LDO-Milo-V1.5/blob/master/STLs/Minimill%20Main/Toolsetter%20x1_LDO.stl
Assembly (do not print the casing file from here, use above link): https://github.com/MillenniumMachines/Long-John-Toolsetter
Set relay to High level.
Use Connect GND from CNC probe port to COM port of Relay
Use Signal from CNC probe port to NO of Relay
Use 12V power from CNC probe port and GND to a Buck convertor and reduce the voltage to 5v to power the relay and the LDO optical switch.
The signal wire from Optical switch connects to IN port of Relay.
+------------------------+
| Power Source From CNC |
| |
| 12.88V(+12v) ----+-------+------------------------------------+
| | | |
| | | +---------------------+ |
| | | | Buck Converter | |
| | +----> Input: 12.88V | |
| | | Output: 5V | |
| | | GND | |
| | +----------+----------+ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | / \ |
| | +------------------+ +-------------------+
| | | | | |
| | | Relay Module | | Optical Switch |
| | | | | (NO Type) |
| | +------------------+ +-------------------+
| | | | |
| | | | |
| | | | |
| | | +------------>+
| | | | |
| | | | |
| | | +5V (From Buck) | |
| | | <---------------+ |
| | | | |
| | | GND | |
| | | <---------------+ |
| | | | |
| | +------------------+ |
| | | GND |
| | | |
| | v |
| +----------------------------------------------+
| | GND |
| | |
| v |
+---------------------------------+----------------------------+
| Relay Terminals |
| |
| |
+--+-----+ |
| | | |
| | | |
| | | |
| | | |
| v v |
| [COM] [NO] |
| | | |
| | +---------------------> 12.12V Signal
| | |
+--+-------------------------> Source Ground
Relay model (5V ): 5PCS 5V 9V 12V 24V 1 Channel Relay Module with Optocoupler Isolation Support High or Low Level Trigger (5V) : Amazon.com.au: Electronics