LinuxCNC + Orange Pi (allwincnc)

More
3 years 11 months ago #256321 by virencq
Replied by virencq on topic LinuxCNC + Orange Pi (allwincnc)
Here below help needed, How to debounce encoder.A and Z.

addf arisc.encoder.read servo-thread
setp arisc.encoder.0.A-port 0 #PA
setp arisc.encoder.0.A-pin 13
setp arisc.encoder.0.Z-port 0 #PA
setp arisc.encoder.0.Z-pin 14
addf near.0 servo-thread
addf pwmgen.make-pulses base-thread
addf pwmgen.update servo-thread

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

More
3 years 11 months ago #256384 by Bari
Replied by Bari on topic LinuxCNC + Orange Pi (allwincnc)
What type of encoder is generating bounces?

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

More
3 years 11 months ago #256401 by virencq
Replied by virencq on topic LinuxCNC + Orange Pi (allwincnc)
Sir,
I am using 50 sloted disc with optical sensors for Index and phase-A.
In Raspberry Pi I have working debounce

setp debounce.1.delay 6
unlinkp encoder.0.phase-Z
unlinkp hal_pi_gpio.pin-10-in
net indexunfit <= hal_pi_gpio.pin-10-in
net indexunfit <= debounce.1.0.in
net indexfit <= debounce.1.0.out
net indexfit <= encoder.0.phase-Z

unlinkp encoder.0.phase-A
unlinkp hal_pi_gpio.pin-08-in
net spindleunfit <= hal_pi_gpio.pin-08-in
net spindleunfit <= debounce.1.1.in
net spindlefit <= debounce.1.1.out
net spindlefit <= encoder.0.phase-A

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

More
3 years 10 months ago #258456 by 109jb
Replied by 109jb on topic LinuxCNC + Orange Pi (allwincnc)
So I have been using LinuxCNC on the Orange Pi One with my milling machine for a while now with no problems. I had documented the install of Armbian and of LinuxCNC carefully back when I originally did this and decided to get a new SD card and do a clean install to backup, which wasn't successful even though I had pretty well detailed steps. Now I did take my original working SD card and successfully created a backup image, but since the one I have coming is a bit different model board I'm not sure if I can use this image for the new board. Would like to get this figured out if I can.

Here is how I am doing it and what is happening afterward.
  1. Burn Armbian image to SD using Belana Etcher. (Initially tried the original Armbian image that I had saved to my main computer back when I did this originally. This image worked back then but not this time. I have also tried other distributions including ones older than Armbian_21.05.1 with Linux kernel v5.10.34 as noted in MX-Masters notes)
  2. SD inserted into O-Pi and booted to desktop. (Each distro I tried got through this fine.
  3. Install LinuxCNC using the following steps (basically how described on Allwincnc pages)
    1. from terminal - got clone github.com/allwincnc/installer
    2. from terminal - cd installer
    3. from terminal - ./install.sh
    4. follow prompts selecting H3 board, Y for all options, and English for language selections.
Depending on the Armbian distribution, this either fails or completes without errors. On those that complete the install without errors, they fail to boot. I have read that the SanDisk SD cards are best and that cheap cards can cause problems so I bought a new class 10 SanDisk card to see if I had a bad SD but got the same results. Since I only use Linux for my CNC machines, I am at a loss on how to correct this. Below is what is on the screen from the boot process when when it fails. I have tried adding the following lines to the /boot/ArmbianEnv.txt file but this does not seem to work. (extraargs=rootdelay=30 and extraargs=rootwait)

Thanks, and here is what the display shows on boot fail. Seems to be the same as user fery15sty

Loading, please wait...
Starting version 241
Begin: Loading essential drivers ... done.
Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device. Common problems:
 -Boot args (cat /proc/cmdline)
  -Check rootdelay= (did the system wait long enough?)
 -Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=66266533-272b-4f3b-8458-f43bad4db3e1 does not exist. Dropping to a shell!
(initramfs)

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

More
3 years 10 months ago #258460 by Zefram
Replied by Zefram on topic LinuxCNC + Orange Pi (allwincnc)
Greetings,

I have done a retrofit of an emco compact 5 cnc using Orange pi and this project. All is working well.I have the original tool changer working with linuxcnc, the spindle motor is also original and working with linuxcnc. 

I would like to ask if I can run two stepper motors wit 1/8 microstepping at the same time. will the orange pi handle that? Currently I have the Z motor on 1/8 and X on 1/2 but its resonating prety hard at low speeds so I want to microstep more but I worry about the performance.(Z 720mm/min and X is about 280mm/min (standard 200steps per rev stepper motors))

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

More
3 years 10 months ago #258466 by tommylight
Replied by tommylight on topic LinuxCNC + Orange Pi (allwincnc)

ALERT! UUID=66266533-272b-4f3b-8458-f43bad4db3e1 does not exist. Dropping to a shell!
Something went wrong during installation, the above error means the /etc/fstab has another drive/partition listed as working drive.
You might try editing the /etc/fstab from Initramfs, not sure if that works, but it does need to find the ID of the existing drive with:
lsblk -O
Mind the last one, must be upper case o, not zero.

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

Time to create page: 0.147 seconds
Powered by Kunena Forum