Advanced Search

Search Results (Searched for: raspberry)

18 Mar 2024 00:44

userid / password for live

Category: Installing LinuxCNC

The live session just boots straight to the desktop, no login is required.
If you went through the installation process you created the user, you chose the username and you chose the password.
It’s only the raspberry pi images that require a password and user name.

With the iso you followed the instructions from the documentation for 2.9.2 ?
If not I suggest reading the docs.
17 Mar 2024 22:17 - 17 Mar 2024 22:26

Communication solution on my own CNC Machine

Category: General LinuxCNC Questions

This is my first post and first topic in this forum (the first forum I've joined other than my native language). Thanks to you, I learned a lot about linuxcnc and different topics. Finally, I registered to gather my thoughts and open a topic. Since I used translation while writing the article, there may be some problems. Please excuse me :)

I have been doing research on making a CNC machine for a long time. I have met many alternatives on the software side. Driving stepper motors with simple grbl software, slightly more advanced NC solvers such as fluidnc, ready-made control units, windows-based mach and finally linuxcnc.

Mechanically speaking, I have the following design in mind:
A router with a fixed bridge and a processing area of 60x40cm. This machine should be able to cut aluminum very easily. I am thinking of using epoxy granite casting and aluminum sheets for the body material.

Where I work now, there is a large machining center, lathe, 4kw fiber laser and twisting machine. These are all CNC and I know how to use them. I have the opportunity to use all of them for the weekends. Using these opportunities, I want to make permanent magnet ac servo motors myself, in addition to the body parts. Even though the power density in terms of volume is not as much as industrial servos, I think it can be a good start. I will laser cut the thin transformer sheets and bring them together to form the stator. Then I will do the copper winding. I will machine the rotor and body with CNC lathe and milling machine and place the magnets. There are many mechanical details.

I want to use odrive as Servo Motor driver. I will design the voltage and current of the motor I will build in accordance with this driver.

The Odrive project is a closed loop servo controller in itself. Although servo examples are generally made with low-power drone motors, it has a power potential much higher than what I need, such as 56v-70a 4kw. It is used in many applications for location applications. I can't see any physical impediment to it not being used on a medium sized CNC project.

Now it's time for the questions that come to my mind.

Odrive manages the motor and encoder connections itself. Since the pid cycle ends within the odirve itself, would it be enough to just give it pulse and direction commands? In this scenario, linuxcnc will know the current location from the signals it sends. If there is no error signal from the driver, where it thinks it is will be correct. I don't think I need the "mesa" card for this setup.

Can I use Raspberry Pi's own IO outputs without a MESA card? Or is it possible to use a current PC without a parallel output as a Linuxcnc PC and send commands to a Raspberry Pi via ethernet? Raspberry Pi will drive the io pins with commands from Ethernet. Just like a mesa with an ethernet interface. Is this possible? If we can send packets to an IP address from "linuxcnc" using the ethernet port, there is no reason not to make our own ethernet "mesa" card. For this purpose, cheap alternatives can be used instead of expensive raspberry.
www.crocuspi.com/zero_en.html

The software running on these cards connected to the Ethernet network will only convert incoming data packets into orders to be sent to the io pins. The Linux card with 64MB RAM in the link can do this job very quickly.

If it is possible to communicate with the TCP protocol over Ethernet, I would like to get one of these cheap cards and start working on this subject.
16 Mar 2024 14:36
Replied by PCW on topic EtherCAT on Raspberry Pi 5

EtherCAT on Raspberry Pi 5

Category: EtherCAT

Note that a 35 usec servo thread is no different than a 35 usec
base thread as far as the latency tests go, since the latency
test doesn't actually do anything, it really just tests dispatch latency.
16 Mar 2024 11:17

EtherCAT on Raspberry Pi 5

Category: EtherCAT

I think someone tested one with a 35us (yes 35) (yes us) servo thread.

forum.linuxcnc.org/9-installing-linuxcnc...i-5?start=170#295779
16 Mar 2024 10:26
Replied by andypugh on topic EtherCAT on Raspberry Pi 5

EtherCAT on Raspberry Pi 5

Category: EtherCAT

Does the Pi5 have good enough latency for an 8kHz servo thread? I haven't looked recently.
14 Mar 2024 23:53
Replied by zmrdko on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Nice latency test elovalvo.
Just to rise awareness, isn't here anybody able and willing to modify rpi5 macb driver for EtherCAT?

forum.linuxcnc.org/ethercat/52032-ethercat-on-raspberry-pi-5
14 Mar 2024 20:11
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

It was worth a try.
Often, where multiple kernel versions are in play, I have used 
sudo apt install linux-image-$(uname -r)-rt-arm64 linux-headers-$(uname -r)-rt-arm64
Not sure if Debian knows about your kernel.
14 Mar 2024 14:34
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Looks good. It would be interesting to retry using the debian kernel rather than your compied one and compare latency results. I suspect what you have will be better.sudo apt-install -y linux-image-rt-arm64 linux-headers-rt-arm64

I tried the procedure you suggested but, in addition to the fact that version 6.1.0-18-rt-arm64 is currently available (and therefore not aligned with version 6.6.20+rpt-rpi-2712), the installation reports that these versions of initramfs and kernel are unsupported.
pi@raspberrypi5:~ $ uname -a
Linux raspberrypi5 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
pi@raspberrypi5:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
pi@raspberrypi5:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi5:~ $
pi@raspberrypi5:~ $ sudo apt install -y linux-image-rt-arm64 linux-headers-rt-arm64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-headers-6.1.0-18-common-rt linux-headers-6.1.0-18-rt-arm64 linux-image-6.1.0-18-rt-arm64
  linux-kbuild-6.1
Suggested packages:
  linux-doc-6.1 debian-kernel-handbook
The following NEW packages will be installed:
  linux-headers-6.1.0-18-common-rt linux-headers-6.1.0-18-rt-arm64 linux-headers-rt-arm64
  linux-image-6.1.0-18-rt-arm64 linux-image-rt-arm64 linux-kbuild-6.1
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.8 MB of archives.
After this operation, 405 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 linux-headers-6.1.0-18-common-rt all 6.1.76-1 [8,308 kB]
Get:2 http://archive.raspberrypi.com/debian bookworm/main arm64 linux-kbuild-6.1 arm64 1:6.1.73-1+rpt1 [913 kB]
Get:3 http://deb.debian.org/debian bookworm/main arm64 linux-headers-6.1.0-18-rt-arm64 arm64 6.1.76-1 [1,306 kB]
Get:4 http://deb.debian.org/debian bookworm/main arm64 linux-headers-rt-arm64 arm64 6.1.76-1 [1,408 B]
Get:5 http://deb.debian.org/debian bookworm/main arm64 linux-image-6.1.0-18-rt-arm64 arm64 6.1.76-1 [57.2 MB]
Get:6 http://deb.debian.org/debian bookworm/main arm64 linux-image-rt-arm64 arm64 6.1.76-1 [1,444 B]
Fetched 67.8 MB in 4s (18.5 MB/s)
Selecting previously unselected package linux-headers-6.1.0-18-common-rt.
(Reading database ... 125884 files and directories currently installed.)
Preparing to unpack .../0-linux-headers-6.1.0-18-common-rt_6.1.76-1_all.deb ...
Unpacking linux-headers-6.1.0-18-common-rt (6.1.76-1) ...
Selecting previously unselected package linux-kbuild-6.1.
Preparing to unpack .../1-linux-kbuild-6.1_1%3a6.1.73-1+rpt1_arm64.deb ...
Unpacking linux-kbuild-6.1 (1:6.1.73-1+rpt1) ...
Selecting previously unselected package linux-headers-6.1.0-18-rt-arm64.
Preparing to unpack .../2-linux-headers-6.1.0-18-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-headers-6.1.0-18-rt-arm64 (6.1.76-1) ...
Selecting previously unselected package linux-headers-rt-arm64.
Preparing to unpack .../3-linux-headers-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-headers-rt-arm64 (6.1.76-1) ...
Selecting previously unselected package linux-image-6.1.0-18-rt-arm64.
Preparing to unpack .../4-linux-image-6.1.0-18-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-image-6.1.0-18-rt-arm64 (6.1.76-1) ...
Selecting previously unselected package linux-image-rt-arm64.
Preparing to unpack .../5-linux-image-rt-arm64_6.1.76-1_arm64.deb ...
Unpacking linux-image-rt-arm64 (6.1.76-1) ...
Setting up linux-image-6.1.0-18-rt-arm64 (6.1.76-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-18-rt-arm64
ERROR: Unsupported initramfs version (6.1.0-18-rt-arm64)
/etc/kernel/postinst.d/z50-raspi-firmware:
ERROR: Unsupported kernel version (6.1.0-18-rt-arm64)
Setting up linux-headers-6.1.0-18-common-rt (6.1.76-1) ...
Setting up linux-image-rt-arm64 (6.1.76-1) ...
Setting up linux-kbuild-6.1 (1:6.1.73-1+rpt1) ...
Setting up linux-headers-6.1.0-18-rt-arm64 (6.1.76-1) ...
Setting up linux-headers-rt-arm64 (6.1.76-1) ...
pi@raspberrypi5:~ $
14 Mar 2024 08:51

EtherCAT on Raspberry Pi 5

Category: EtherCAT

Hi,

few weeks ago, I have gotten myself new rpi5, since I liked promised performance leap and preliminary latency tests looked awesome. I wanted to run 8kHz servo thread to match my Delta ASD-B3-E cycle time. Even though the ethernet chips on rpi4 and rpi5 are the same, rpi5 uses different driver - macb.
This means, that for now, you can only use generic ethercat driver, which is only able to run at 1kHz.
To run ethercat on rpi5 at higher rates, we need macb driver ported to ethercat.

So we are looking for someone, who is able and willing to do this. I compared source files for some drivers, which have been already ported with original drivers, and there are not many differences. Mostly some repeating IFs…

Thread link with more details on this issue:
Gitlab
14 Mar 2024 01:50

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Always wonder why you use such a low servo thread, which isn't a real world scenario, and don't show a 1ms servo thread and a base thread.

It would be interesting to see a 1ms servo thread without isolating any cpus. And the aforementioned 1ms servo thread & base thread isolating the required cpus to get a real life scenario. Some users can judge whether it would suit a real life setup without having to go through buying a RPi5, installing Linuxcnc and running the latency tests. Something that would give them confidence in a particular setup.
13 Mar 2024 21:02
Replied by stz60 on topic Update auf 2.9.2

Update auf 2.9.2

Category: Deutsch

LinuxCNC 2.9.2 auf RPi4 (RPi 400) + MESA 7i76e
Nachtrag:

Inzwischen habe ich das Komando <menu-config> gefunden.
Dieses ist im <.img.xz> enthalten und ist vergleichbar mit <raspi-config>.
Somit kann der Abschnitt mit <raspi-config> entfallen.
<menu-config> zeigt nach Beenden einige nützliche Infos an.


cnc@raspberrypi:~$ menu-config
Generating locales (this might take a while)...
de_DE.UTF-8... done
Generation complete.

Current default time zone: 'Europe/Berlin'
Local time is now: Wed Mar 13 00:34:39 CET 2024.
Universal Time is now: Tue Mar 12 23:34:39 UTC 2024.

Debian GNU/Linux 12 (bookworm) 6.1.54-rt15 #1_RT Fri Nov 17 17:02:27 AEST 2023
aarch64
Raspberry Pi 4 Model B Rev 1.5
== DISK
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 28G 3.6G 23G 14% /
/dev/sda1 508M 89M 419M 18% /boot/broadcom

== NETWORK
Hostname: raspberrypi
Wired: eth0 UP 192.168.0.132

== SYSTEM
Processor: Cortex-A72 @ 1800MHz 35.5°C
Online: 0-3
Governor: performance
Memory: 3.7G 482M
Entropy: 256
Uptime: 00:35:27 up 8 min, 1 user, load average: 1.01, 0.98, 0.62

sudo apt update && sudo apt full-upgrade
sudo reboot

Weitere System-Infos kann man mit diesen Komandos erhalten:

uname --help
uname -a
(Kernel-Version)

hostnamectl -h
hostnamectl
(System-Info)

df --help
df -h
(Dateisystem-Info)

lsusb -h
lsusb
(USB-Info)

rpi-eeprom-update
(Liste mit EEPROM-Info)

stz60
12 Mar 2024 22:19
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Looks good. It would be interesting to retry using the debian kernel rather than your compied one and compare latency results. I suspect what you have will be better.sudo apt-install -y linux-image-rt-arm64 linux-headers-rt-arm64
12 Mar 2024 19:47
Replied by elovalvo on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I recently noticed that the Raspbian update on Pi5 installs version 6.6.20+rpt-rpi-2712.

Therefore I thought about updating the PREEMPT_RT version

So I started with a fresh installation of the Raspberry Pi OS 64 bit via Raspberry Pi Imager.
I updated to version 6.6.20 with the usual commands:
sudo apt update
sudo apt upgrade

and I rebooted.

The uname -a command now returns the following indication
Linux raspberrypi5 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/

I then compiled a new version of the Raspbian OS that included the PREEMPT_RT
For convenience I used the procedure here
forums.raspberrypi.com/viewtopic.php?t=343387

The kernel with the PREEMPT_RT is kernel-6.6.21-v8-16k-elv.zip
and can be downloaded from here
drive.google.com/file/d/1FKLQIBdXTh43kjC...48d/view?usp=sharing

To install it, just copy it to /tmp and then run these commands

cd /
sudo unzip /tmp/kernel-6.6.21-v8-16k-elv.zip

overwriting all files with the All option

So I edited the cmdline.txt with
sudo nano "/boot/firmware/cmdline.txt"
adding the following commands to the end of the line
   isolcpus=2.3 rcu_nocbs=2.3 nohz_full=2.3 max.processor.cstate=1
   
At the next reboot the uname -a command reports the following indication
Linux raspberrypi5 6.6.21-rpi999-rpi-2712 #1 SMP PREEMPT_RT Tue Mar 12 15:59:56 CET 2024 aarch64 GNU/Linux
   
To install linuxcnc simply type the following commands
 sudo apt update
 sudo apt install linuxcnc-uspace linuxcnc-uspace-dev

   
However, to date the installed version is the following
   LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
   
If you want version 2.9.2 you can do it this way:
   
cd /tmp
wget linuxcnc.org/dists/bookworm/2.9-uspace/b...pace_2.9.2_arm64.deb
wget linuxcnc.org/dists/bookworm/2.9-uspace/b...-dev_2.9.2_arm64.deb
wget linuxcnc.org/dists/bookworm/2.9-uspace/b...doc-en_2.9.2_all.deb

sudo apt install ./linuxcnc-uspace_2.9.2_arm64.deb
sudo apt install ./linuxcnc-uspace-dev_2.9.2_arm64.deb
sudo apt install ./linuxcnc-doc-en_2.9.2_all.deb


The result of the latency-histogram (latency-histogram --nobase --sbinsize 1000 --show --servo 35000) is however always very interesting
 
For those who do not want to retrace all the steps previously exposed, you can find the ready-made image (Lcnc292_pi5.img) here:
drive.google.com/file/d/1dd8oiYhcs_UComc...fNF/view?usp=sharing
12 Mar 2024 06:59 - 12 Mar 2024 19:50
12 Mar 2024 01:35

Linux CNC Pi Display port support?

Category: Computers and OS's

I would keep with the RPI OS and install Linuxcnc once booted.

Be aware that Linuxcnc does not have support for SPI as of yet, even tho on the downloads page it says is does.

Oh another thing the Linuxcnc image is a debian based image and is a little different to the mainstream Raspbian OS. The config.txt and cmdline.txt are not in the same folder as per a Raspbian image.

You may have to play around with config.txt as I'm not sure if it has the lines to detect an DSI screen connected. This will need to be edited by hand, can't remember exact location so you will have to hunt around in the /boot directory and sub directories.

www.raspberrypi.com/documentation/comput...ays-and-touchscreens
Displaying 136 - 150 out of 975 results.
Time to create page: 1.117 seconds
Powered by Kunena Forum