08-21-2016, 07:32 PM
I found a sketch that will read the HF Calipers! I had to build a level shifter from 2N2222a transistors and 10k ohm resistors for the caliper clock and data.
The sketch came from here:
https://sites.google.com/site/marthalpro...al-caliper
As written, it reads the caliper when in mm mode, and displays on the serial monitor.
Changing the line(5th from last) to
result=(value*sign)/100.00
to
result=(value*sign)/2000.00
changes the output to inches. You would also change the associated Serial.print1n(" mm") to Serial.print1n(" in"). I will eventually add an if statement to do that based on what unit value is in the data stream. I have not figured that out yet.
I need to also add the Bluetooth back in to try and get it to talk to TouchDRO.I have miss placed my final working code. When I find it I'll post it.
Chuck
The sketch came from here:
https://sites.google.com/site/marthalpro...al-caliper
As written, it reads the caliper when in mm mode, and displays on the serial monitor.
Changing the line(5th from last) to
result=(value*sign)/100.00
to
result=(value*sign)/2000.00
changes the output to inches. You would also change the associated Serial.print1n(" mm") to Serial.print1n(" in"). I will eventually add an if statement to do that based on what unit value is in the data stream. I have not figured that out yet.
I need to also add the Bluetooth back in to try and get it to talk to TouchDRO.I have miss placed my final working code. When I find it I'll post it.
Chuck
Micromark 7x14 Lathe, X2 Mill , old Green 4x6 bandsaw
The difficult takes me a while, the impossible takes a little longer.
The difficult takes me a while, the impossible takes a little longer.