Universal 21-Bit "Smart" Digital Handpiece Retrofit for older facet machines

Anything related to Stone Cutting, faceting, cabbing and carving!

Moderators: Stephen Challener, Barbra Voltaire, FGG, Alberto, Gearloose

Post Reply
wilsonintexas
Gold Member
Posts: 1333
Joined: Tue Jul 02, 2013 9:00 am
Location: Wylie Texas but in Alaska for a while

Universal 21-Bit "Smart" Digital Handpiece Retrofit for older facet machines

Post by wilsonintexas »

WHi everyone,
I’ve been working on a high-precision digital retrofit for my shop (supporting Raytech, Graves, and Ultra Tec machines) and wanted to share the logic and features. My goal was to create a "Smart Handpiece" where the calibration lives on the tool, not the display box. This allows for true hot-swapping across different machines without ever needing to re-zero.

In the past i used a precision pot that has been discussed in several posts. But i tan into issues finding reliable cheap pots.

So i added an Arduino and did multi point calibration. This allowed me to actually see negative angles because the zero was not set to zero volts, instead i clocked the pot to mid rangeand had the Arduino set zero. But this linked the Arduino to one machine. At the Dallas Gem and Mineral club we recently had some very old graves and a Raytech Shaw machine donated and i started looking for a better way to do this that did not require the display to machine pairing.

After some discussion with an ai, i settled on using a 21 but encoder. They can store the calibration data and zero set point internally. The display can then be universal and be moved between machines.

On the graves i redid the internal bearing by putting a plug with a shaft into the rotating piece, and moving the bearing to the mounted piece. It is a little tricky to set up on the lathe but not to bad. I guess you could do it with a custom counter bore. But i am getting distracted.

In the Raytech Shaw i had an easy fix. Replace the 1/4 dowel with a longer one. This gave me 2 ends sticking out. One side gets a arm added for fine tuning the angle. The other end gets a coupler with a magnet and has the encoder mounted to it. The encoder is on a 3d printed connector that will mount to a small piece af alumi that i am
Screwing onto the handpiece to give me a bigger mounting base.

I hve replaced the dowel to be sure that it would work and it does.

I am looking for comments on user functionality that could be added and build comments. ( for the graves i would add the buzzer)


I can make the code available to anyone who is interested.


1. The Hardware Stack
* Sensor: MT6835 21-bit magnetic absolute encoder (2,097,152 positions per 360^{\circ}).
* Magnet: 6mm x 2.5mm Diametric Neodymium.
* Connection: 6-pin Magnetic Pogo connectors (standardized pinout).
* Wiring: Shielded USB 3.0 cabling (sacrificial cables are a great source for high-quality shielded pairs).
* Brain: Arduino Nano driving a 20x4 LCD.
2. The "Why 21-Bit?" Change Log
Standard 12-bit encoders (4,096 positions) often struggle with "stepping" or "hunting" when you're trying to hit that final, perfect polish.
* Resolution: 21-bit gives us 0.00017^{\circ} per step. This results in a rock-solid 0.001^{\circ} display with zero flicker.
* The "Cheater" Factor: When making micro-adjustments to the cheater, the 21-bit resolution ensures that even the slightest touch is reflected on the screen instantly.
3. Standardized Wiring (USB 3.0 to Magnetic Pogo)
I use the internal shielded pairs of USB 3.0 cables to protect the SPI signals from machine motor noise.
* Pin 1: VCC (5V) - Red
* Pin 2: GND - Black/Drain
* Pin 4: SCK - Blue (Shielded Pair)
* Pin 5: MOSI - Yellow (Shielded Pair)
* Pin 6: MISO - Orange (Shielded Pair)
* Pin 3: CSN - Green
4. 3-Phase "Smart Tool" Calibration Logic
All data is "burned" directly into the encoder's MTP (Multi-Time Programmable) memory.
* Strength Check: Real-time health score to verify the magnet air gap of 0.040" (1.0mm).
* Linearity Mapping: A 6-second routine using a 1 RPM motor to map and compensate for magnet eccentricity.
* Static Zero: Burning the "Flat on Lap" reference into the chip so 0.000^{\circ} is always correct regardless of the display box used.
5. FAQ & Troubleshooting
* Why Magnetic Pogos? They offer a zero-force connection. If you snag a cable, it pops off safely. Gold-plated contacts ensure data integrity.
* EMI Concerns: By using USB 3.0 shielded cabling and grounding the drain wire, the SPI signal is immune to motor interference.
* Air Gap Criticality: Target gap is 0.020" – 0.060". If the gap is off, the diagnostic screen will trigger STATUS: TOO WEAK or TOO CLOSE.


I’m looking for feedback from the community! Specifically, are there any "Shop Modes" or calculator offsets you'd like to see in a 21-bit system? Any concerns about pogo pins in a splash-heavy environment?
Looking forward to your comments
Post Reply

Return to “Lapidary Corner: Colored Stones”