Advanced Search

Search Results (Searched for: raspberry)

19 Aug 2024 22:52

best linuxcnc version for beginner

Category: Installing LinuxCNC

Linux is good as it quite verbose when an error occurs. New users not so good as often they don’t relay the error messages that Linux gives them. Then experienced users have to spend a lot of time getting the exact message from them. Then both sides get upset.

Enough sarcasm.
The latest official ISO from the Linuxcnc home page is the way to go, it should “just work”.
Regarding your error, please relay the exact error you are getting, then we can move on.

The thing is you have to realise when switching to a new OS there is a learning curve. No one comes out of their Mummy’s Tummy knowing how to use Windows.
I would be in the same boat switching to Windows, the last version I used was Vista. Since then I’ve been exclusively Linux.
Ignore what the self proclaimed experts say about having to be a programmer to use Linux.
A funny thing is that not a lot of people complain about Linux when using something like a Raspberry Pi, little weird hey ?

Fear not my friend we will get you sorted.
17 Aug 2024 09:02

Which Mesa Card Should I Buy?

Category: Driver Boards

Hello everyone,
Thank you for this forum and the work accomplished. Knowing a little the possibilities of configuration of this software this update is for essential.
a few years ago I built a complete 5-axis continuous milling machine under linuxcnc.
It works very well with a // port and a STV2 “break out”, DMA860H drivers and a VFD. so I control :
- 5 continuous axes
- Spindle stop/run/speed ( G code )

However, not enough I/O for coolant and other functions.

The only drawback is that I'm “obviously” lacking precision with 5 continuous axes. I therefore need to install rotary encoders on my B/C axes. But there's no more possibility on my Break Out card. So I have to change my system completely.
I want to start with Raspberry Pi4 . Despite the tables above, I'm not sure about my choice of Mesa boards. What would you recommend for such a configuration?

Thank you in advance.

 
17 Aug 2024 06:38 - 17 Aug 2024 06:39

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Thanks so much!



unlike the installation of the EtherCAT packages that gives me an error


 

i don't know what it depends on, maybe we need to wait for Etherlab to update the repositories

 
forum.linuxcnc.org/9-installing-linuxcnc...i-5?start=220#306099
16 Aug 2024 15:37

configuring GPIO for a Raspberry Pi 4B

Category: Configuration Tools

Oh thank you so very much! I thought I was going crazy. Your explanation makes a lot of sense.

Might be nice to add a note to that document to clarify this as it's not incredibly obvious. I'm a LinuxCNC newby and I'm not sure of the protocol for making changes like this but if it's something I can or should do I'm happy to try adding a note. Thanks again!
16 Aug 2024 15:29

configuring GPIO for a Raspberry Pi 4B

Category: Configuration Tools

and everything is right!
The fact is that the pin outs of the Raspberry are inputs for the LinuxCNC and vice versa...

You will see that if you configure input pins with hal_pi_gpio, in the halcmd show pin command they will be shown as OUT

 
16 Aug 2024 15:12

configuring GPIO for a Raspberry Pi 4B

Category: Configuration Tools

That is exactly the document I have been using. As a test I tried to configure just one GPIO pin as an output - but when I run Halcmd Show Pins in a terminal that pin is showing up with direction set to "in"

Is there any chance that I don't understand what "Show Pins" is reporting. What does "direction" mean in this context - is there any chance that I do want direction to be "in" for an output? That seems unlikely.
16 Aug 2024 13:34 - 16 Aug 2024 13:39

Ethercat installation from repositories - how to step by step

Category: EtherCAT

hi
here is the report with uname -v

 

no RT, yet it works, something went wrong

which kernel is working?


If you want instructions to create a PREEMPT_RT for Raspberry Pi 5 with native Raspberry OS you can see at this link

forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303696

or use the ready-made image you find here

forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303752

Then follow the procedures already described for Ethercat drivers
16 Aug 2024 09:49

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Hi
after installing the official LinuxCNC ISO for Raspberry Pi 5
I realized that the screen resolution is not good,
it is not manageable and there is no audio,

