Browser interface to TouchDRO board - updated 05/25/2022

llamatrails

H-M Supporter - Diamond Member
H-M Lifetime Diamond Member
Joined
Nov 23, 2015
Messages
71
**** Additional functionality and features added in, see posts below ... ****

I have put together a browser interface to the TouchDRO board at https://llamatrails.com/touchdro-term .

Why, you may ask? Well, because ... :)

It is a work in progress at this time, I don't know where I'm going with it yet.

I have tested it on Windows using Chrome and Microsoft Edge, and on a Raspberry Pi using Chromium. It uses the WebSerial API, so please update your browser if it doesn't work. The board will need to be configured and paired first. On Windows, Add a Bluetooth Device. On Linux, I used bluetooth-agent and hcitool and rfcomm, it will depend on your flavor of Linux.

The default baud of 115200 is set, you will have to input your CPI and PPR. They will be saved for the next time. The Invert function isn't working yet, I intend to add a way to toggle inch/mm* and a few other features like multiple machines, i.e. lathe and mill.

Feedback is welcome, I'd like to know if it will be useful to others.

* done, see posts below

TIA,
Rick

chrome-screen-04-15-mm1.png


chrome-connect.png


chrome-screen-04-15-tailstock.png
 
Last edited:
Very interesting! Good work.
 
Update: 04/15/2022

Changed the layout a bit.
Inch/MM now working.
Able to change the axis labels as needed.

Still to do: zero, invert

Link to the TouchDRO browser interface: https://llamatrails.com/touchdro-term

chrome-screen-04-15.png


chrome-screen-04-15-mm0.png


chrome-screen-04-15-mm1.png


chrome-screen-04-15-tailstock.png
 
Last edited:
Can you make the 4th digit white? Like an odometer.
 
05/07/2022 update:
  1. Zero toggle now works
  2. Set dimension added
  3. Invert (scale direction) now works
  4. Set display digits added
How to enable bluetooth on a Raspberry Pi:

Code:
    *****  follow below steps  *****
$ bluetoothctl
Agent registered
[bluetooth]# devices
[bluetooth]# scan on
Discovery started
[CHG] Controller AA:AA:AA:AA:AA:AA Discovering: yes
[NEW] Device xx:xx:xx:xx:xx:xx HC-05
[bluetooth]# agent on
Agent is already registered
[bluetooth]# pair xx:xx:xx:xx:xx:xx
Attempting to pair with xx:xx:xx:xx:xx:xx
[CHG] Device xx:xx:xx:xx:xx:xx Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device xx:xx:xx:xx:xx:xx UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device xx:xx:xx:xx:xx:xx ServicesResolved: yes
[CHG] Device xx:xx:xx:xx:xx:xx Paired: yes
Pairing successful
[CHG] Device xx:xx:xx:xx:xx:xx ServicesResolved: no
[CHG] Device xx:xx:xx:xx:xx:xx Connected: no
[bluetooth]# trust xx:xx:xx:xx:xx:xx
[CHG] Device xx:xx:xx:xx:xx:xx Trusted: yes
Changing xx:xx:xx:xx:xx:xx trust succeeded
[bluetooth]# quit

$ sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1    : bind to device
$ sudo rfcomm release 0                        : if needed, then try bind again
$ rfcomm
  rfcomm0: xx:xx:xx:xx:xx:xx channel 1 clean
$

    *****  how to use minicom to see data from the TouchDRO board  *****
$ sudo minicom -s -c on
 change port serial port to /dev/rfcomm0
 change screen/display to line wrap (R)
 save as: rfcomm0    saved in /etc/minicom
 exit
$
$ minicom rfcomm0

edge-screen-05-05.png


edge-screen-05-05-mm.png
 
Very interesting llamatrails!
 
05/25/2022 update:
  1. Re-design of the GUI, moved the configuration settings
  2. Cut to zero function added
  3. Configuration for setting metric as the default
  4. Added a visual display for the probe

edge-screen-05-24a.png


edge-screen-05-24b.png


edge-screen-05-24cut2zero.png
 

Attachments

  • edge-screen-05-24a.png
    edge-screen-05-24a.png
    49 KB · Views: 87
Back
Top