Advanced Search

Search Results (Searched for: raspberry)

23 Oct 2023 17:04
23 Oct 2023 04:49

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

There is a dedicated GPIO driver available in 2.91 linuxcnc.org/docs/devel/html/drivers/hal_pi_gpio.html
The final (I hope) Raspberry Pi image for 2.91 is sitting in my google drive pending release since the weekend just gone:
drive.google.com/file/d/1IhrrdGRNvsdclVi...nUu/view?usp=sharing
Give it a go.
23 Oct 2023 04:28

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

Hi everyone, I'm fairly new to this. You can say I am a noob in Linux.

We want to build a CNC machine for testing stuff. I'll be using nema 23 and 17 motors connected to TB6600 motor drivers as well as limit switches and other components down the line. This will all be connected to a raspberry pi 4 and we want to use the linuxcnc to control the motors and send gcode onto them.

I wanted to know if I would I go about the configurations on my Raspberry pi4 and the components so that the software can recognize these and give them control. i searched that i need to configure or map the GPIO pins in the HAL? any responses would be greatly appreciated. Thanks!
22 Oct 2023 16:18

Installing troubles Rasberry Pi 4 model B 4 GB

Category: Installing LinuxCNC

i flashed the new version onto raspberry and also ran the menu-config tool where is selected a "local" en_US.UTF-8 now i am no longer getting the errors on PNCconf and can configure with it.

Thanks a million rodw

in case any other non linux people want to try, this is what i did to run it. Not sure if there is better way but seem to work for me...

#flash memory card
Download Raspberry PI Imager
Download Linux CNC-Raspberry Image drive.google.com/file/d/1IhrrdGRNvsdclVi...nUu/view?usp=sharing
On Raspberry Pi imager select operating system [other] – the downloaded linuxcnc image file ____.xz
Stick the card in raspberry and start it up

#log in with
User: cnc, Password: cnc

#Open terminal

#Configure WIFI and location/time stuff
sudo menu-config
- Connect to wifi network
- Change host name to cnc001
- local: en_US.UTF-8
- Quit

sudo nano /etc/hosts
- Change hostname to cnc001 [the pc name]
Save[write].Quit

hostnamectl [this check that hosname is updated]

#Run operating system updates
sudo apt update
Note: Do not run upgrade! >> sudo apt upgrade aparently will overwrite some cnc stuff.

#enable remote Desktop
sudo apt install xrdp
hostname -I [display host ip address]
#now you can use windows remote desktop to connect to raspberry]


#configure network wired lan address with static ip address
- still need to figure this out

run linux cnc stuff
- Pncconf
- ....
21 Oct 2023 08:53 - 21 Oct 2023 09:03

Installing troubles Rasberry Pi 4 model B 4 GB

Category: Installing LinuxCNC

Thanks rodw

The image from link burnet successfully using Raspberry pi imager 1.7.5 with zero issues.
On the imager select operating system “Other” and then selected the “rpi-4-debian-bookworm-6.1.54-rt15-arm64-ext4-2023-10-21-0424.img.xz” file.

I’m no Linux expert but on the bootup all the checks was green so that I guess is good
Found the Linux login in other thread User:cnc Password:cnc and log in successfully.
Ran hal/latency test successfully. PS was around max jitter [1ms] 50,000 [25ms] 227,000 until open browser it jumped to 1,800,000 [while it was opening the browser] but then even when watching youtube videos stayed around 1,000,000 + 25,000. New to linuxcnc so will google if that is good or not.
Running in terminal: cat/etc/os-release gives output: Name=Debian GNU/Linux 12 (Bookworm)

Was also able to successfully open the Pncconf tool, and select mesa 7i96s,
Can complete the forms but get error on the screen where you select stepper drivers and calculate sterpper scales.
PNCconfig encountered an error. The following information may be usefull in troubleshooting: ..... [screen shot attached]
“locale.Error: unsupported local setting. Not sure if this is a issue with the build, Pnconfig tool, or me not doing it correctly. 
21 Oct 2023 05:58