it will surely be fixed.

so I tried installing LinuxCNC + EtherCAT on native Raspberry OS
I installed kernel 6.6.45-rt39-v8-16k+ with inspiration from  here
for EtherCAT drivers I entered the keys for the repositories from here
and followed Rod's guide here here

Everything works

 

latency, maybe a little high

 

I was wondering if it depends on the kernel and if it is possible to modify it in some way
many Thanks
16 Aug 2024 08:46

Ethercat installation from repositories - how to step by step

Category: EtherCAT

thanks a lot
What steps should I follow to configure ethercat?

cnc@raspberrypi:~/Desktop$ ethercat slave
bash: ethercat: command not found
cnc@raspberrypi:~/Desktop$ sudo geany /etc/ethercat.conf
cnc@raspberrypi:~/Desktop$ sudo systemctl enable ethercat.service
Failed to enable unit: Unit file ethercat.service does not exist.
cnc@raspberrypi:~/Desktop$ sudo systemctl start ethercat.service
Failed to start ethercat.service: Unit ethercat.service not found.
cnc@raspberrypi:~/Desktop$ sudo systemctl status ethercat.service
Unit ethercat.service could not be found.
cnc@raspberrypi:~/Desktop$ sudo chmod 666 /dev/EtherCAT0
chmod: cannot access '/dev/EtherCAT0': No such file or directory
cnc@raspberrypi:~/Desktop$ ethercat slaves
bash: ethercat: command not found
cnc@raspberrypi:~/Desktop$
16 Aug 2024 05:39

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Where am I making a mistake? The installation gives an error.


cnc@raspberrypi:~/Desktop$ ./ethinstall.sh
Install ethercat repository
dd: failed to open '/etc/apt/trusted.gpg.d/science_EtherLab.gpg': Permission denied
--2024-08-16 15:33:59-- build.opensuse.org/projects/science:Ethe...ys/download?kind=gpg
Resolving build.opensuse.org (build.opensuse.org)... 195.135.223.221, 2a07:de40:b250:131:10:151:131:20
Connecting to build.opensuse.org (build.opensuse.org)|195.135.223.221|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘STDOUT’

- [ <=> ] 1.08K --.-KB/s in 0s

2024-08-16 15:33:59 (11.7 MB/s) - written to stdout [1109]

gpg: [stdout]: write error: Broken pipe
gpg: filter_flush failed on close: Broken pipe
tee: /etc/apt/sources.list.d/ighvh.sources: Permission denied
15 Aug 2024 01:00 - 15 Aug 2024 01:04

Pi4b and Pi5 users - What should go in a 2.9.3 image

Category: Installing LinuxCNC

Nice Rod and others, thanks for your hard work.  Question before we download, was this built from the new Rpi Debian 12 www.raspberrypi.com/software/operating-s...spberry-pi-os-64-bit (including the "normal" Rpi features like raspi-config and /boot/config.txt) or will we still be using menu-config and /boot/broadcom/config.txt?

Because the 2.9.2 iso has been liking to boot to a black screen lately, with nothing in any logs and lightdm running fine, so no idea why.  But an upgrade would be welcome. :)
14 Aug 2024 19:08

Jogging not working on basic setup

Category: Basic Configuration

I'm new to LinuxCNC and hobbyist machining.  For some reason, jogging isn't working on my 3 Axis setup. I feel like I'm just missing one critical configuration but can't figure it out.  I got homing to work from the Axis GUI, but jogging doesn't work. 

I've posted my INI files and HAL files.  I've only included X axis configurations for brevity.  Any tips ?

System Details
* Raspberry Pi 5 
* LinuxCNC 2.9.3
14 Aug 2024 18:55

configuring GPIO for a Raspberry Pi 4B

Category: Configuration Tools

Hey kind folks,

I am working to configure a Raspberry pi 4B to run LinuxCNC for a two-axis machine I'm building.  I am using the HAL driver for Raspberrry PI GPIO pins (hal_pi_gpio).

