Advanced Search

Search Results (Searched for: raspberry pi 3)

  • NT4Boy
  • NT4Boy
02 Jun 2025 12:35
Replied by NT4Boy on topic HURCO KMB-1 Control Update

HURCO KMB-1 Control Update

Category: Milling Machines

I think this is a raspberry PI issue as there is no fast sample rate option in the halscope.
Hopefully won't affect what I am doing, other than spoil my pictures.
  • Hypnotoad
  • Hypnotoad
01 Jun 2025 16:35

Confused about how to set up Probe Basic on a Raspberry Pi

Category: QtPyVCP

I have a working configuration with LinuxCNC using AXIS and would like to try switching to Probe Basic.  I've gone thru the Pncconf trying to create a Probe Basic configuration and it seems to require configuration of Mesa cards which I don't have.  I'm using direct GPIO into a Rpi hat, which isn't directly supported from the standard stepconf tool either, but I was hoping to do what I did with stepconf -- make a config that assumes normal Linux parallel port configuration, and then modify that to use the Rpi GPIO HAL.

I saw a reference to a Probe Basic sim configuration in another thread with the suggestion that someone with a working normal stepconf config could look at the Probe Basic sim config and see what modifications need to be made.  But I can't find that sim config.

Could someone point me in the right direction?
  • tommylight
  • tommylight's Avatar
27 May 2025 20:50
Replied by tommylight on topic Up grading Debian 12 rt

Up grading Debian 12 rt

Category: General LinuxCNC Questions

How am I running a raspberry pi all of a sudden?

You are not, it is a remnance of a Debian f@kup that is still dragging on.

Is it possible to install a nvidia graphics card and still use Linuxcnc?

Most probably not, proprietary NVIDIA drivers did not work at all on RT-Preempt kernel last i tried over a year ago.
You are welcomed, always.
  • aaron
  • aaron
27 May 2025 20:09
Replied by aaron on topic Up grading Debian 12 rt

Up grading Debian 12 rt

Category: General LinuxCNC Questions

Thank you for this. That did the trick, but I have a couple of questions.
How am I running a raspberry pi all of a sudden?
And
Is it possible to install a nvidia graphics card and still use Linuxcnc?
Thanks again
Aaron
  • MRTtechnology
  • MRTtechnology's Avatar
27 May 2025 17:56
Replied by MRTtechnology on topic 7i97T+7i74+7i84+7i73

7i97T+7i74+7i84+7i73

Category: Driver Boards

with this firware which version of linuxcnc works. does it work on raspberry PI?
Estou a usar linuxcnc 2.9.1 e Raspberry Pi 4 8g
  • AndyCNC
  • AndyCNC
26 May 2025 06:47
Replied by AndyCNC on topic Not able to get outputs on GPIO of Raspberry5

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Thanks. When I use the naming in the linked config instead of the naming from docu it works!
I can see dir and step signals now on the correct pins.
One last problem before I can test with the machine. I use an enable signal for the stepper driver. I see it on the pin, but inverted. Is there a possibility to invert output pins at raspberry pi 5 or should I better do it in hardware?
  • unknown
  • unknown
26 May 2025 01:02
Replied by unknown on topic Not able to get outputs on GPIO of Raspberry5

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Link to manpage
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html

First hint is here:
The GPIO line PIN3 can not be found.

PIN3 isn't a name of a pin, pins are named as per man page.
  • unknown
  • unknown
25 May 2025 23:08
Replied by unknown on topic Not able to get outputs on GPIO of Raspberry5

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

forum.linuxcnc.org/38-general-linuxcnc-q...official-images-only

Index to major thread, there's a section regarding your query with an example for a simple 3 axis machine that works.
  • AndyCNC
  • AndyCNC
