- Posts: 197
- Thank you received: 0
Arduino serial7Segment DRO XYZ
im Moment beschäftige ich mich mehr mit Gimmicks für die Fräse als das ich damit arbeite. Naja, muss auch mal sein.
Nachdem das DRO mit PyVCP auf der rechten Seite in Axis sehr gut funktioniert habe ich mir überlegt, das DRO auf drei serial7Segment anzeigen zulassen.
Ich habe noch drei aus einem Projekt. Nach vielem googeln stoß ich immer auf den Pendant von ArcEye und ckcnc. Das überfordert mich etwas da ich eigentlich kein Handrad möchte sondern lediglich das XYZ auf den Anzeigen gezeigt wird.
Wie ich schon lesen konnte funktioniert das wohl auch, aber ich finde keine wirkliche Anleitung dazu. Muss auf dem Arduino eine andere Firmware drauf sein als die übliche damit das funktioniert? Was muss gemacht werden das LinuxCNC die Daten an den Arduino übergibt?
Wie gesagt der Arduino mit den Segmenten sollen nur als Anzeige dienen.
Grüße Fritz
*******************************************************************************************************************************************************************
Hi, I again
at the moment I am working more with gimmicks for the router as I work with it. Well, must be sometimes.
After the DRO I have worked with PyVCP very well on the right side in Axis been thinking that allow DRO show on three serial7Segment.
I have three of a project. After much googling I always push to the Pendant of ArcEye and ckcnc. The overwhelmed me a bit because I really do not want a hand wheel but only the XYZ is shown on the display.
As I could read already works well too, but I find no real instructions,. Must on the Arduino another firmware on it to be the most common for this to work? What must be done the LinuxCNC transfers the data to the Arduino?
As I said the Arduino with the segments are provided as a display only. No Buttons, no Controlling...
Greetings Fritz
The s7s Segments:
www.watterott.com/en/7-Segment-Serial-Display-red
The Project they come from
youtube.com/watch?v=bj7tc090A9A
Please Log in to join the conversation.
Please Log in to join the conversation.
Yesterday i tested the Pendant from ArcEye, great test.
A new question comes in this Test:
Is ist possible to get 2 or 3 outputs for this command:
net Xposition halui.axis.0.pos-relative serialcon.xposition
net Xposition halui.axis.0.pos-relative xxxx.xposition
i.e.: I want to do a Display with only the DRO over 7Segments
i.e: I want to build the Pendant
and last i like to have the DRO in AXIS on the right side.
My thoughts where to put the position in varaibles and give these out.
If these thoughts correct, how can i do these...?
Greetings Fritz
Please Log in to join the conversation.
Is ist possible to get 2 or 3 outputs for this command:
net Xposition halui.axis.0.pos-relative serialcon.xposition
net Xposition halui.axis.0.pos-relative xxxx.xposition
You need to look at the docs for HAL and halui
www.linuxcnc.org/docs/devel/html/hal/basic-hal.html#_net
www.linuxcnc.org/docs/devel/html/gui/halui.html
halui.axis.0.pos-relative is an OUT pin, so you can connect it to a signal and then connect as many IN pins as you like to the same signal to share the data.
The hal file syntax should be
ie. you only connect the OUT pin ONCE to the signal, then connect the signal as many times as you want to other IN pins
The s7s Segments:
www.watterott.com/en/7-Segment-Serial-Display-red
As far as the 4 digit 7 segment displays go, they are very expensive and limited compared to a LCD display.
You would require 3 of them for a 3 axis display (42 euros) and if used in a metric setup, 4 digits allows very limited resolution.
Compare that to a 4 x 16 LCD display for 5 euros approx
That is 4 axes of up to 16 digit resolution if just used as a DRO - no contest in my mind
Please Log in to join the conversation.
I have three of a project. After much googling I always push to the Pendant of ArcEye and ckcnc. The overwhelmed me a bit because I really do not want a hand wheel but only the XYZ is shown on the display.
As I could read already works well too, but I find no real instructions,. Must on the Arduino another firmware on it to be the most common for this to work? What must be done the LinuxCNC transfers the data to the Arduino?
As I said the Arduino with the segments are provided as a display only. No Buttons, no Controlling...
All you need to do to just display positions in a DRO is edit the existing component and arduino code.
If you remove the calls to check commands in both pieces of code, you just end up with a component that outputs a position string packet and an arduino sketch that writes it to a LCD screen ie. a simple DRO display
Ergo, a component named serialdro.comp
and a corresponding arduinodro.ino script
I haven't tested them but they compile OK
Please Log in to join the conversation.
I've learned a lot on Sunday, mainly to see what is where loaded.
I've changed my mind since the first post above the 4 digit to 8 digit. my cutter can in X max 620mm, therefore the 8 characters incl. sign should be enough, I think. Now I have to wait about 4 weeks until the Digis there are. I think at this time I build but the counterpart to
Thank you very much for your support.
I have to read a lot
Please Log in to join the conversation.
Works now very well on/in the Pendant AND in AXIS PyVCP! thank you!!!ArcEye wrote: You need to look at the docs for HAL and halui
www.linuxcnc.org/docs/devel/html/hal/basic-hal.html#_net
www.linuxcnc.org/docs/devel/html/gui/halui.html
halui.axis.0.pos-relative is an OUT pin, so you can connect it to a signal and then connect as many IN pins as you like to the same signal to share the data.
The hal file syntax should beie. you only connect the OUT pin ONCE to the signal, then connect the signal as many times as you want to other IN pinsCode:net Xposition halui.axis.0.pos-relative serialcon.xposition net Xposition xxxx.xposition
(Wished i got more time to test the things, but step by step...
Please Log in to join the conversation.
It is a steep learning curve at first, but all appears simple once you reach the uplands
Please Log in to join the conversation.
ArcEye wrote: Glad you are getting there.
It is a steep learning curve at first, but all appears simple once you reach the uplands
Well i think the real uplands are some altitude away, but every result success, steps up
Please Log in to join the conversation.
