LinuxCNC + Orange Pi (allwincnc)

More
3 years 4 months ago #272885 by wzor

Please Log in to join the conversation.

More
3 years 2 months ago #278167 by virencq
Help is needed for the Spindle encoder.
I have a Lathe setup running with X-Z axis.
Spindle working for commanded speed.
The shared home switch also working.
But I have phase-A on pin 8.
Index on pin 10.
in hal show nothing to show for encoder related. 
Please look at my spindle.hal for modifications.

Attachment not found

 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
3 years 1 month ago #280174 by virencq
Small progress, now phase A working. but hal hal show encode.0.velocity do not match with commanded S300 M03 in MDI.
Tried to run  

Attachment not found

G76.ngc do not run.

Please Log in to join the conversation.

More
3 years 3 weeks ago #282680 by MakerYang
[code]I hope to get some guidance on the issue regarding the ARISC driver.

I am currently adapting a new development board, which is similar to the Raspberry Pi and Orange Pi. I am not quite sure how to configure some of the settings in the `api.h` file. Where should I obtain these configuration details from in the chip's manual?


[code][code][code]#ifndef _API_H
#define _API_H

...
#define ARISC_CPU_FREQ          450000000 // Hz
#define ARISC_FW_BASE           (0x00040000) // for ARM CPU it's 0x00040000
#define ARISC_FW_SIZE           ((8+8+32)*1024)
#define ARISC_SHM_SIZE          (4096)
#define ARISC_SHM_BASE          (ARISC_FW_BASE + ARISC_FW_SIZE - ARISC_SHM_SIZE)
#define GPIO_BASE               0x01c20800
#define GPIO_R_BASE             0x01f02c00
#define GPIO_BANK_SIZE          0x24

#define GPIO_PORTS_MAX_CNT      8
#define GPIO_PINS_MAX_CNT       24
#define PWM_CH_MAX_CNT 16
#define PWM_WASTED_TICKS (160/2) // number of ARISC ticks wasted for calculations
...


static inline
void shmem_deinit(void)
{
    munmap(_shm_vrt_addr, ARISC_SHM_SIZE);
    munmap(_gpio_vrt_addr, 4096);
    munmap(_r_gpio_vrt_addr, 4096);
}

#endif


Are there any additional configuration changes needed apart from the ones mentioned above?

Thank you for your help.


Attachment not found


Attachment not found


Attachment not found

Please Log in to join the conversation.

More
2 years 6 months ago #298409 by ultrasmurf
Quick question on this. 

Is there a way to configure the arisc module to control a cw and ccw pulse rather than step/dir ?

I got it running just fine with step/dir, but i have a rather old and somewhat difficult to change servo/amp that can only be run using cw and ccw pulse mode.

Thanks in advance.

Please Log in to join the conversation.

More
2 years 6 months ago #298423 by tommylight
Normally yes, very easy, just change the stepgen_type from 0 to 1 in the hal file for the axis/joint you want.
Or might be 2, not sure, it was a long time ago, but a quick search for stepgen type linuxcnc should get the results.

Please Log in to join the conversation.

Time to create page: 0.823 seconds
Powered by Kunena Forum