Advanced Search

Search Results (Searched for: raspberry pi 3)

  • amitsa
  • amitsa's Avatar
14 Aug 2024 19:08
Jogging not working on basic setup was created by amitsa

Jogging not working on basic setup

Category: Basic Configuration

I'm new to LinuxCNC and hobbyist machining.  For some reason, jogging isn't working on my 3 Axis setup. I feel like I'm just missing one critical configuration but can't figure it out.  I got homing to work from the Axis GUI, but jogging doesn't work. 

I've posted my INI files and HAL files.  I've only included X axis configurations for brevity.  Any tips ?

System Details
* Raspberry Pi 5 
* LinuxCNC 2.9.3
  • dave.franchino@gmail.com
  • dave.franchino@gmail.com
14 Aug 2024 18:55
configuring GPIO for a Raspberry Pi 4B was created by dave.franchino@gmail.com

configuring GPIO for a Raspberry Pi 4B

Category: Configuration Tools

Hey kind folks,

I am working to configure a Raspberry pi 4B to run LinuxCNC for a two-axis machine I'm building.  I am using the HAL driver for Raspberrry PI GPIO pins (hal_pi_gpio).

I am proposing to use the following pins:

net Xdir => hal_pi_gpio.pin-15-out
net Xstep => hal_pi_gpio.pin-16-out
net Ydir => hal_pi_gpio.pin-18-out
net Ystep => hal_pi_gpio.pin-22-out

When I start LinuxCNC the HAL file appears to be loading properly.

But if I go to a terminal and say Halcmd show pins  - it appears to be showing my pins configured as INPUTS - not outputs?
(I'm assuming that's what the direction column in the show pins command means).

nc@raspberrypi:~/Desktop$ halcmd show pin
Component Pins:
Owner   Type  Dir         Value  Name
 
    28  bit   IN          FALSE  hal_pi_gpio.pin-15-out <== Xdir
    28  bit   IN          FALSE  hal_pi_gpio.pin-16-out <== Xstep
    28  bit   IN          FALSE  hal_pi_gpio.pin-18-out <== Ydir
    28  bit   IN          FALSE  hal_pi_gpio.pin-22-out <== Ystep

I'm pretty sure I did the math on the mask right although I could be wrong. To confirm, I just tried masking for one output and it still shows up as IN.

The documentation says I should add up the hex values for all pins that should be configured as an output which I think is what I've done.  

Anyone see what I'm missing?  Thanks!!!!

my full .hal file follows:


# Generated by stepconf 1.1 at Fri Nov 17 17:18:50 2023
# If you make changes to this file, they will be
# overwritten when you run stepconf again
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS

# Load the Raspberry Pi GPIO driver
loadrt hal_pi_gpio dir=0x00F00040


loadrt stepgen step_type=0,0


# Add to the base thread

addf hal_pi_gpio.read base-thread  
addf stepgen.make-pulses base-thread
addf hal_pi_gpio.write base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread


# Configure output pins
net Xdir => hal_pi_gpio.pin-15-out
net Xstep => hal_pi_gpio.pin-16-out
net Ydir => hal_pi_gpio.pin-18-out
net Ystep => hal_pi_gpio.pin-22-out


setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 0
setp stepgen.0.dirhold 35000
setp stepgen.0.dirsetup 35000
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
net xenable joint.0.amp-enable-out => stepgen.0.enable

setp stepgen.1.position-scale [JOINT_1]SCALE
setp stepgen.1.steplen 1
setp stepgen.1.stepspace 0
setp stepgen.1.dirhold 35000
setp stepgen.1.dirsetup 35000
setp stepgen.1.maxaccel [JOINT_1]STEPGEN_MAXACCEL
net ypos-cmd joint.1.motor-pos-cmd => stepgen.1.position-cmd
net ypos-fb stepgen.1.position-fb => joint.1.motor-pos-fb
net ystep <= stepgen.1.step
net ydir <= stepgen.1.dir
net yenable joint.1.amp-enable-out => stepgen.1.enable

