Forum

Full Version: Browser interface to TouchDRO board - updated 05/24/2022
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have put together a browser interface to the TouchDRO board at https://llamatrails.com/touchdro-term .

Why, you may ask? Well, because ... Smile

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.  AFAIK, at this time, Brave has not yet enabled the WebSerial API.

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.

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

Scroll down for screen shots.  More features to come as I plod along ...

Rick


How to enable a bluetooth device 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


[Image: edge-screen-05-05.png]

[Image: edge-screen-05-05-mm.png]

[Image: chrome-connect.png]

[Image: chrome-screen-04-15-tailstock.png]
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



[Image: edge-screen-05-24a.png]

[Image: edge-screen-05-24b.png]

[Image: edge-screen-05-24cut2zero.png]