Advanced Search

Search Results (Searched for: raspberry)

29 Nov 2023 02:22 - 29 Nov 2023 02:28

In using ECR60+NPN(GPIO), I encountered an issue.

Category: EtherCAT

I'll provide a detailed explanation of some of the things I'm currently working on and the issues I've encountered:

1、Python is not used for real-time processing tasks. Its role is solely to read and invoke relevant APIs from the LinuxCNC Python module, as I have rewritten the GUI using HTML.



2、I use the ECR60 to drive stepper motors, and I haven't connected the NPN limit switches to the ECR60's IO; instead, I've connected them to the GPIO pins on the Raspberry Pi.

3、To display the position information of each axis in the HTML GUI and the calculation formula for tool position simulation, here are the details:
actual_position[i] - g5x_offset[i] - tool_offset[i] - g92_offset[i]

Based on the above situation, the motor control and the triggering of the NPN limit switches are working perfectly fine. The axis position information obtained during normal machining processes is accurate. Now, the issues I am encountering are as follows:

1、After triggering the NPN limit switches, the motors rotate as expected, but there is no change in the data for actual_position. This results in a lack of synchronization in the axis position information and tool position simulation displayed in the HTML GUI.

I also tried some experiments based on your feedback:

1、I compiled a component named "armcnc_home" following the documentation (linuxcnc.org/docs/devel/html/man/man9/homecomp.9.html) and made relevant configurations in the INI and HAL files, but it seems like it didn't provide any effective assistance:

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.000
BASE_PERIOD = 200000
SERVO_PERIOD = 1000000
HOMEMOD = armcnc_home
#*******************
#  AXIS X
#*******************

setp cia402.0.csp-mode 1
setp cia402.0.pos-scale 10000

net x-statusword      lcec.0.0.cia-statusword  => cia402.0.statusword
net x-opmode-display  lcec.0.0.opmode-display  => cia402.0.opmode-display
net x-drv-act-pos     lcec.0.0.actual-position => cia402.0.drv-actual-position
net x-drv-act-velo    lcec.0.0.actual-velocity => cia402.0.drv-actual-velocity

net x-enable     <= joint.0.amp-enable-out => cia402.0.enable
net x-amp-fault  => joint.0.amp-fault-in <= cia402.0.drv-fault
net x-pos-cmd    <= joint.0.motor-pos-cmd => cia402.0.pos-cmd
net x-pos-fb     => joint.0.motor-pos-fb <= cia402.0.pos-fb

net x-controlword         cia402.0.controlword         => lcec.0.0.cia-controlword
net x-modes-of-operation  cia402.0.opmode              => lcec.0.0.opmode
net x-drv-target-pos      cia402.0.drv-target-position => lcec.0.0.target-position
net x-drv-target-velo     cia402.0.drv-target-velocity => lcec.0.0.target-velocity

net debounce-home-x debounce.1.0.in <= armcncio.gpio.x-home
net both-home-x debounce.1.0.out
net both-home-x => joint.0.home-sw-in
net both-home-x => joint.0.neg-lim-sw-in
net both-home-x => joint.0.pos-lim-sw-in

# Here are the two added configurations:
net x-request-custom-homing <= joint.0.request-custom-homing
net x-is-custom-homing => joint.0.is-custom-homing

2、After triggering the NPN limit switches, during the homing process, I observed that the data from the "LinuxCNC Python module" API, including "joint," "joint_actual_position," and "joint_position," are continuously changing in real-time. I was considering using these values for synchronizing the axis position information and tool position simulation in the HTML GUI. However, I've noticed that after each LinuxCNC restart, the values of "joint.ferror_highmark," "joint_actual_position," and "joint_position" become extremely large. I believe that my idea of using these values for synchronization in the HTML GUI is not correct.

3、The values of "actual_position" only change after the homing process has been completed.

After these few days of tinkering, things seem to have become more complicated, and my goal is simply to ensure that the correct axis position information is displayed in the HTML GUI during the homing process. I appreciate the discussions and support you've provided regarding my issue, but I've only been working with LinuxCNC for three months, and my understanding of LinuxCNC is still at a shallow level. Therefore, I'm currently struggling to pinpoint where the problem might be occurring.


Thank you very much.

 
28 Nov 2023 11:19

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

Category: Installing LinuxCNC

I think many posts in this thread are completely unrelated to the topic I started it with.
My idea was to compare the performance of the Raspbian Bookworm (and not the Debian) on Pi4 and Pi5....

ITs difficult for users to compare the products until they have a robust installation method for the pi5. But it has been reported latency is much improved.
28 Nov 2023 11:15

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

Category: Installing LinuxCNC

I think many posts in this thread are completely unrelated to the topic I started it with.
My idea was to compare the performance of the Raspbian Bookworm (and not the Debian) on Pi4 and Pi5....
28 Nov 2023 01:31

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

