- Posts: 150
- Thank you received: 11
LinuxCNC + Orange Pi (allwincnc)
- Creative25
- Offline
- Premium Member
-
Less
More
5 years 5 months ago #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.
- MX_Master
- Offline
- Premium Member
-
Less
More
- Posts: 92
- Thank you received: 48
5 years 5 months ago #207716
by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi
yesCreative25 wrote: Can I take that from the 5 volt pin of the orange pi?
Please Log in or Create an account to join the conversation.
- tjtr33
- Offline
- Elite Member
-
Less
More
- Posts: 170
- Thank you received: 54
5 years 5 months ago #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.
- tjtr33
- Offline
- Elite Member
-
Less
More
- Posts: 170
- Thank you received: 54
5 years 5 months ago - 5 years 5 months ago #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
with
added to command.tct and compiled
params of
and 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
Code:
isolcpus=1,2,3 idle=poll
params of
Code:
--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: 5 years 5 months ago by tjtr33. Reason: add test period
Please Log in or Create an account to join the conversation.
- Bari
- Offline
- Platinum Member
-
Less
More
- Posts: 639
- Thank you received: 234
5 years 5 months ago #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
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
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.
- tjtr33
- Offline
- Elite Member
-
Less
More
- Posts: 170
- Thank you received: 54
5 years 5 months ago #207806
by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
I'll try the
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
asaphere'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.146 seconds