RPi4 with 7i96: LinuxCNC wont start

Category: Driver Boards

Incorrect network settings, this:
linuxcnc@raspberrypi:~/mesaflash $ ifconfig -a eth0: flags=4163 mtu 1500 inet 169.254.38.74
should be
linuxcnc@raspberrypi:~/mesaflash $ ifconfig -a eth0: flags=4163 mtu 1500 inet 10.10.10.11
Search for "network setup for mesa cards".
Also, do not use MesaFlash unless explicitly needing firmware flash or reading HMID info.
21 Oct 2023 04:27 - 21 Oct 2023 04:54

RPi4 with 7i96: LinuxCNC wont start

Category: Driver Boards

Hi Friends, 

I am having an issue getting LCNC to start on my new RPi4 with the mesa 7i96s.  I set the jumpers to W4 up and W5 down which should have set the ip to 10.10.10.10 (i think) and have the mesa card connected to a 5v PSU and the pi via ethernet. 

After running a basic setup through PNCconf Wizard I tried open LinuxCNC and get the below error (I will move to the pi and edit/reply to this post with exact output)

hm2_eth : ERROR: could not retrieve hardware address (MAC): of 10.10.10.10: Resources temporarily unavailable Below is the exact output copied and pasted:
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.0~pre0 Machine configuration directory is '/home/linuxcnc/linuxcnc/configs/WorkBeeCutter' Machine configuration file is 'WorkBeeCutter.ini' INIFILE=/home/linuxcnc/linuxcnc/configs/WorkBeeCutter/WorkBeeCutter.ini VERSION=1.1 PARAMETER_FILE=linuxcnc.var TPMOD= HOMEMOD= TASK=milltask HALUI=halui DISPLAY=gmoccapy COORDINATES=XYZ KINEMATICS=trivkins coordinates=XYZ Starting LinuxCNC... Starting LinuxCNC server program: linuxcncsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting LinuxCNC IO program: io Starting HAL User Interface program: halui linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod Found file(REL): ./WorkBeeCutter.hal Shutting down and cleaning up LinuxCNC... Running HAL shutdown script hm2: loading Mesa HostMot2 driver version 0.15 hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2 hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 10.10.10.10: Resource temporarily unavailable hm2: unloading Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Debug file information: Note: Using POSIX realtime hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11) ./WorkBeeCutter.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth ./WorkBeeCutter.hal:9: /usr/bin/rtapi_app exited without becoming ready ./WorkBeeCutter.hal:9: insmod for hm2_eth failed, returned -1 11230 Stopping realtime threads Unloading hal components Note: Using POSIX realtime

Here's what i've tried:
I am able to ping 10.10.10.10 and get the following output, which tells me that the IP should be set correctly
--- 10.10.10.10 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9015ms rtt min/avg/max/mdev = 16.609/22.012/57.478/11.908 ms

from other similar threads on here i also ran 
ifconfig -a