Category: Installing LinuxCNC

Andy tested this image for the Pi5 and found it worked ok except image colour depth was lacking.
drive.google.com/file/d/1H_q0Ra-27ZDOhqu...x1f/view?usp=sharing
This is just a variation of whats on the Downloads page for the 4b
27 Nov 2023 19:24

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

Category: Installing LinuxCNC

Hello,

I'm sorry but I didn't understand, how to install in a simple way this last version of linuxcnc on raspberry pi4 with last version of the real time kernel .

can someone help me?

Thanks
27 Nov 2023 09:47
27 Nov 2023 04:12

Raspberry Pi 4 performance plus 7i76E

Category: General LinuxCNC Questions

I'm new to LinuxCNC I've installed the canned 2.9.1 on an RPi 4 8GB and got it to ping the 7i76E.  Then I ran the Latensy Test page and I've attached a screen shot of the page after running for about 20 minutes with no additional load.  According to pages I've seen as far as latensy test is concern the numbers that RPi 4 latensy test show is not a good candidate for any serious stepping and micro-stepping.  Since I'm pairing the RPi 4 with a hardware step generator like the 7i76E, should I just ignore the latensy test?
26 Nov 2023 21:42

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

Even from the original githubConfig Menu
  • Review the userdata.txt file for further options: locales, timezone, nameserver(s) and extra wireless support
  • 1 active | 0 inactive
Name: # Your name
Username: # Your username
Password: # Your password
Enable root: # Set root password to `toor`

Linux kernel
Branch: # Supported: 6.1.y and above
Build: # Kernel build version number
Menuconfig: # Kernel menuconfig
Compiler: # GNU Compiler Collection / Clang
Ccache: # Compiler cache

Distribution
Distro: # Supported: debian, devuan and ubuntu
Release: # Debian: bullseye, bookworm, testing, unstable and sid
# Devuan: chimaera, daedalus, excalibur, testing, unstable and ceres
# Ubuntu: focal, jammy, kinetic and lunar
NetworkManager # 1 networkmanager | 0 ifupdown

Customize
Defconfig: # User defconfig
Name: # Name of _defconfig (Must be placed in defconfig dir.)

User options
Verbosity: # Verbose
Devel Rootfs: # Developer rootfs tarball
Compress img: # Auto compress img > img.xz
User scripts: # Review the README in the files/userscripts directory
User service: # Create user during first boot (bypass the user information above)
26 Nov 2023 21:37

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

started with
make make kernel board=bcm2711


 
26 Nov 2023 21:05

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

Had it on for a few hours now, seems to work! Throws an error about long delays but not enough to desync everything and everything keeps working without any noticeable problems.
Many thanks for the help once again!
...I might have pushed my prototype 3d-printed mounts a bit too hard...
26 Nov 2023 18:58

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

I can't remember is there an option to run menuconfig ?

Just found it......
MENUCONFIG="0" set this to 1 in userdata.txt and make the changes in menuconfig.

Not the same.
the installed image includes the command menu-config.
Confusing I know.

 
 
26 Nov 2023 12:03

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

It was even easier than that. I needed to press spacebar when selecting en_US.. I had just highlighted it and pressed enter.
Now the changes pulled through and after a reboot I could finish PnCConf.
LinuxCNC has now been running stable for ~10 minutes which is a lot more than before.

I will leave it on for some hours and see if it continues behaving.
26 Nov 2023 11:46

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

I can't remember is there an option to run menuconfig ?

Just found it......
MENUCONFIG="0" set this to 1 in userdata.txt and make the changes in menuconfig.
26 Nov 2023 11:31

Issues with Raspberry Pi4 and Mesa 7i96

Category: PnCConf Wizard

Doing a full reinstall with the image from rodw's link.
-Pi imager says it's written successfully and ejects card.
-Raspberry boots up nicely.
-I run 'sudo menu-config':
I set ip to 10.10.10.100 and I set gateway to 10.10.10.1
I change keyboard to swedish layout.
Timezone to stockholm
Locale to en-US.
Then quit the config and restart pi.

Timezone works, keyboard works and IP seems to work, I can ping the Mesa card.
PnCConf refuses to work because locale is unsupported.
I doublecheck locale in terminal with 'locale' and 'localectl'(I have no idea if there's a difference).

localectl says "System Locale: (unset)".
locale says everything is "C.UTF-8" except "language=" and "LC_ALL=" which are empty.

It seems to me that the locale setting in menu-config does not work?
I got around this previously with some command but can't find it again, so now I'm stuck at not being able to use PnCConf.
Displaying 916 - 930 out of 953 results.
Time to create page: 1.133 seconds
Powered by Kunena Forum