LinuxCNC + Orange Pi (allwincnc)

More
6 years 5 months ago - 4 years 3 months ago #166968 by MX_Master
Hi, guys. Let me introduce a tiny project of mine..

My first single board PC was the Orange Pi One. And it's really fun to use such boards for a hobby projects :) But we also can use them as a small CNC controllers too. It's really sad there are no armhf packages in the LinuCNC dists repo. So my first try was the Machinekit with RT-PREEMPT kernel built using Armbian. And it works. But without a GPIO driver it was just a simulator. After a few weeks of learning I made a GPIO driver by myself. And it works just fine :cheer:

My next step of researching was a "big latency" issue (50-70 us). Many ARM boards has a worst latency values using the RT-PREEMPT kernel. A steps rate with such latency values was terrible. A few months later I found an info about additional built-in RISC CPU core. Using this core for the fast pins toggling was a good idea B)

At this moment I have a working pair of HAL driver and the RISC core firmware. Steps rate now very high (up to 1 MHz). Also I made a quick installer script. You need one of the Armbian images to install it. Supported boards are Nano/Banana/Orange Pi with Allwinner H3 SoCs installed.

Attention! Project support is ended. Use it on your own risc.

allwincnc.github.io

Last edit: 4 years 3 months ago by MX_Master.
The following user(s) said Thank You: Mike_Eitel, 109jb, Blake_Volpex, marian, fb, gello0, pinder, t.mutia, hairy and 2 other people also said thanks.

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

More
6 years 5 months ago #166973 by tommylight
Replied by tommylight on topic LinuxCNC + Orange Pi
buildbot.linuxcnc.org/dists/buster/maste...reempt/binary-armhf/
Latest armf 2.9 version, deb ready to install for Stretch.
The following user(s) said Thank You: MX_Master

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

More
6 years 5 months ago #166977 by Hakan
Replied by Hakan on topic LinuxCNC + Orange Pi
Amazing. I have to test this.

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

More
6 years 5 months ago #167148 by Hakan
Replied by Hakan on topic LinuxCNC + Orange Pi
What do you think of making an encoder module that runs in the RISC cpu?
How fast can it sample in-signals, would you say?

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

More
6 years 5 months ago #167156 by MX_Master
Replied by MX_Master on topic LinuxCNC + Orange Pi

Hakan wrote: What do you think of making an encoder module that runs in the RISC cpu?
How fast can it sample in-signals, would you say?

A RISC core can sample the AB sequences pretty fast. Max input frequency can be up to 200-400 kHz. But I haven't any high res encoders to test it. So these rates are theoretical maximum (based on output rates).

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

More
6 years 5 months ago #167290 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi
Very nice. We had some Allwinner devices running LinuxCNC back in '13-'14. Back then the mali GPU was still closed and there was no info on the integrated microcontroller.

Machinekit could have used these and come up with a working system as well. Nice to see that you have the ARISC core going now for software stepping.

This system can be more open source than the Rpi4 since it requires no giant video blob.
The following user(s) said Thank You: Doogie

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

Time to create page: 0.131 seconds
Powered by Kunena Forum