25 May 2025 16:56
Replied by AndyCNC on topic Not able to get outputs on GPIO of Raspberry5

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Thanks for your fast reply.
That's the output of "gpioinfo", looks ok for me:
[color=#55ff55][b]cnc@fraese[/b][/color]:[color=#5555ff][b]~[/b][/color]$ gpioinfo
gpiochip0 - 54 lines:
	line   0:     "ID_SDA"       unused   input  active-high 
	line   1:     "ID_SCL"       unused   input  active-high 
	line   2:      "GPIO2"       unused   input  active-high 
	line   3:      "GPIO3"       unused   input  active-high 
	line   4:      "GPIO4"       unused   input  active-high 
	line   5:      "GPIO5"       unused   input  active-high 
	line   6:      "GPIO6"       unused   input  active-high 
	line   7:      "GPIO7"   "spi0 CS1"  output   active-low [used]
	line   8:      "GPIO8"   "spi0 CS0"  output   active-low [used]
	line   9:      "GPIO9"       unused   input  active-high 
	line  10:     "GPIO10"       unused   input  active-high 
	line  11:     "GPIO11"       unused   input  active-high 
	line  12:     "GPIO12"       unused   input  active-high 
	line  13:     "GPIO13"       unused   input  active-high 
	line  14:     "GPIO14"       unused   input  active-high 
	line  15:     "GPIO15"       unused   input  active-high 
	line  16:     "GPIO16"       unused   input  active-high 
	line  17:     "GPIO17"       unused   input  active-high 
	line  18:     "GPIO18"       unused   input  active-high 
	line  19:     "GPIO19"       unused   input  active-high 
	line  20:     "GPIO20"       unused   input  active-high 
	line  21:     "GPIO21"       unused   input  active-high 
	line  22:     "GPIO22"       unused   input  active-high 
	line  23:     "GPIO23"       unused   input  active-high 
	line  24:     "GPIO24"       unused   input  active-high 
	line  25:     "GPIO25"       unused   input  active-high 
	line  26:     "GPIO26"       unused   input  active-high 
	line  27:     "GPIO27"       unused   input  active-high 
	line  28: "PCIE_RP1_WAKE" unused input active-high 
	line  29:   "FAN_TACH"       unused   input  active-high 
	line  30:   "HOST_SDA"       unused   input  active-high 
	line  31:   "HOST_SCL"       unused   input  active-high 
	line  32:  "ETH_RST_N"  "phy-reset"  output   active-low [used]
	line  33:          "-"       unused   input  active-high 
	line  34: "CD0_IO0_MICCLK" "cam0_reg" output active-high [used]
	line  35: "CD0_IO0_MICDAT0" unused input active-high 
	line  36: "RP1_PCIE_CLKREQ_N" unused input active-high 
	line  37:          "-"       unused   input  active-high 
	line  38:    "CD0_SDA"       unused   input  active-high 
	line  39:    "CD0_SCL"       unused   input  active-high 
	line  40:    "CD1_SDA"       unused   input  active-high 
	line  41:    "CD1_SCL"       unused   input  active-high 
	line  42: "USB_VBUS_EN" unused output active-high 
	line  43:   "USB_OC_N"       unused   input  active-high 
	line  44: "RP1_STAT_LED" "PWR" output active-low [used]
	line  45:    "FAN_PWM"       unused  output  active-high 
	line  46: "CD1_IO0_MICCLK" "cam1_reg" output active-high [used]
	line  47:  "2712_WAKE"       unused   input  active-high 
	line  48: "CD1_IO1_MICDAT1" unused input active-high 
	line  49: "EN_MAX_USB_CUR" unused output active-high 
	line  50:          "-"       unused   input  active-high 
	line  51:          "-"       unused   input  active-high 
	line  52:          "-"       unused   input  active-high 
	line  53:          "-"       unused   input  active-high 
gpiochip10 - 32 lines:
	line   0:          "-"       unused   input  active-high 
	line   1: "2712_BOOT_CS_N" "spi10 CS0" output active-low [used]
	line   2: "2712_BOOT_MISO" unused input active-high 
	line   3: "2712_BOOT_MOSI" unused input active-high 
	line   4: "2712_BOOT_SCLK" unused input active-high 
	line   5:          "-"       unused   input  active-high 
	line   6:          "-"       unused   input  active-high 
	line   7:          "-"       unused   input  active-high 
	line   8:          "-"       unused   input  active-high 
	line   9:          "-"       unused   input  active-high 
	line  10:          "-"       unused   input  active-high 
	line  11:          "-"       unused   input  active-high 
	line  12:          "-"       unused   input  active-high 
	line  13:          "-"       unused   input  active-high 
	line  14:   "PCIE_SDA"       unused   input  active-high 
	line  15:   "PCIE_SCL"       unused   input  active-high 
	line  16:          "-"       unused   input  active-high 
	line  17:          "-"       unused   input  active-high 
	line  18:          "-"       unused   input  active-high 
	line  19:          "-"       unused   input  active-high 
	line  20:   "PWR_GPIO" "pwr_button"   input   active-low [used]
	line  21: "2712_G21_FS" unused input active-high 
	line  22:          "-"       unused   input  active-high 
	line  23:          "-"       unused   input  active-high 
	line  24:     "BT_RTS"       unused   input  active-high 
	line  25:     "BT_CTS"       unused   input  active-high 
	line  26:     "BT_TXD"       unused   input  active-high 
	line  27:     "BT_RXD"       unused   input  active-high 
	line  28:      "WL_ON"  "wl_on_reg"  output  active-high [used]
	line  29:      "BT_ON"   "shutdown"  output  active-high [used]
	line  30: "WIFI_SDIO_CLK" unused input active-high 
	line  31: "WIFI_SDIO_CMD" unused input active-high 
gpiochip11 - 15 lines:
	line   0:    "RP1_SDA"       unused   input  active-high 
	line   1:    "RP1_SCL"       unused   input  active-high 
	line   2:    "RP1_RUN" "RP1 RUN pin" output active-high [used]
	line   3: "SD_IOVDD_SEL" "vdd-sd-io" output active-high [used]
	line   4:  "SD_PWR_ON" "sd_vcc_reg"  output  active-high [used]
	line   5:  "SD_CDET_N"         "cd"   input   active-low [used]
	line   6:   "SD_FLG_N"       unused   input  active-high 
	line   7:          "-"       unused   input  active-high 
	line   8:  "2712_WAKE"       unused   input  active-high 
	line   9: "2712_STAT_LED" "ACT" output active-low [used]
	line  10:          "-"       unused   input  active-high 
	line  11:          "-"       unused   input  active-high 
	line  12:   "PMIC_INT"       unused   input  active-high 
	line  13: "UART_TX_FS"       unused   input  active-high 
	line  14: "UART_RX_FS"       unused   input  active-high 
gpiochip12 - 6 lines:
	line   0:  "HDMI0_SCL"       unused   input  active-high 
	line   1:  "HDMI0_SDA"       unused   input  active-high 
	line   2:  "HDMI1_SCL"       unused   input  active-high 
	line   3:  "HDMI1_SDA"       unused   input  active-high 
	line   4:   "PMIC_SCL"       unused   input  active-high 
	line   5:   "PMIC_SDA"       unused   input  active-high 
gpiochip13 - 4 lines:
	line   0: "WIFI_SDIO_D0" unused input active-high 
	line   1: "WIFI_SDIO_D1" unused input active-high 
	line   2: "WIFI_SDIO_D2" unused input active-high 
	line   3: "WIFI_SDIO_D3" unused input active-high 

And group "dialout" seems to fit also:
[color=#55ff55][b]cnc@fraese[/b][/color]:[color=#5555ff][b]~[/b][/color]$ groups cnc
cnc : cnc tty disk dialout sudo audio video plugdev users input render netdev i2c bluetooth gpio spi
[color=#55ff55][b]cnc@fraese[/b][/color]:[color=#5555ff][b]~[/b][/color]$ 
  • andypugh
  • andypugh's Avatar
25 May 2025 15:54
Replied by andypugh on topic Not able to get outputs on GPIO of Raspberry5

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Have you run the "gpioinfo" command? That will list the available pins. If it doesn't work that may mean that you don't have gpiod installed.

Is your user account a member of the "dialout" group?

forums.raspberrypi.com/viewtopic.php?t=225274
  • AndyCNC
  • AndyCNC
25 May 2025 15:49

Not able to get outputs on GPIO of Raspberry5

Category: Installing LinuxCNC

Hi,
I'm a bit desperate. I want to replace my very old pc based linuxcnc with the actual version running on a raspberry pi 5.
I've been trying to get signals to the pin header for a day now.
First of all: Is there a tutorial for raspberry configuration? I found nothing except the general docu and then went from one error message to another.
What I did is:
1. Started Stepconf wizard
2. Replaced parallel port Pins with hal_gpioxxx, see attached hal file

File Attachment:

File Name: AndyCNC.hal
File Size:3 KB

When I start this Setup following error occurs:  

File Attachment:

File Name: linuxcnc_report.txt
File Size:6 KB


This was my try to set the PINs:
halcmd: loadrt hal_gpio inputs=PIN3,PIN5,PIN7 outputs=PIN5,PIN6,PIN9,PIN10,PIN11,PIN17,PIN22,PIN27
Note: Using POSIX realtime
The GPIO line PIN3 can not be found
hal_gpio: rtapi_app_main: Operation not permitted (-1)
<stdin>:12: waitpid failed /usr/bin/rtapi_app hal_gpio
<stdin>:12: /usr/bin/rtapi_app exited without becoming ready
<stdin>:12: insmod for hal_gpio failed, returned -1
halcmd: Note: Using POSIX realtime

Would be nice if onyone could show my where I'm wrong.

Andy

 
  • mikereid0817
  • mikereid0817
21 May 2025 21:06

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

Thanks, Andy, you steered me in the right direction.

GPIO13 would not work at all, continuing to research that.

GPIO25, once pullup=GPIO25 was added, works.

I only have 1 limit switch setup, so I'm fully functional with the official image, Byte2Bot board, and my old Probotix motor driver setup.  Attached are the .hal and .ini files that worked, and my config.txt

 

File Attachment:

File Name: cncrouter.hal
File Size:3 KB

File Attachment:

File Name: cncrouter.ini
File Size:3 KB

File Attachment:

File Name: config.txt
File Size:3 KB
  • andypugh
  • andypugh's Avatar
20 May 2025 11:27

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

Hi Andy... I am muddling my way through this and have things working really well, except inputs. Gpio reads gpio13 fine in python, hal_gpio always shows high in hal scope, meter etc. Any ideas? Is there a way to set gpio characteristics with hal?
 

You can try setting the various modifiers for GPIO13 and see if that helps.
opendrain
opensource
biasdisable
pulldown
pullup
As described in linuxcnc.org/docs/devel/html/drivers/hal_gpio.html#_usage

I am not clear if you are saying that it is always set and the input can not be changed, even if pulled low?

Have you checked with gpioinfo that nothing is claiming the pin?
 
  • unknown
  • unknown
20 May 2025 06:50
Replied by unknown on topic Important Info Regarding Rpi4/5 Images.

Important Info Regarding Rpi4/5 Images.

Category: Computers and Hardware

For the Linuxcnc Raspberry Pi images just don't do dist-upgrade, it will break things, this has been proven.

You get get away without doing any kind of upgrade.

If you are worried about security, updates are only a small part of the picture. The first step should always be physical security, which should be the number one priority with a computer running a cnc machine.I'd take data loss over damage to a cnc machine any day of the week, you can't back up a cnc machine.
  • unknown
  • unknown
20 May 2025 02:23

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

If you want help, you will have to upload your hal & ini files, otherwise no one knows exactly what you are doing.
Displaying 226 - 240 out of 807 results.
Time to create page: 0.894 seconds
Powered by Kunena Forum