net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in

loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared


 
  • waukeenahBob
  • waukeenahBob
13 Aug 2024 20:25
MESA 7c81 HELP! was created by waukeenahBob

MESA 7c81 HELP!

Category: Driver Boards

I have a good bit of experience with CNC... built 2 machines in the past... one Mach3 another GRBL.  Long time linux admin.  Have built lots of things with RPI, New to LinuxCNC.

I am refactoring a vertical mill that I converted to CNC and Mach 3 several years ago to use LinuxCNC.  In the past I used a UC ETH-300 which of course is not compatible with LinuxCNC.  So I bought a Mesa 7c81 and an 8gb Raspberry Pi 4.

I have everything connected, Installed LinuxCNC 2.9.2 using the RPI image, have enabled SPI and it appears that I am talking to the Mesa card.
I have a standard chinese BOB connected to port 1 and plan to use ports 2 and 7 for home/limit switches, probe, spindle etc.

Started with pncconf selected my card and the 5ABOB3 firmware, looked up my stepper drivers for time, space, hold etc... 

Cannot figure out the P1, P2, P7 Mesa Card config pages as far as pins goes... expecting to assign pin2 for step X etc...  according to the BOB documentation.
I have assigned the Axis StepGen's to P1 0:, 1:, and 2: just to be able to write the config out.
When I try to test/tune an axis I hear the relay trip on the BOB which is encouraging... and when I try to jog I see the numbers changing on the Hal Meter etc but I get nothing from my steppers... they do feel slightly warm so I believe there is current going to them... but no movement at all

if I try to launch LinuxCNC using the config pncconf created I see some errors come up
"Unexpected realtime delay on task0 with period 70000" and hm2/hm2_7c81.0 Watchdog was bit.

My plan is to get basic stuff working and then add complexity... 

Wondering if anyone has a config they would be willing to share?

Or advice on where to go next... been googling and searching my tail off and figure there is something basic I am missing and once I see it properly configured I will have a big DUH moment :)

Any help would be appreciated!
  • iforce2d
  • iforce2d
13 Aug 2024 09:01

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

Looking good on Pi4 with SPI connection to my Remora-style PRU.
  • rodw
  • rodw's Avatar
12 Aug 2024 12:12

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

The first post has been updated to include images for 2.9.3.
The Pi 5 is tested and working.
Any feedback about the Pi4 would be appreciated
  • rodw
  • rodw's Avatar
12 Aug 2024 12:02

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

updated for Linuxcnc 2.9.3 
Newer kernel 6.6.44
Better screen support for the Pi5
Now includes ethercat repos. Following the sticky in th eethercat section to install/

Pi 5 Image  drive.google.com/file/d/1iwQpbMoNdI6wnv7...MyZ/view?usp=sharing
Pi4 Image  drive.google.com/file/d/1Fg2CPTezUyrRFrO...ytT/view?usp=sharing  
 
  • rodw
  • rodw's Avatar
12 Aug 2024 10:56 - 12 Aug 2024 11:57

Pi4b and Pi5 users - What should go in a 2.9.3 image

Category: Installing LinuxCNC

Apologies for the delay here. I was putting this off in preference to other Linuxcnc projects but its time has come

Pi 5 Image drive.google.com/file/d/1iwQpbMoNdI6wnv7...MyZ/view?usp=sharing
Pi4 Image drive.google.com/file/d/1Fg2CPTezUyrRFrO...ytT/view?usp=sharing 

Kernel 6.6.4 as per the raspberry pi's kernel git
Tested as working by Joco who bought a pi5 yesterday for the occasion!
Monitor support now fixed. He was using a 34" 3440 x 1440 monitor 

Ethercat apt repos now included
QTPYVCP repos a work in progress with the QTPYVCP team now VTK is in the Debian Repos.

