Advanced Search

Search Results (Searched for: raspberry pi 3)

  • jairobbo
  • jairobbo
09 Feb 2025 10:13
Replied by jairobbo on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

After using two model of pi (4B and 5) I still get disappointing results. Even at slow printing speeds around 25mm/s there is layer shifting and unreliable motion throughout the operation. I believe now that pi + GPIO struggles to keep up with the pulse generation. Even though I am doing indexed printing (orienting the bed only between sections of printing, so no full 5 axis kinematics) My application is a 5 axis (3 + 2 tilting bed) 3d printer.

I think this was mentioned in the instructions that the PREEMT linux kernel was compatible only, but not recommended as 'industry standard'. Since I cant afford a Mesa FPGA card I am going for klipper on an Octopus board and try my best there. Thanks everyone for being super helpful. And if anyone is interested my 5 axis slicer is on Github, it is A Blender addon that works if you also have the Cura engine up and running. You would be able to slice more complicated models with overhang and printing it by rotating the bed (if you do have this kind of setup).

github.com/bbo-git/5AxisSlicerBlenderAddon

Cheers!
Jairo
  • matgraci
  • matgraci
09 Feb 2025 08:42
Starting a new (first) project was created by matgraci

Starting a new (first) project

Category: General LinuxCNC Questions

Hello everyone and very glad to be a part of the community! This is my first post :)

I am super new to the linuxcnc and I have actually been reading the forum for the last couple of months trying to get started by myself and trying not to bother everyone with the questions that could be found in the documentation and/or previous posts. However it seems that now I have hit the limit and it takes toooo much time to get unstuck. I would really appreciate some push in the right direction :)

Anyways, I am trying to build quite a complex machine that has a single motor to control something like a winch and pull some things up and down. I got myself a Delta ASDA-A2-E inverter running a 1.5kW motor and I managed to get it moving using the Ethercat driver and axis GUI. The control is running on the Raspberry Pi 4B and I managed to get the linux cnc installed and running and to spin the motor in a position control mode, even though, later on I will need to use the torque control. But all of this was mainly the learning curve to actually get started :)

So what I would like to do is a simple GUI (probably from scratch) that would allow me to set the needed torque. Torque control will be quite complex, so I will need a place to write my own controls (I would prefer c/c++, but probably I can survive also with python). There should be also other functions for safety, data collection, etc, but this I can add along the way. Can you guys please help me set the simplest Hello World project where I would be able to get started? I would really appreciate any help.

Up until now I have been trying on Linux raspberrypi 6.1.54-rt15 but I am willing to start from scratch if there is a better option.

Thanks in advance!
  • unknown
  • unknown
09 Feb 2025 04:56
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

What is the actual command are you using for ping
  • jhandel
  • jhandel
09 Feb 2025 03:47
Replied by jhandel on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

So with the official image if I install Network Manager then it fails at between 50k and 70k pings... However if I leave the network bone stock like the image (so using commandline and config files to manage) then 100000 pings at 1ms/ping and a response time of 0.105ms so yah... I think it was Network Manager that was the problem.
  • vizavadsky
  • vizavadsky
08 Feb 2025 23:53
Replied by vizavadsky on topic StepperOnline A6 Servo

StepperOnline A6 Servo

Category: EtherCAT

Thank you. I made onother step towards spinning this motor because of that for sure!
I thing I got my XML wrong now.
Slaves:
cnc@raspberrypi:~/dev/hal-cia402$ ethercat slaves
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
3 0:3 PREOP + AS715N_sAxis_V0.10

XML I got from MWalz but I changed slave idx from 0 to 3
I'm not sure but it is looks like logical thing to me.