and got this output
linuxcnc@raspberrypi:~/mesaflash $ ifconfig -a eth0: flags=4163 mtu 1500 inet 169.254.38.74 netmask 255.255.0.0 broadcast 169.254.255.255 inet6 fe80::a998:e092:b503:7931 prefixlen 64 scopeid 0x20 ether d8:3a:dd:75:c3:aa txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 867 bytes 155099 (151.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 35 bytes 3266 (3.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 35 bytes 3266 (3.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163 mtu 1500 inet 192.168.0.60 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 2600:8800:520a:5b00:5a60:c90a:ef25:a812 prefixlen 64 scopeid 0x0 inet6 fe80::bb7:c629:94:de1c prefixlen 64 scopeid 0x20 ether d8:3a:dd:75:c3:ab txqueuelen 1000 (Ethernet) RX packets 43364 bytes 41763515 (39.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 28694 bytes 4055965 (3.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0



I saw an ip in there that i didn't recognize and tried to put that in my .hal file but to no avail. 

The next thing i tried was to use mesaflash and i got it all installed but wasn't able to find the device. 

I have a feeling its an easy fix but i am just a little over my ski's here. attached is my .hal file as well. (once i move to the pi)

also unsure if this is related but after running the pncconf wizard I have two folders that have the exact same files one is in the Linuxcnc folder(and based on the error logs it looks like thats the one its using) and the other on my desktop, am i good to delete the des ktop repository?
Any help is appreciated
James

File Attachment:

File Name: WorkBeeCutter.hal
File Size:10 KB
21 Oct 2023 00:57 - 21 Oct 2023 09:54

Installing troubles Rasberry Pi 4 model B 4 GB

Category: Installing LinuxCNC

Please try this version that runs Debian 12.2 and Linuxcnc 2.9
drive.google.com/file/d/1IhrrdGRNvsdclVi...nUu/view?usp=sharing
I just finished this this morning and It is the final version that will be uploaded to the Linuxcnc site for the Version 2.91 release that is pending.

Also note these comments I just made about it forum.linuxcnc.org/9-installing-linuxcnc...-400?start=10#283403




 
21 Oct 2023 00:49

Debian 12 - 2.10 master branch image for the Raspberry Pi 4b/400

Category: Installing LinuxCNC

Please download this version of the Rpi image 
drive.google.com/file/d/10lxh9Icf07pw9ki.../view?usp=share_link
This should be the final version that goes into the 2.9.1 release of linuxcnc
Because Andy has built the 2.9.1 debs, we use those instead of building from source and the image size has shrunk to 1.2 Gb!
New in this release are repositories for ethercat including the hal driver. 

To install ethercat and the hal driver (I hope):
sudo apt install ethercat-master libethercat-dev linuxcnc-ethercat
Then follow the sticky in the ethercat section to complete installation
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step

I'd love to hear feedback on the ethercat installation. I dopn't have a working pin anymore.

I can't include QTPYVCP repositories as they don't publish debs for the Raspberry Pi.
20 Oct 2023 16:05 - 20 Oct 2023 16:06

Installing troubles Rasberry Pi 4 model B 4 GB

Category: Installing LinuxCNC

Hi Jeffy,

Did you manage to figure out how to get it working?
This morning i also got my raspberry PI4B 4GB + Mesa 7i96S delivered and when trying to install get same error:
start4.elf: is not compatible
This board required newer software.

i downloaded from linuxcnc.org/downloads/ LinuxCNC 2.8.1 Raspberry Pi OS based on Debian 10 Buster and used Raspberry Pi Imager V1.7.5 to write image to card.

writing the stock images selected on the pi imager, the PI boots up ok but when loading the "Pi OS based on Debian 10 Buster" "2021-01-20-linuxcnc-pi4.img" file get error .
16 Oct 2023 19:19

LitexCNC: firmware and driver for 5A-75B and 5A-75E

Category: Driver Boards

In a previous  topic  firmware and driver has been developed for the 5A-75B and the 5A-75E, originally by the user Romanetz. Based this work I created a generic CNC firmware and driver for FPGA cards which are supported by LiteX, hence the name Litex-CNC . Configuration of the board and driver is done using json-files. The supported boards are the Colorlight boards 5A-75B and 5A-75E, as these are fully supported with the open source toolchain.

Installation
At this moment, version 1.0.2 has been released on pypi.org . You can install using pip:pip install litexcnc[cli]

NOTE: Suffix 

[cli]
 required!
The suffix 
[cli]
 is required to install the command-line interface. Without this suffix the scripts referenced below will not work.

After installation of LitexCNC the following scripts are available to the user:litexcnc install_driver
litexcnc install_litex
litexcnc install_toolchain
litexcnc build_driverFor a full overview on how to use the commands, please refer to the  documentation .

Supported modules
Currently the following modules are supported:
  • GPIO
  • Stepgen
  • PWM / PDM
  • Encoders
The platform can be extended by creating more modules. These modules can be maintained outside the LitexCNC main branch, meaning external parties can also contribute, or make specific modules aimed at their machines.

Future developments
At this moment the connection between the PC running LinuxCNC and the 5A-75X is done by Ethernet. Specifically for the Raspberry Pi currently a connection over SPI has been developed. This feature is still experimental and requires installation from source.If you want to try it, please let me know and I'll guide you through the installation. This feature will be released as soon as it has been tested further with my other development: the HUB75HAT (more details will follow).

Modules are relatively easy to create. Please post ideas for new modules in the GitHub discussions for future expansion of the possibilities.

Need help?
Feel free to drop a message on this forum, or start a new  in the GitHub discussions .

 
13 Oct 2023 18:07

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I decided to try to install Raspberry Pi OS 64 bit, so Debian 12, and try to install the latest realtime kernel, which turned not to be that difficult when I found the correct resources.
All went well and I installed the Remora-nv component. Did a ping to the NVEM with the following result
64 bytes from 10.10.10.10: icmp_seq=35 ttl=255 time=0.169 ms
64 bytes from 10.10.10.10: icmp_seq=36 ttl=255 time=0.174 ms
64 bytes from 10.10.10.10: icmp_seq=37 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=38 ttl=255 time=0.167 ms
64 bytes from 10.10.10.10: icmp_seq=39 ttl=255 time=0.185 ms
64 bytes from 10.10.10.10: icmp_seq=40 ttl=255 time=0.158 ms
64 bytes from 10.10.10.10: icmp_seq=41 ttl=255 time=0.173 ms
64 bytes from 10.10.10.10: icmp_seq=42 ttl=255 time=0.178 ms
64 bytes from 10.10.10.10: icmp_seq=43 ttl=255 time=0.151 ms
64 bytes from 10.10.10.10: icmp_seq=44 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=45 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=46 ttl=255 time=0.150 ms
64 bytes from 10.10.10.10: icmp_seq=47 ttl=255 time=0.208 ms
64 bytes from 10.10.10.10: icmp_seq=48 ttl=255 time=0.171 ms
64 bytes from 10.10.10.10: icmp_seq=49 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=50 ttl=255 time=0.168 ms
64 bytes from 10.10.10.10: icmp_seq=51 ttl=255 time=0.183 ms
64 bytes from 10.10.10.10: icmp_seq=52 ttl=255 time=0.164 ms

So a lot better than before!

Started LinuxCNC. "Following error"...

I'm not the kind that gives up easily, but this is getting seriously annoying. I'm trying to read up on how to set up PID controller in LinuxCNC, but like everything else in Linux, it's all greek to me [img]/media/kunena/emoticons/dizzy.png[/img]
 

Uhm, pass...? I was given the advice to add PGAIN, but I might have misinterpreted that as adding PID parameters to the joints in the ini-file.
13 Oct 2023 17:24

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I decided to try to install Raspberry Pi OS 64 bit, so Debian 12, and try to install the latest realtime kernel, which turned not to be that difficult when I found the correct resources.
All went well and I installed the Remora-nv component. Did a ping to the NVEM with the following result
64 bytes from 10.10.10.10: icmp_seq=35 ttl=255 time=0.169 ms
64 bytes from 10.10.10.10: icmp_seq=36 ttl=255 time=0.174 ms
64 bytes from 10.10.10.10: icmp_seq=37 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=38 ttl=255 time=0.167 ms
64 bytes from 10.10.10.10: icmp_seq=39 ttl=255 time=0.185 ms
64 bytes from 10.10.10.10: icmp_seq=40 ttl=255 time=0.158 ms
64 bytes from 10.10.10.10: icmp_seq=41 ttl=255 time=0.173 ms
64 bytes from 10.10.10.10: icmp_seq=42 ttl=255 time=0.178 ms
64 bytes from 10.10.10.10: icmp_seq=43 ttl=255 time=0.151 ms
64 bytes from 10.10.10.10: icmp_seq=44 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=45 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=46 ttl=255 time=0.150 ms
64 bytes from 10.10.10.10: icmp_seq=47 ttl=255 time=0.208 ms
64 bytes from 10.10.10.10: icmp_seq=48 ttl=255 time=0.171 ms
64 bytes from 10.10.10.10: icmp_seq=49 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=50 ttl=255 time=0.168 ms
64 bytes from 10.10.10.10: icmp_seq=51 ttl=255 time=0.183 ms
64 bytes from 10.10.10.10: icmp_seq=52 ttl=255 time=0.164 ms

So a lot better than before!

Started LinuxCNC. "Following error"...

I'm not the kind that gives up easily, but this is getting seriously annoying. I'm trying to read up on how to set up PID controller in LinuxCNC, but like everything else in Linux, it's all greek to me [img]/media/kunena/emoticons/dizzy.png[/img]

Which PID Controller?
13 Oct 2023 16:06

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I decided to try to install Raspberry Pi OS 64 bit, so Debian 12, and try to install the latest realtime kernel, which turned not to be that difficult when I found the correct resources.
All went well and I installed the Remora-nv component. Did a ping to the NVEM with the following result
64 bytes from 10.10.10.10: icmp_seq=35 ttl=255 time=0.169 ms
64 bytes from 10.10.10.10: icmp_seq=36 ttl=255 time=0.174 ms
64 bytes from 10.10.10.10: icmp_seq=37 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=38 ttl=255 time=0.167 ms
64 bytes from 10.10.10.10: icmp_seq=39 ttl=255 time=0.185 ms
64 bytes from 10.10.10.10: icmp_seq=40 ttl=255 time=0.158 ms
64 bytes from 10.10.10.10: icmp_seq=41 ttl=255 time=0.173 ms
64 bytes from 10.10.10.10: icmp_seq=42 ttl=255 time=0.178 ms
64 bytes from 10.10.10.10: icmp_seq=43 ttl=255 time=0.151 ms
64 bytes from 10.10.10.10: icmp_seq=44 ttl=255 time=0.160 ms
64 bytes from 10.10.10.10: icmp_seq=45 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=46 ttl=255 time=0.150 ms
64 bytes from 10.10.10.10: icmp_seq=47 ttl=255 time=0.208 ms
64 bytes from 10.10.10.10: icmp_seq=48 ttl=255 time=0.171 ms
64 bytes from 10.10.10.10: icmp_seq=49 ttl=255 time=0.164 ms
64 bytes from 10.10.10.10: icmp_seq=50 ttl=255 time=0.168 ms
64 bytes from 10.10.10.10: icmp_seq=51 ttl=255 time=0.183 ms
64 bytes from 10.10.10.10: icmp_seq=52 ttl=255 time=0.164 ms

So a lot better than before!

Started LinuxCNC. "Following error"...

I'm not the kind that gives up easily, but this is getting seriously annoying. I'm trying to read up on how to set up PID controller in LinuxCNC, but like everything else in Linux, it's all greek to me
13 Oct 2023 12:03

lcec_conf: ERROR: couldn't allocate user/RT shared memory

Category: EtherCAT

I have placed the two compiled deb files at mirrors.geekros.com/pool/main/focal/. They are linuxcnc-ethercat-dbgsym_0.9.4_arm64.deb and linuxcnc-ethercat_0.9.4_arm64.deb. You can directly download them and migrate to your own software repository if needed.

I haven't tested it on the Raspberry Pi yet. Below is the information of my current device, which in theory should be universally compatible.
root@armcnc:~# uname -a
Linux armcnc 4.14.87 #5 SMP PREEMPT RT Wed Sep 13 15:15:26 CST 2023 aarch64 GNU/Linux
root@armcnc:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
Displaying 1006 - 1020 out of 1062 results.
Time to create page: 1.244 seconds
Powered by Kunena Forum