Subscribe to Arduino Academy and start learning today for FREE!

Arduino connected Micro Epsilon Laser Micrometer

With the success of our Igaging / Mitutoyo and Harbor Freight digital measuring devices projects, now it’s time to turn our attention to the Micro-Epsilon Laser Micrometer, optoCONTROL 2600.

There are several types of outputs, including analog, digital RS-232 and RS-422, and Binary or ASCII options. We chose BINARY on the RS-422 output (19200, 8N1), and connected a RS-422 to TTL converter to Arduino 2560 (originally a Arduino Nano, but the 2560 has 4 hardware UARTs).

The program we selected is “EDGELH” “Standard edge dark-bright”.

Wiring is as follows:

Micro Epsilon DB25 (Manual is wrong):
Pin 8 (T+) to RS-422 A/R+
Pin 7 (R+) to RS-422 Y/T+
Pin 20 (R-) to RS-422 Z/T-
Pin 21 (T-) to RS-422 B/R-

Become the Maker you were born to be. Try Arduino Academy for FREE!

RS422:

if you are using the blue YL-128
VCC to Arduino +5v
Gnd to Arduino Gnd
RSD to Arduino D19 (Rx1) // Serial1 Rx
TXD to Arduino D18 (Tx1) // Serial1 Tx

If you are using the orange 2578-TTL
VCC to Arduino +5v
Gnd to Arduino Gnd
TXD to Arduino D19 (Rx1) // Serial1 Rx
RXD to Arduino D18 (Tx1) // Serial1 Tx

I suggest a DB-25 M to RJ-45 F adapter, and make up (or cut down) a ethernet cable to connect to the screw terminals of the RS-422.

Code:
https://pastebin.com/EufVX0AM

With no object in the beam, take your measurement, and subtract that in the code from the measured value. the “zero” function on the unit display only affects the display and analog output, the digital output shows the measurement from the bottom of the beam. I’ll be adding a “zero” button and save that value to EEPROM.

Become the Maker you were born to be. Try Arduino Academy for FREE!

 

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Will
Will
1 year ago

How do you use the DM25 to RJ45 adapter when we are using 4 pins on the DB25 and there are 8 pins on the adaptor (how do you determine which ones to use) and how do you determine what wires to use from the stripped ethernet cable to the RS422.

Archives

1
0
Would love your thoughts, please comment.x
()
x