<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<slave idx="3" type="generic" vid="00400000" pid="00000715" configPdos="true" name="A6">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="25000"/>
<watchdog divider="2498" intervals="1000"/>
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="control-word" halType="u32"/>
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="target-position" halType="s32"/>
<pdoEntry idx="60B8" subIdx="00" bitLen="16" halPin="touch-probe-function" halType="u32"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1A00">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="status-word" halType="u32"/>
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="pos-actual" halType="s32"/>
<pdoEntry idx="60BA" subIdx="00" bitLen="32" halPin="touch-probe-1" halType="s32"/>
<pdoEntry idx="60BC" subIdx="00" bitLen="32" halPin="touch-probe-2" halType="s32"/>
<pdoEntry idx="60B9" subIdx="00" bitLen="16" halPin="touch-probe-status" halType="s32"/>
<pdoEntry idx="603F" subIdx="00" bitLen="16" halPin="fault-code" halType="s32"/>
<pdoEntry idx="60FD" subIdx="00" bitLen="32" halPin="DI-status" halType="u32"/>
<pdoEntry idx="60F4" subIdx="00" bitLen="32" halPin="follow-error" halType="s32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>

And I got this report

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/cnc/linuxcnc/configs/v2xt'
Machine configuration file is 'EtherCat_2025-01-13.ini'
INIFILE=/home/cnc/linuxcnc/configs/v2xt/EtherCat_2025-01-13.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=X
KINEMATICS=trivkins coordinates=X kinstype=BOTH
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
emc/iotask/ioControl.cc 786: can't load tool table.
Starting HAL User Interface program: halui
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./Basic.hal
Shutting down and cleaning up LinuxCNC...
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
HAL: ERROR: duplicate component name 'lcec_conf'
lcec_conf: ERROR: hal_init failed
./Basic.hal:6: waitpid failed lcec_conf lcec_conf
./Basic.hal:6: lcec_conf exited without becoming ready
6928
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime

Should I change something in Basic.hal or this is my XML wrong?
Will appreciate any help guys.
  • rodw
  • rodw's Avatar
08 Feb 2025 20:33

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Samba (SMB) is pretty easy to install. Just set it up to share your home folder. Plenty of online tutorials
The sneaky bit is by default Windows disables access and you have to change a policy to enable it.
I like to map a share to my Linuxcnc home folder on a windows box so you can save gcode straight to the ~/linuxcnc/gcode folder from Fusion360 and Sheetcam.
  • unknown
  • unknown
08 Feb 2025 07:48

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Samba was the next thing I was going to address.
Simple sharing by using the file manager no root intervention required .
Tho if you need file sharing from Linux to Linux NFS is a far far better solution.
  • unknown
  • unknown
08 Feb 2025 07:43

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

I couldn't get wpa_supplicant to work at my site. Being the lazy ass I am I found it easier to just edit the interfaces file.
Then working out I was even more lazier, and I like to enable and disable wifi on the fly, I installed network-manager-gnome.
To be honest I'm thinking that building an update image for the RPi 5 with network-manager might be worth it. If users want to use the gpio driver they'll have to disable it
Why didn't someone read the info with the download ?
1: people are lazy
2: people don't pay attention they just want the instant reward
3: they just download from a link.

I put up a link to the Debian way of setting up networking, but I don't think people read this thread or read a thread from the beginning.
  • rodw
  • rodw's Avatar
08 Feb 2025 05:20

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Why didn't you follow the instructions on the Downloads page to setup wireless networking and simply type:
sudo menu-config ?

Re a fixed IP wired connection for Mesa Ethernet card, follow the directions in the man page for hm2_eth (type man hm2_eth) or follow this link.
linuxcnc.org/docs/stable/html/man/man9/hm2_eth.9.html
If you are using a wired connection for internet, there should be nothing to set up as it will get an IP address from your router automatically using DHCP. 
  • behai
  • behai
08 Feb 2025 04:55

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Hi,

Still in regard to the image linuxcnc.org/iso/rpi-4-debian-bookworm-6...25-01-27-0404.img.xz, I have found the following information useful:

1. The desktop is XFCE, we can find out using the command echo $XDG_CURRENT_DESKTOP.

2. In regard to enabling Wifi.

This image comes with no network manager tool, nmcli is not available.

ChatGPT suggests the following steps. And I have carried them out successfully.

Please note, I had to switch to superuser to run the below commands.

To switch to superuser, use sudo su -.

a. Connect Using wpa_supplicant (If No NetworkManager).

b. Generate a configuration file:

[
wpa_passphrase "<WIFI_NETWORK_NAME>" "<WIFI_PASSWORD>" | sudo tee /etc/wpa_supplicant/wpa_supplicant.conf
]