There are no added programs, What was suggested was a bit out of left field as none of it was included in our AMD64 build.
Please read the downloads page on how to configure wifi, timezones and locales

 
  • Shemmers
  • Shemmers's Avatar
10 Aug 2024 10:15 - 10 Aug 2024 10:15

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Hi Rodw, Thanks for all the incredible work so far on EtherCAT. I'm diving into both LinuxCNC and EtherCAT right now and excited by the possibilities. 

I ran into the same issues as discussed.  I tried your script on the Rpi 5 and it seemed to connect to their servers but it only seems to have grabbed 733 bytes. I may try some of the other methods mentioned previously.

 

___
System: Raspberry pi 5 + Leadshine EL8 EtherCAT drives
LinuxCNC level: first timer
Linux level: noob noob
  • dave.franchino@gmail.com
  • dave.franchino@gmail.com
09 Aug 2024 20:15
Replied by dave.franchino@gmail.com on topic configuring my GPIO pins to linuxcnc with Raspberry pi 4

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

Rod,

Also a newby here - trying to run LinuxCNC on a Raspberry pi4 and use the GPIO but getting an error that we don't have hal_pi_gpio module. Where do we find this? I've seen reference to this being part of Machinekit. Do we need to replace our existing LinuxCNC install with Machinekit or can we simply install the necessary hal_pi_gpio modules to get the GPIO running with our Pi4?
  • Bari
  • Bari's Avatar
09 Aug 2024 19:07 - 09 Aug 2024 19:11
Replied by Bari on topic Remora for RP2040

Remora for RP2040

Category: Computers and Hardware

$5 Raspberry Pi Pico 2 with RP2350 Microcontroller

linuxgizmos.com/introducing-the-5-raspbe...350-microcontroller/

Now we need them to combine the newer 2350 with the W5500.
  • seyad
  • seyad
09 Aug 2024 09:23 - 09 Aug 2024 09:25
Linuxcnc-panosonic Drive was created by seyad

Linuxcnc-panosonic Drive

Category: EtherCAT

Hi all, 
I am way to learning about linuxcnc  in that i am trying to run lathe.ini with some modification for my drive sets, but its not working.its showing error like joint 1 following error. below i attached my setup files for your reference. Looking forward for solutions.(AC Servo drive(2No's)-MADLN05BE,motor-MHMF5AZL1U2M,and Raspberry pi-5). Linuxcnc build from source file(Run in place)

File Attachment:

File Name: ethercat-c...8-09.xml
File Size:3 KB

File Attachment:

File Name: ethercat2_...8-09.hal
File Size:3 KB

File Attachment:

File Name: lathe2_2024-08-09.ini
File Size:2 KB
  • rodw
  • rodw's Avatar
08 Aug 2024 19:37

Ethercat installation from repositories - how to step by step

Category: EtherCAT

The Raspberry pi images do not include the Ethercat repositories but enabling some commented out code should enable it according to feedback from etherlabmaster
Try running a script something like this
#!/bin/bash
# Install companion repositories. NOTE: QTPYVCP does not support the raspberry pi.
echo "Install ethercat repository"
mkdir -p /usr/local/share/keyrings/
wget -O- https://build.opensuse.org/projects/science:EtherLab/signing_keys/download?kind=gpg | gpg --dearmor | dd of=/etc/apt/trusted.gpg.d/science_EtherLab.gpg
tee -a /etc/apt/sources.list.d/ighvh.sources > /dev/null <<EOT
Types: deb
Signed-By: /etc/apt/trusted.gpg.d/science_EtherLab.gpg
Suites: ./
URIs: http://download.opensuse.org/repositories/science:/EtherLab/Debian_12/
EOT
  • jossen
  • jossen
08 Aug 2024 15:28

[ Vfdmod ] An easy VFD control over MODBUS RTU

Category: HAL

Someone got the Vfdmod package for RaspberryPi? (arm)
Displaying 841 - 855 out of 885 results.
Time to create page: 0.747 seconds
Powered by Kunena Forum