Summary:
- Connect dial indicator to ESP32
- Mount dial indicator and ESP to Snapmaker 2.0
- Connect to Snapmaker via Luban
- Start python-Script
- Copy Values from Python script to excel (or whatever)
Pre-Condition: Know the token for the communication between Luban and Snapmaker (Use Wireshark for Network Analysis (Filter: IP of Snapmaker and HTTP)
View from Snapmaker:
View from Desktop
Modifications to ESPDRO (see Credits)
- I had to modify the code, because sometimes single bits flipped (my ESP to slow, or dial indicator strange, not sure what’s the cause).
- Only Values that are within 0.5 resp. 2.0 times the previous values are displayed / transmitted.
- Value transmitted was only 1/10 from the actual value (until the moment I realized this, I was very pleased with my head bed ^^). But just a quick’n’dirty-Fix without messing with the decimal-sign-position. There should be a much nicer fix for this. But the flipping bits killed all my patience
My modified ESPDRO-Code (see Credits for the Original-Code) and my Python-Script:
messuhr_automatisch.zip (5.8 KB)
Credits to:
Quick Tool changer: snapmaker 2.0 quick tool changer by fips - Thingiverse
Holder for dial indicator: snapmaker 2.0 holder for dial indicator by fips - Thingiverse
ESP32 DIY Digital Readout: GitHub - MGX3D/EspDRO: ESP32 DIY Digital Readout
Used dial indicator: https://www.amazon.de/gp/product/B07C9MZ858/