c. Start wpa_supplicant:

[
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
]

Please note, wlan0. I think this is called network device name. We can find it out using the command ip link show, there are several output entries, I just guessed which on is the Wifi one, and lucky it was correct :)

d. Obtain an IP address via DHCP:

[
dhclient wlan0
]

e. Persist WiFi Connection (For Boot Time). Ensure it's enabled at boot:

[
systemctl enable wpa_supplicant
systemctl start wpa_supplicant
]

f. Test connectivity:

[
ping -c 4 8.8.8.8
]

It should give successful responses.

g. I restarted the machine. And still have Wifi, but there is no Wifi icon. I have not been able to get it to display.

3. In regard to Remote Desktop Connection.

I followed this article phoenixnap.com/kb/debian-remote-desktop and get it to work successfully.

Connecting from my Windows 10, the desktop just displays rubbish. It is not usuable.

4. In regard to directory sharing.

Samba works successfully, just like in Ubuntu and Raspbian. The setting up process is pretty much the same.

Thank you and best regards,

...behai.
  • behai
  • behai
08 Feb 2025 04:17

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Hi,

Thank you for the thread. It is very informative.

In regard to the image linuxcnc.org/iso/rpi-4-debian-bookworm-6...25-01-27-0404.img.xz
and locale, I have been able to verify that locale en US.UTF-8 works for PNCConf.

And after using menu-config to set the locale, I had to restart the machine for it takes effect.

After machine restarted, we should verify the locale. On a terminal window type locale the output should match.

-- I did try to set the locale to en AU.UTF-8 and it did not work.

Thank you and best regards,

...behai.

 
  • KrisJ
  • KrisJ
08 Feb 2025 04:04
Replied by KrisJ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

(Sorry for double posting. Cant edit last post, can only see the block quote when i try to edit)

I found a solution for my missing WiFi connections.
Second method mentioned in the top reply. (first method didn't work for me)
askubuntu.com/questions/71159/network-ma...s-device-not-managed

***
.....
Then open the file:
sudo nano /etc/network/interfaces
Delete everything in that file and copy and paste the following:

auto lo
iface lo inet loopback

Save, stop and start network manager:

sudo service network-manager restart
***
I had to reboot my whole system but after that WiFi works like expected.
  • KrisJ
  • KrisJ
08 Feb 2025 03:33
Replied by KrisJ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I can at least confirm a pi 5 that is able to find WiFi networks. In my case nmtui did work I chose something I remember was called ‘activate network’ and it would show a bunch (and prompt for password).

With kind regards,
Jairo 

edit: this is on the latest linuxcnc image 2.9.4 by rodw 

Thanks for the reply jairobbo!
That is really weird. I did exactly that but my list appear empty. Fresh install 2.9.4 and thensudo apt install network-manager
Did you use the 2.9.4 from downloads page, I think thats rodw's, right? Version of Rpi5? (I have the 4GB)

I also tried sudo apt install network-manager-gnomeAnd when I pop down the little menu there is a grayed out text "device not managed" and under that is only VPN connections. Any idea what might be off on my system?
  • probotix
  • probotix
08 Feb 2025 01:27
Replied by probotix on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Yeah the whole switch from Ubuntu to Debian cost me a ton of money. I'm a Linux guy myself and I can work in any Linux distro even if it hurts my eyes, but we couldn't do that to our customers, most of whom are scared of Linux in the first place. We stayed on 2.6 until UEFI forced us to update to 2.8 and then again when parallel ports finally dried up and mesa cards forced us onto 2.9. Now PC motherboards are almost obsolete in general, and the switch to rpi was forced, but has actually been pleasant thanks to a lot of yours efforts
  • unknown
  • unknown
08 Feb 2025 01:01
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

And finally for up to date info on the RPi and the images please jump to:
forum.linuxcnc.org/9-installing-linuxcnc...the-rpasberry-pi-4-5

Hopefully this will end up as a one stop for most issues and advice.
Displaying 301 - 315 out of 907 results.
Time to create page: 2.892 seconds
Powered by Kunena Forum