LinuxCNC + Orange Pi (allwincnc)
02 May 2021 21:03 #207678
by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Please try a latency test with 1mS servo thread only and post the results if possible. I am getting 200uS jitter on a 1mS servo only on my board with the RT kernel from H3CNC.
Please Log in or Create an account to join the conversation.
03 May 2021 02:58 #207699
by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi
To run desktop browsers you need more than 1GB of RAM. Another issue - H3 is too slow (1.4 GHz) for the big apps. Use it just for CNC user interface and console apps.
Jitter about 200us is normal for the H3 and Armbian Buster.
Jitter about 200us is normal for the H3 and Armbian Buster.
Please Log in or Create an account to join the conversation.
03 May 2021 03:52 - 03 May 2021 03:58 #207700
by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
latency histogram --nobase --servo 1000000
4 glxgears
after 947 seconds
-283 +249 latency
and again with 2000000 ( 2mS servo only )
i see
263 222 at 500seconds
but:
latency doesnt matter (as much) if arisc handles the time critical processes.
I think the latency is interesting but not crucial.
I have a limited perspective due to my needs,
and may easily fail to see needs of others.
So, here's 2 questions of interest:
Is there someplace to put 'isolcpus=1,2,3 idle=poll" ?
Is there any benefit to moving OS from SD to eMMC ?
tomp
4 glxgears
after 947 seconds
-283 +249 latency
and again with 2000000 ( 2mS servo only )
i see
263 222 at 500seconds
but:
latency doesnt matter (as much) if arisc handles the time critical processes.
I think the latency is interesting but not crucial.
I have a limited perspective due to my needs,
and may easily fail to see needs of others.
So, here's 2 questions of interest:
Is there someplace to put 'isolcpus=1,2,3 idle=poll" ?
Is there any benefit to moving OS from SD to eMMC ?
tomp
Last edit: 03 May 2021 03:58 by tjtr33.
Please Log in or Create an account to join the conversation.
03 May 2021 06:02 - 03 May 2021 06:05 #207704
by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi
Already answered here forum.linuxcnc.org/38-general-linuxcnc-q...c-pwm-success#207612 :)Is there someplace to put 'isolcpus=1,2,3 idle=poll" ?
Hi, TomP.
`isolcpus ...` can be added to the armbianEnv.txt or directly to the boot.cmd/scr inside setenv bootargs "... here ..."
disk IO speed x 4Is there any benefit to moving OS from SD to eMMC ?
Last edit: 03 May 2021 06:05 by MX_Master.
Please Log in or Create an account to join the conversation.
- Creative25
- Offline
- Premium Member
Less
More
- Posts: 130
- Thank you received: 9
03 May 2021 08:33 #207708
by Creative25
Replied by Creative25 on topic LinuxCNC + Orange Pi
I have been thinking of a simple way to connect pololu drivers to the orange pi
So what I used is a Arduino cnc shield V4
Unfortunately it only supports 12 volt.
Since I am using an old laptop power supply which is 19 volt. So 12 volt is not an option. I figured out that the limit is the onboard regulator for the arduino. So I removed it. Capacitors are 47V. But now I need 5v for the Pololu 8825 drivers. Can I take that from the 5 volt pin of the orange pi?
So what I used is a Arduino cnc shield V4
Unfortunately it only supports 12 volt.
Since I am using an old laptop power supply which is 19 volt. So 12 volt is not an option. I figured out that the limit is the onboard regulator for the arduino. So I removed it. Capacitors are 47V. But now I need 5v for the Pololu 8825 drivers. Can I take that from the 5 volt pin of the orange pi?
Please Log in or Create an account to join the conversation.
03 May 2021 10:44 #207716
by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi
yesCan I take that from the 5 volt pin of the orange pi?
Please Log in or Create an account to join the conversation.
03 May 2021 14:34 #207726
by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
Thx MXMaster
I edited boot.cmd
and then did
sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
then rebooted
now latency-histrogram --nobase --servo 1000000
has values cut in half ( compared to before editing boot.cmd)
after 1/2 hour with 4 glxgears
i have -153 and +138 uS latency
I did not move OS from SD to eMMC yet,
I will let the latency test cook overnight
thx TomP
I edited boot.cmd
and then did
sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
then rebooted
now latency-histrogram --nobase --servo 1000000
has values cut in half ( compared to before editing boot.cmd)
after 1/2 hour with 4 glxgears
i have -153 and +138 uS latency
I did not move OS from SD to eMMC yet,
I will let the latency test cook overnight
thx TomP
Please Log in or Create an account to join the conversation.
04 May 2021 05:21 - 04 May 2021 05:23 #207790
by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
Hi Bari Hi MXMaster
I ran latency-histogram on the opi+2e armbian buster xfce
withadded to command.tct and compiled
params ofand 4 glxgears
and got (after more than 13 hours)
base -44.5 +46.8
servo -115.9 +121.7
the editing for isolcpus and idle definitely help
it does slow down the axis gui, but acceptable
( if you "lower your expectations" TM SNL )
todo:
Add the ntp 'fix' from samco
Move the os from sd to emmc
Drive these closed loop stepperd LC57H380+LCDA357H
www.alibaba.com/product-detail/3-Phase-n...-2N_62339788859.html
Build and study the app 'tuna' for tuning rt environments
Regards
tomp
I ran latency-histogram on the opi+2e armbian buster xfce
with
isolcpus=1,2,3 idle=poll
params of
--base 80000 --servo 1000000
and got (after more than 13 hours)
base -44.5 +46.8
servo -115.9 +121.7
the editing for isolcpus and idle definitely help
it does slow down the axis gui, but acceptable
( if you "lower your expectations" TM SNL )
todo:
Add the ntp 'fix' from samco
Move the os from sd to emmc
Drive these closed loop stepperd LC57H380+LCDA357H
www.alibaba.com/product-detail/3-Phase-n...-2N_62339788859.html
Build and study the app 'tuna' for tuning rt environments
Regards
tomp
Last edit: 04 May 2021 05:23 by tjtr33. Reason: add test period
Please Log in or Create an account to join the conversation.
04 May 2021 06:15 #207793
by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Tom,
I have similar jitter here. I also tried with isolcpus=2,3 and =3 and GUI performance was snappier and the jitter stayed about the same.
There is noticeable improvement when GPU hardware accel is used with the Rpi4. At some point I'll have to see how much better it behaves on the Opi's with hardware accel.
I have similar jitter here. I also tried with isolcpus=2,3 and =3 and GUI performance was snappier and the jitter stayed about the same.
There is noticeable improvement when GPU hardware accel is used with the Rpi4. At some point I'll have to see how much better it behaves on the Opi's with hardware accel.
Please Log in or Create an account to join the conversation.
04 May 2021 09:25 #207806
by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
I'll try the =3 asap
here's a pretty crappy video
( pink and squeezed samll, so bigify and turn on CC )
now i will set up these servo-steppers
tomp
i just uploaded it it YT so may have a delay for public approval
here's a pretty crappy video
( pink and squeezed samll, so bigify and turn on CC )
now i will set up these servo-steppers
tomp
i just uploaded it it YT so may have a delay for public approval
Please Log in or Create an account to join the conversation.
Time to create page: 0.112 seconds