Advanced Search

Search Results (Searched for: raspberry)

29 Jun 2024 17:13
Replied by andypugh on topic Raspberry Pi Mesa 7C81

Raspberry Pi Mesa 7C81

Category: Installing LinuxCNC

Have you followed the instructions for the hm2_* driver that you are using?

And is it linuxcnc.org/docs/stable/html/man/man9/hm2_rpspi.9.html

or
linuxcnc.org/docs/stable/html/man/man9/hm2_spi.9.html

( I don't know which is expected to work best on the pi4)
29 Jun 2024 16:27
Raspberry Pi Mesa 7C81 was created by Limo

Raspberry Pi Mesa 7C81

Category: Installing LinuxCNC

Hello,
I have a problem on how to enable SPI on my PI4. I have used the   Raspberry Pi 4 OS based on Debian Bookworm  Image and now I am stuck. I already have installed mesa flash and try to see if can see my Mesacard with mesaflash but that only gives me the message: No 7C81 board found. 
Thanks in advance.
29 Jun 2024 09:36
Replied by andypugh on topic CNC lathe help

CNC lathe help

Category: Turning

USB to Serial isn't relevant here. I think that plug is intended for transferring G-code to the controller, not for machine control.

USB to parallel won't work either.

Do you have a PC with a physical parallel port? (some have one as headers on the motherboard, but don't connect it to the rear panel)

You could also consider using a Raspberry Pi 4 (not 5 at the moment) but there isn't a config wizard for the Pi GPIO pins.
28 Jun 2024 21:41
Replied by cjacappella on topic CNC lathe help

CNC lathe help

Category: Turning

The attached picture shows a usb to serielport plug with the capabilites to connect diferent pins together. Will this plug comunicate with the linux cnc program to run the cnc  lathe to  make a cutting path for wood turning?
The  below information is from the manufacture of this plug. Thanks CJ Cappella

                                                                      Seriel  to usb cable information from manufactureThis USB cable allows a computer or Raspberry Pi to connect directly to an industrial CNC controller. The circuit inside mimics a RS232 serial port, so the computer software can utilize a standard COM port.Standard off the shelf serial cables will generally not work with industrial CNC machines because there are pins that need to be connected together on the DB25 connector. Custom cables can be purchased, or you can make your own. This USB to serial cable makes it easy to add the connections using internal switches that can be configured to your CNC controllers settings, rather than soldering wires together.
27 Jun 2024 05:50

Preparing native Raspberry Pi OS for LinuxCNC

Category: Installing LinuxCNC

with su you are required to have\know the root password.
sudo only requires you to know your root password.

Latency can be improved by adding isolcpus=2,3 to the kernel command line.The location of the file that needs to be edited is under different directories of /boot depending if you use a pre made Linuxcnc image or install on top of a Raspberry Pi Foundation image. With the RPi Foundation images I use rasp-config to switch from wayland to X11.

I'm not sure what the exact figures are for mesa hardware stepping are but they are way more then you would ever need/find a stepper driver that could use a pulse train that quick.

Be wary of the DIY projects, they are excellent, but sometimes assembling all the hardware required for voltage level translation, coping with differential signals for encoders can come close to Mesa hardware. If you have experience in this field it can be done, I've been down that track, adjusting Mesa source code to suit a dev board and then designing hardware to suit and getting PCBs made then patching Linuxcnc drivers to work with my DIY stuff.

With regards to the latency tests with hardware stepping the constraints aren't so tight, but there is an upper limit.

If I was to try software stepping my list of candidates would be(also some notes on usable interfaces for the RPi models):
1. An x86 system, 4 core if possible with a RT_PREEMPT kernel, for 2 cores maybe a RTAI kernel. (A PC and a parallel port card can be cheaper than an RPi)
2. A RPi5 as this is overall a faster product than the RPi4, but it wont support hardware stepping via SPI. TLDR; the Linuxcnc driver to access the SPI at the hardware level needs a rewrite. Ethernet hasn't been seen to be a problem.
4. A RPi4 (or even better because of a slightly faster clock an RP-400) but don't expect the the machine to excite the world. Spi interface is an option as is Ethernet is also fine for mesa boards.

Be aware that some DIY SPI based options require a servo & base thread, whereas the 7c81,7c80 & 7i90 do not.
27 Jun 2024 04:19

Preparing native Raspberry Pi OS for LinuxCNC

Category: Installing LinuxCNC

2024/06/27
re raspberry pi and software stepping:

There are two ways to install LinuxCNC discussed in this thread.

The first is to use an ISO image mentioned in the official getting started guide.
Te second way is to the old a system as described by user aso_tm.

The iso solution users wayland and has no screen capture or synaptic
and makes installing synaptic difficult
Also most LinuxCNC apps appear several times in the menus.
All together, these features made me want to build the system.

The second method (ago_tm)
requires additional flags this true the apt install commands
to overcome not trusted sources errors.
Also, gebrated debs involve permission problems
for some me user who is neither me nor wrote.
Beware that the 'copy me' aid copies the $ prompt too.
Getting the build to complete requires several restarts
The first start will show you the error
and the second will hopefully will succeed after modification.
The changes will be to the last line of the copied multiline command.

But, the bottom line is...
neither solution will give you reasonable software stepping
due to huge latencies, between 3 and 7mS (yes mS)
Using latency-histogram --no-base
with 10 glxgears abd 1 youtube vid
OR one VLC vid. ( similar to ago_tm's testing)

So the raspberry pi( my version for) he's not suited to software stepping
and the contributors to this thread suggest using a hardware step generator.

I ask:
1) iI a hardware step generator is used
are latency test meaningless?
Do those tests identify no constraints on the control system?

2) What steps per second can be acgieved?
( my case would be for an rpi4B 4G)

Thanks tjtr33 / tomp

written with nerd-dictation
huh
26 Jun 2024 09:09 - 26 Jun 2024 09:09

EOI in getting SPI going on the RPi5

Category: Computers and Hardware

Just looked at that earlier repo
forum.linuxcnc.org/18-computer/51748-eoi...-rpi5?start=0#294929
That appears to be the same raspberry pi kernel and branch I compile for the images on the downloads page.
So does that mean the Pi5 has had SPI support all along?
25 Jun 2024 16:35

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

Another note if you want\need to run Axis you’ll want to use raspi-config to change from wayland to x11. Or anything that depends on the X11 libs, I found the way land compatibility layer really really slow.
25 Jun 2024 15:48 - 25 Jun 2024 16:05

EOI in getting SPI going on the RPi5

Category: Computers and Hardware

Has anyone tried the hal_gpio driver on Pi5? (I don't think that I have)


The latest version of LinuxCNC 2.9.2 you can find here
forum.linuxcnc.org/9-installing-linuxcnc...pi-5?start=40#303752
keeps giving these errors:
pi@raspberrypi:~ $ halrun -I
halcmd: loadrt hal_pi_gpio
Note: Using POSIX realtime
Raspberry Pi 5 Model B Rev 1.0 found
The Pi model 23 is not known to work with this driver but will be assumed to be be using the RPi2+ layout 40 pin connector
HAL_PI_GPIO: can't open /dev/gpiomem:  2 - No such file or directory
If the error is 'permission denied' then try adding the user who runs
LinuxCNC to the gpio group: sudo gpasswd -a username gpio
HAL_PI_GPIO: can't open /dev/mem:  13 - Permission denied
hal_pi_gpio: rtapi_app_main: Operation not permitted (-1)
<stdin>:1: waitpid failed /usr/bin/rtapi_app hal_pi_gpio
<stdin>:1: /usr/bin/rtapi_app exited without becoming ready
<stdin>:1: insmod for hal_pi_gpio failed, returned -1
halcmd:

Instead the hal_gpio module show this
pi@raspberrypi:~ $ halrun -I
halcmd: loadrt hal_gpio inputs=GPIO6,GPIO12,GPIO13,GPIO16,GPIO17,GPIO18,GPIO19 \
halcmd+: outputs=GPIO20,GPIO21,GPIO22,GPIO23,GPIO24,GPIO25,GPIO26,GPIO27 \
halcmd+:  invert=GPIO20,GPIO27 \
halcmd+:   reset=GPIO21,GPIO22
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     4  bit   OUT         FALSE  hal_gpio.GPIO12-in
     4  bit   OUT         FALSE  hal_gpio.GPIO12-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO13-in
     4  bit   OUT         FALSE  hal_gpio.GPIO13-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO16-in
     4  bit   OUT         FALSE  hal_gpio.GPIO16-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO17-in
     4  bit   OUT         FALSE  hal_gpio.GPIO17-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO19-in
     4  bit   OUT         FALSE  hal_gpio.GPIO19-in-not
     4  bit   IN          FALSE  hal_gpio.GPIO20-out
     4  bit   IN          FALSE  hal_gpio.GPIO21-out
     4  bit   IN          FALSE  hal_gpio.GPIO22-out
     4  bit   IN          FALSE  hal_gpio.GPIO23-out
     4  bit   IN          FALSE  hal_gpio.GPIO24-out
     4  bit   IN          FALSE  hal_gpio.GPIO25-out
     4  bit   IN          FALSE  hal_gpio.GPIO26-out
     4  bit   IN          FALSE  hal_gpio.GPIO27-out
     4  bit   OUT         FALSE  hal_gpio.GPIO6-in
     4  bit   OUT         FALSE  hal_gpio.GPIO6-in-not
     4  s32   OUT             0  hal_gpio.read.time
     4  s32   OUT             0  hal_gpio.reset.time
     4  s32   OUT             0  hal_gpio.write.time

halcmd:
25 Jun 2024 14:37

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

alright, awesome thank you!

question, your previous images had the rt already installed, is there some limitation to why they arent this time, or is it so you can hit update before loading the kernel?

I chose this procedure because it allows you to choose the best Raspbian configuration (user, password, ssh, wifi, locales, etc..), to update an already existing version, to install the version of LinuxCNC of your choice and other alternatives.

However, for those who don't want to, in these links there are the ready-to-user images with LinuxCNC 2.9.2
(user:pi  pwd:raspberry)

OS: Linux raspberrypi 6.6.32-rpi999-rpi-v8 #1 SMP PREEMPT_RT Mon Jun 24 15:56:31 CEST 2024 aarch64
( image_lcnc_pi4.zip )

OS: Linux raspberrypi 6.6.32-rpi999-rpi-2712 #2 SMP PREEMPT_RT Sun Jun  9 10:10:54 CEST 2024 aarch64
( image_lcnc_pi5.zip )
 
25 Jun 2024 01:43

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

With either cable connected, either way around, finger stressing the connection at the 7i96 socket interrupts packets.
The same stressing at the RPi socket is reliable.

I'm a little confused, If this is the case (clearly a hardware problem) , why are you looking for software solutions?
25 Jun 2024 00:12

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

There is no network symbol anywhere, and I have searched.

I will later connect the RPi to the WiFi extender via ethernet and see if I can install Network Manager.

I am quite unsure about IP addressing.
The /8 mask and gateway entry are as returned from Terminal commands, and what I gleaned searching the Forum.

I will try the workshop desktop connected to the Mesa in 6 hours time, busy during the day.

My records seem to show the LC2.9.2 image was flashed to the SD card with RPi Imager.
I tried Balena Etcher, but couldn't get it to work.
I will do another SD card with a fresh download and RPi Imager to confirm.

rodw
Are you saying the RPi4 itself needs an update ?

Cold start in workshop, 15 degrees.
Changed W5 and W6 to default 192.168.1.121.
Used menu-config to remove gateway and change address to match.

ping results:
- 123 packets 0% loss,
- 391 packets 73 % loss.

John.
24 Jun 2024 23:10

Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

Category: Installing LinuxCNC

alright, awesome thank you!

question, your previous images had the rt already installed, is there some limitation to why they arent this time, or is it so you can hit update before loading the kernel?
24 Jun 2024 20:17

Mesa 7i96 Ethernet Socket Problems - LC2.9.2 on Raspberry Pi 4B

Category: Driver Boards

This may not help but try downloading the latest version of rpi imager and using it to update the Pi's firmware.
Some of the older Pi 4B's require this.
24 Jun 2024 15:49
Replied by jimmyrig on topic LinuxCNC vs Klipper

LinuxCNC vs Klipper

Category: General LinuxCNC Questions

So many questions.....

Why ros? Linuxcnc can do everything (robot and tape dispenser) and takes a few days to setup at most ...
imo ros is not very good.... So clumsy and bloated.... Takes forever to get anything done.... Seems faster to just code things from scratch....But maybe my brain is too smooth to understand it.

Imo if you are using it industrially use linuxcnc with a mesa board (7i96s prob) or a PLC. If it's for fun use whatever you want (klipper, rasp pi, 3x printer boards, etc). Raspberry pis are typically not as reliable as a PC with a mesa board.
Displaying 286 - 300 out of 953 results.
Time to create page: 0.616 seconds
Powered by Kunena Forum