I am proposing to use the following pins:

net Xdir => hal_pi_gpio.pin-15-out
net Xstep => hal_pi_gpio.pin-16-out
net Ydir => hal_pi_gpio.pin-18-out
net Ystep => hal_pi_gpio.pin-22-out

When I start LinuxCNC the HAL file appears to be loading properly.

But if I go to a terminal and say Halcmd show pins  - it appears to be showing my pins configured as INPUTS - not outputs?
(I'm assuming that's what the direction column in the show pins command means).

nc@raspberrypi:~/Desktop$ halcmd show pin
Component Pins:
Owner   Type  Dir         Value  Name
 
    28  bit   IN          FALSE  hal_pi_gpio.pin-15-out <== Xdir
    28  bit   IN          FALSE  hal_pi_gpio.pin-16-out <== Xstep
    28  bit   IN          FALSE  hal_pi_gpio.pin-18-out <== Ydir
    28  bit   IN          FALSE  hal_pi_gpio.pin-22-out <== Ystep

I'm pretty sure I did the math on the mask right although I could be wrong. To confirm, I just tried masking for one output and it still shows up as IN.

The documentation says I should add up the hex values for all pins that should be configured as an output which I think is what I've done.  

Anyone see what I'm missing?  Thanks!!!!

my full .hal file follows:


# Generated by stepconf 1.1 at Fri Nov 17 17:18:50 2023
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS

# Load the Raspberry Pi GPIO driver
loadrt hal_pi_gpio dir=0x00F00040


loadrt stepgen step_type=0,0


# Add to the base thread

addf hal_pi_gpio.read base-thread  
addf stepgen.make-pulses base-thread
addf hal_pi_gpio.write base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread


# Configure output pins
net Xdir => hal_pi_gpio.pin-15-out
net Xstep => hal_pi_gpio.pin-16-out
net Ydir => hal_pi_gpio.pin-18-out
net Ystep => hal_pi_gpio.pin-22-out


setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared


 
13 Aug 2024 20:25
MESA 7c81 HELP! was created by waukeenahBob

MESA 7c81 HELP!

Category: Driver Boards

I have a good bit of experience with CNC... built 2 machines in the past... one Mach3 another GRBL.  Long time linux admin.  Have built lots of things with RPI, New to LinuxCNC.

I am refactoring a vertical mill that I converted to CNC and Mach 3 several years ago to use LinuxCNC.  In the past I used a UC ETH-300 which of course is not compatible with LinuxCNC.  So I bought a Mesa 7c81 and an 8gb Raspberry Pi 4.

I have everything connected, Installed LinuxCNC 2.9.2 using the RPI image, have enabled SPI and it appears that I am talking to the Mesa card.
I have a standard chinese BOB connected to port 1 and plan to use ports 2 and 7 for home/limit switches, probe, spindle etc.

Started with pncconf selected my card and the 5ABOB3 firmware, looked up my stepper drivers for time, space, hold etc... 

Cannot figure out the P1, P2, P7 Mesa Card config pages as far as pins goes... expecting to assign pin2 for step X etc...  according to the BOB documentation.
I have assigned the Axis StepGen's to P1 0:, 1:, and 2: just to be able to write the config out.
When I try to test/tune an axis I hear the relay trip on the BOB which is encouraging... and when I try to jog I see the numbers changing on the Hal Meter etc but I get nothing from my steppers... they do feel slightly warm so I believe there is current going to them... but no movement at all

if I try to launch LinuxCNC using the config pncconf created I see some errors come up
"Unexpected realtime delay on task0 with period 70000" and hm2/hm2_7c81.0 Watchdog was bit.

My plan is to get basic stuff working and then add complexity... 

Wondering if anyone has a config they would be willing to share?

Or advice on where to go next... been googling and searching my tail off and figure there is something basic I am missing and once I see it properly configured I will have a big DUH moment :)

Any help would be appreciated!
Displaying 91 - 105 out of 1066 results.
Time to create page: 0.663 seconds
Powered by Kunena Forum