LinuxCNC + Orange Pi (allwincnc)

More
25 Feb 2021 02:31 #200053 by asid61
Replied by asid61 on topic LinuxCNC + Orange Pi
I read through this thread some time ago and ordered a small OrangePi to test a simple 3 axis CNC on. Don't need insane step rates or even control loops.

As someone who isn't super technically advanced (especially with Linux), how bad are the step errors? I get a positive feeling from the most recent posts but I lack the understanding to figure out if it's a "safe" option or not yet. Can I follow the quick start guide on the orangepi linuxcnc website and get something running reliably at this time? Is there anything I can do to help?

Please Log in or Create an account to join the conversation.

More
26 Feb 2021 15:40 #200199 by tjtr33
Replied by tjtr33 on topic LinuxCNC + Orange Pi
Helllo
I now have a hal_pi_gpio.c that runs well ( imo ).
It has inputs and in_nots
it has outputs and out_inverts and out_resets
it has a reset_time param for the reset pins
It's for the RPi3 ( the rpi4 latency is not as good as rpi3 imo )
Itfor fpr RPi not OPi but there's good news for OPi users....
The sweeet spot for threads is useful on OPi as well as RPi

Use 80us base and 1000us servo ( isolcpus=1,2,3 idle=poll
and dont touch it while it runs overnight! no youtube no games no music no movies no email, nanda
this is only for running lcnc ( and running lcnc only ) :-)


The reset pin feature means the hal_pi_gpio driver can be used with double step to increase velocity.

So, Ii didnt fix MxMaster's arisc gpio/stepgen
but the OPi can run pretty damn fast without it.
(12500 steps per sec with 80us base and 1000us servo threads)

For the brave, here's the source and screenshots of it running on RPi3

For the OPi, you can use the 80us 1000us threads to get same from MxMasters pi-gpio driver
no need for arisc to get that speed

I will keep looking into these gpio drivers and try to get the arisc gpio to do same as my rpi driver
(beware i am slow ;-)
tomp
Attachments:
The following user(s) said Thank You: Mike_Eitel, Bari, asid61

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 07:47 #200761 by asid61
Replied by asid61 on topic LinuxCNC + Orange Pi
I was able to get linuxcnc up and running on the Orange Pi with the GPIO driver at 10kHz using the quick start guide (and a sudo apt-get update before installing anything). Was very easy, and was pleasantly surprised by how easy it was to set up linuxcnc overall. I'm happy with that performance, but for rapids I need something a few times faster. ARISC driver is fast as heck (I got up to 300kHz before I stopped testing!), but the long term drift makes it hard to use. I took a glance at the code but it's all very over my head. Very cool project, and I hope someone can fix the faster driver, as it would be excellent for all kinds of smaller CNC control projects.

Please Log in or Create an account to join the conversation.

More
02 Mar 2021 08:28 #200764 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Thanks Tom. I hope to have some time to help with the ARISC by April.

Please Log in or Create an account to join the conversation.

More
30 Mar 2021 02:05 #204106 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Looks like the source for this was removed from gitlab.

Please Log in or Create an account to join the conversation.

More
30 Mar 2021 20:38 #204147 by twoflowers
Replied by twoflowers on topic LinuxCNC + Orange Pi
Yes, hit a dead end. Anyway, my OrangePi did better as a media bridge than the RPis, so it never actually did see some dust.

Please Log in or Create an account to join the conversation.

More
30 Mar 2021 23:26 #204158 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
No dead end. We are working on this.

Tom and I will coordinate and get this fixed one way or another.
Repos are back up here: github.com/openlunchbox

Please Log in or Create an account to join the conversation.

More
31 Mar 2021 06:14 #204172 by twoflowers
Replied by twoflowers on topic LinuxCNC + Orange Pi
Then my OrangePi Nano has still a chance? :)

Please Log in or Create an account to join the conversation.

More
31 Mar 2021 06:20 #204173 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Repos are here gitlab.com/orangecnc

My interest would be for the 4GB RAM version OrangePi 4. Getting it working on the lesser Opi's would be a next step.

As much as I dislike Debian it might make sense to get this working with Andy's Rpi Buster.

Please Log in or Create an account to join the conversation.

More
31 Mar 2021 06:35 #204174 by twoflowers
Replied by twoflowers on topic LinuxCNC + Orange Pi
I had the version from said repository running on Devuan - I even have images on github for NanoPi Zero and OrangePi PC Plus. The Nano does not have a job right now, so if you want I can help with the image for that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.138 seconds
Powered by Kunena Forum