Wednesday, September 30, 2015

Igaging Micrometers and Calipers

I've added the Igaging SpeedMic and OriginCal to our list of Arduino connected Mitutoyo measurement equipment (Micrometer, Caliper, Dial Indicator, and DRO Scale). I made some improvements to our Mitutoyo Instructable to facilitate connection to the Igaging equipment. The Igaging SPC enabled gear is Mitutoyo compatible, using the same 52 bit data stream. It even uses a Mitutoyo SPC cable for connection (not the same cable as our Mitutoyo Coolant protected Micrometer).

Update: Now reading Micro-Epsilon ODC2600 Laser Mic!

Igaging SpeedMic and OriginCal

Cable for Arduino

Discuss (Yahoo)
Discuss (Facebook)


Now comes with a new professionally made board!

Order interface Boards (one for each axis):



int req = 5; //mic REQ line goes to pin 5 through q1 (arduino high pulls request line low)

int dat = 2; //mic Data line goes to pin 2

int clk = 3; //mic Clock line goes to pin 3

int i = 0; int j = 0; int k = 0;

byte mydata[14];

float num;

void setup() {


pinMode(req, OUTPUT);

pinMode(clk, INPUT_PULLUP);

pinMode(dat, INPUT_PULLUP);

digitalWrite(req,LOW); // set request at LOW


void loop() { // get data from mic

digitalWrite(req, HIGH); // generate set request

for(i = 0; i < 13; i++ ) {

k = 0;

for (j = 0; j < 4; j++) {

while( digitalRead(clk) == LOW) {// hold until clock is high


while( digitalRead(clk) == HIGH) {// hold until clock is low


bitWrite(k, j, (digitalRead(dat) & 0x1)); // read data bits, and reverse order )


// extract data

mydata[i] = k;


// sign = mydata[4];

// decimal = mydata[11];

// units = mydata[12];

// assemble measurement from bytes

char buf[7];

for(int lp=0;lp<6;lp++){



num=atol(buf); //assembled measurement, no decimal place added

Serial.println(num/1000, 3); //add decimal





  1. in the line
    "bitWrite(k, j, (digitalRead(dat) & 0x1)); // read data bits, and reverse order )"

    what do the{ & 0x1} do?

  2. hi steve, why am i getting output 0.000 when i connect my dial gauge? I just soldered the cable to mitutoyo dial gauge and connect it to the circuit

  3. Hello,
    I tried the code and after some time of searching why it doesnt work i realized that it seems to be stuck in the " while ( digitalRead(CLK) == HIGH) {}" loop. Any ideas about how to fix this?


Related Posts Plugin for WordPress, Blogger...