Advanced Search

Search Results (Searched for: raspberry pi 3)

30 Oct 2024 00:09

Installing LinuxCNC 2.9 on Raspberry Pi 4B with Preempt-RT kernel

Category: Installing LinuxCNC

First of all, my deepest deepest sympathies,sorry to hear you live in Melbourne, the only good thing Victoria has to other is Philip Island and the roads, airports and docks that lead out of the state.

Why aren't you using the premade image for your RPi ?

The links are on the Linuxcnc home page under downloads.
29 Oct 2024 18:52 - 29 Oct 2024 18:56

For Sale Mesa 7i92 + MX4660 & Mesa 7C80 + RPI 4

Category: User Exchange

@ccatlett1984 That was a bit of a pain to do, I would not recommend unless you have experience soldering and particularly desoldering.
I removed the factory Raspberry Pi two row header and soldered on a new stackable female header in it's place from the bottom. A
good tip to help with factory header removal is to pry off the plastic and desolder each pin one by one.

I want to say the exact part I used was a Pololu 2749, but check the dimensions of the header to be sure.

File Attachment:


Thread update: MX4660 is gone, Thread can be locked no items remain.
28 Oct 2024 05:56

Installing LinuxCNC 2.9 on Raspberry Pi 4B with Preempt-RT kernel

Category: Installing LinuxCNC

Hi,

Thank you Alan for the original instructions, I have learned a lot from this post in the three days.

-- I got stuck: my kernel is SMP PREEMPT rather than SMP PREEMPT_RT.

I am Be Hai from Melbourne, Australia. I would like to learn LinuxCNC. Presently I know nothing about CNC or LinuxCNC.

I am a computer programmer. I am familar with Linux, and a tiny bit familar with Raspberry Pi 4 Model B: I have been learning basic physical computing with it, using the Python language.

I have spent more than a week learning about LinuxCNC, particularly how to install it onto a Raspberry Pi 4 Model B.

I spent the last three days exercising the instructions kindly posted by Alan.

⓵ I am using a clean and fresh Ubuntu 24.04.1 LTS (Noble Numbat) machine to do the build.

( I first started with Ubuntu 22.10 (Kinetic Kudu) and I went nowhere with this EOL version. )

⓶ The command

```
make RASPIOS_IMAGE_NAME=raspios_full_arm64
```

produces raspios_lite_arm64-Pi5.zip. I burnt this image into my Pi 4 anyway. And I have managed to get as far as to section 2.6 Install Mesaflash. There are error in between but I managed to find solutions for them.

LinuxCNC was installed, but I could not run it since there was no desktop.

⓷ Based on the instruction given in github.com/remusmp/rpi-rt-kernel

I replaced ```make RASPIOS_IMAGE_NAME=raspios_full_arm64``` with:

```
sudo make Pi4
```

This command produces raspios_lite_arm64-Pi4.zip. Applying this image, the kernel information reports only SMP PREEMPT:

```
uname -a
```

Output:

```
Linux picnc 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
```

```
cat /proc/version
```

Output:

```
Linux version 6.6.31+rpt-rpi-v8 (This email address is being protected from spambots. You need JavaScript enabled to view it.) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29)
```

⓸ Interestingly, if I use 'Raspberry Pi OS (other)' from Raspberry Pi Imager as shown:



Then select:

```
Raspberry Pi OS Full (64-bit)
A port of Debian Bookworm with desktop environment and recommended applications.
Released: 2024-07-04
Online - 2.8 GB download
```



I also have the exact same kernel, but also with the desktop.

I am taking a break... I will try again to get RT going.

Thank you.

...behai.
27 Oct 2024 22:40 - 27 Oct 2024 22:47

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I need help about downloading config.txt to nvem v5.
I succeeded in downloading renoma nvem-rt1050 throw MCUXpresso IDE. 
and received ping from nvem like below. 
[code]cnc@raspberrypi:~/linuxcnc/configs/remora-nvem-basic$ ping 10.10.10.10
PING 10.10.10.10 (10.10.10.10) 56(84) bytes of data.
64 bytes from 10.10.10.10: icmp_seq=1 ttl=255 time=0.443 ms
64 bytes from 10.10.10.10: icmp_seq=2 ttl=255 time=0.143 ms
64 bytes from 10.10.10.10: icmp_seq=3 ttl=255 time=0.141 ms
^C
--- 10.10.10.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2029ms
rtt min/avg/max/mdev = 0.141/0.242/0.443/0.141 ms

However, if I try to send config.txt, a timeout occurs.
[code]cnc@raspberrypi:~/linuxcnc/configs/remora-nvem-basic$ python3 upload_config.py  config.txt
Valid JSON config file, uploading to Novusun board
Config file length (words) = 134
Config file length (bytes) = 535
Remainder = 3
Padding added =  [0]
Config file length with padding (bytes) = 536
CRC-32 = 0x2bf84f80
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
resending last packet
Resending packet WRQ packet: filename = config mode = octet on sessions <tftpy.TftpStates.TftpStateSentWRQ object at 0x7fa39536d0>
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
resending last packet
Resending packet WRQ packet: filename = config mode = octet on sessions <tftpy.TftpStates.TftpStateSentWRQ object at 0x7fa39536d0>
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
Traceback (most recent call last):
  File "/home/cnc/.local/lib/python3.11/site-packages/tftpy/TftpContexts.py", line 171, in cycle
    (buffer, (raddress, rport)) = self.sock.recvfrom(MAX_BLKSIZE)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cnc/linuxcnc/configs/remora-nvem-basic/upload_config.py", line 72, in <module>
    client.upload("config", "/tmp/config.txt", timeout=30)
  File "/home/cnc/.local/lib/python3.11/site-packages/tftpy/TftpClient.py", line 101, in upload
    self.context.start()
  File "/home/cnc/.local/lib/python3.11/site-packages/tftpy/TftpContexts.py", line 325, in start
    self.cycle()
  File "/home/cnc/.local/lib/python3.11/site-packages/tftpy/TftpContexts.py", line 174, in cycle
    raise TftpTimeout("Timed-out waiting for traffic")
tftpy.TftpShared.TftpTimeout: Timed-out waiting for traffic

As I see the letters in the temianl as below, I think the firmware was well put, but I don't know why it's not working. 

  [/code][/code]
24 Oct 2024 21:32

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Raspberry Pi 5 support

As you may have seen in the rp1lib thread, I've been working on RPi 5 SPI support for LinuxCNC. It's ready for some testing and feedback!

github.com/scottalford75/Remora/tree/mai...omponents/Remora-spi

This version of the Remora component will detect which Raspberry Pi version it is running on and load the appropriate SPI and GPIO drivers, BCM2835 or rp1lib.

For the Raspberry Pi 5 there is future features that will need to be added to the loadrt command line:
  1. The RPi 5 has 5 SPI instances available on the header
  2. Each SPI instance has a choice of 2 - 4 chip select GPIO pins
  3. Different method to configure frequency
For those that wish to test, remember this is a Beta version. Bugs may still be present.
 
24 Oct 2024 17:54 - 24 Oct 2024 17:59

Fanuc Servos Single Phase

Category: Computers and Hardware

Hello everyone.
I am in the early stages of undertaking a CNC conversion on a manual lathe.
I have a Raspberry Pi 5 with Linux CNC installed, I have a pair of Fanuc servos with matching amplifiers removed from a suitably sized lathe and a manual lathe running it’s original 3 phase motor via a Jaguar VFD on a single phase UK supply.
I am quite familiar with motor control but servos are new to me, my question is would it be possible to run my servos/amplifiers on single phase?
I am aware of rotary phase converters but there must be other options, what type of servo are other people using?
The spindle motor is 3hp so that gives you an idea of the size of the lathe.
Thanks in advance.
22 Oct 2024 20:39

10" 1024 x 600 display with touchscreen

Category: Basic Configuration

Hi,
I intend to use Linuxcnc on a Raspberry PI 4 together with a 10" display 1024 x 600 with touchscreen.
Did anyone tried this already?  And which GUI would you recommend ?
22 Oct 2024 15:01 - 22 Oct 2024 15:11

How to use QStyleSheet with actionButtons?

Category: Qtvcp

I'm trying to create custom qui with QtDesigner.
I have an interesting problem with actionButton.
I added an actionButton to my MainWidget,and set Action > Machine Control > Home
So far everything worked as it should.. I pressed the button and it started to homing...
After that I wanted to add color change to my Home button with sytlesheet
ActionButton[isHomed=false]{
background-color: rgb(61, 56, 70);
}
ActionButton[isHomed=true]{
background-color: rgb(51, 209, 122);
}



I tried both isHomed,isAllHomed,is_homed_status and is_joint_homed_status...

Also I tried for estop button, machine on button... All the same...
The button action worked but the stylesheet not worked.

My QtDesigner version is 5.15.8, linuxcnc 2.9.3, and working on raspberry pi5 ....

And here is the xml code part of actionButton...
               <widget class="ActionButton" name="actionbutton_8">
                <property name="minimumSize">
                 <size>
                  <width>80</width>
                  <height>80</height>
                 </size>
                </property>
                <property name="maximumSize">
                 <size>
                  <width>80</width>
                  <height>80</height>
                 </size>
                </property>
                <property name="styleSheet">
                 <string notr="true">ActionButton[isHomed=false]{
background-color: rgb(61, 56, 70);
}
ActionButton[isHomed=true]{
background-color: rgb(51, 209, 122);
}</string>
                </property>
                <property name="text">
                 <string/>
                </property>
                <property name="icon">
                 <iconset resource="../../../linuxcnc/configs/my-mill/gui/resource.qrc">
                  <normaloff>:/iconlar/pngIconlar/home.png</normaloff>:/iconlar/pngIconlar/home.png</iconset>
                </property>
                <property name="iconSize">
                 <size>
                  <width>60</width>
                  <height>60</height>
                 </size>
                </property>
                <property name="checkable">
                 <bool>false</bool>
                </property>
                <property name="indicator_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="indicator_HAL_pin_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="indicator_status_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="checked_state_text_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="python_command_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="on_color" stdset="0">
                 <color>
                  <red>255</red>
                  <green>0</green>
                  <blue>0</blue>
                 </color>
                </property>
                <property name="shape_option" stdset="0">
                 <number>2</number>
                </property>
                <property name="off_color" stdset="0">
                 <color>
                  <red>0</red>
                  <green>0</green>
                  <blue>0</blue>
                 </color>
                </property>
                <property name="indicator_size" stdset="0">
                 <double>0.300000000000000</double>
                </property>
                <property name="circle_diameter" stdset="0">
                 <number>10</number>
                </property>
                <property name="right_edge_offset" stdset="0">
                 <number>0</number>
                </property>
                <property name="top_edge_offset" stdset="0">
                 <number>0</number>
                </property>
                <property name="corner_radius" stdset="0">
                 <double>5.000000000000000</double>
                </property>
                <property name="height_fraction" stdset="0">
                 <double>0.300000000000000</double>
                </property>
                <property name="width_fraction" stdset="0">
                 <double>0.900000000000000</double>
                </property>
                <property name="true_state_string" stdset="0">
                 <string>True</string>
                </property>
                <property name="false_state_string" stdset="0">
                 <string>False</string>
                </property>
                <property name="true_python_cmd_string" stdset="0">
                 <string>print(&quot;true command&quot;)</string>
                </property>
                <property name="false_python_cmd_string" stdset="0">
                 <string>print(&quot;false command&quot;)</string>
                </property>
                <property name="invert_the_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_paused_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_estopped_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_on_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_idle_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_homed_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_flood_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_mist_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_block_delete_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_optional_stop_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_joint_homed_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_limits_overridden_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_manual_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_mdi_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_auto_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_spindle_stopped_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_spindle_fwd_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="is_spindle_rev_status" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="joint_number_status" stdset="0">
                 <number>0</number>
                </property>
                <property name="isHomed" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="isAllHomed" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="home_action" stdset="0">
                 <bool>true</bool>
                </property>
                <property name="template_label_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="joint_number" stdset="0">
                 <number>-1</number>
                </property>
                <property name="incr_imperial_number" stdset="0">
                 <double>0.010000000000000</double>
                </property>
                <property name="incr_mm_number" stdset="0">
                 <double>0.025000000000000</double>
                </property>
                <property name="incr_angular_number" stdset="0">
                 <double>-1.000000000000000</double>
                </property>
                <property name="toggle_float_option" stdset="0">
                 <bool>false</bool>
                </property>
                <property name="float_num" stdset="0">
                 <double>0.300000000000000</double>
                </property>
                <property name="float_alt_num" stdset="0">
                 <double>50.000000000000000</double>
                </property>
                <property name="view_type_string" stdset="0">
                 <string>P</string>
                </property>
                <property name="command_text_string" stdset="0">
                 <string/>
                </property>
                <property name="ini_mdi_number" stdset="0">
                 <number>0</number>
                </property>
                <property name="textTemplate" stdset="0">
                 <string>%1.3f in</string>
                </property>
                <property name="alt_textTemplate" stdset="0">
                 <string>%1.2f mm</string>
                </property>
               </widget>
20 Oct 2024 05:23

rp1lib - user space driver for the RP1 chip

Category: Computers and Hardware

Why rp1lib? Why not rp5lib?

It's what the new chip is called that controls the IO on the Rpi5

www.raspberrypi.com/news/rp1-the-silicon...ere-at-raspberry-pi/
19 Oct 2024 23:59

rp1lib - user space driver for the RP1 chip

Category: Computers and Hardware

People may have been wondering why I have been a little quiet on the forum of late and that pull requests to Remora have been slow to be merged. Well, I've been working away on getting SPI on the Raspberry Pi 5 working so that we can support the SPI version of Remora. I'm now happy to share where things are up to.

github.com/scottalford75/rp1lib

The BCM2835 library was the inspiration, a library that gave access to all the chip peripherals. Hopefully the rp1lib can become the start of something similar.

Rather than reinventing the wheel, the library utilises the gpiochip_rp1 library for GPIO and I've adapted the kernel Designware driver for user space.

Next step is to update the Remora component, which is not too far off as I've got the RPi version detection working already.
19 Oct 2024 09:20 - 19 Oct 2024 13:33

Beckhoff components crasht Linuxcnc

Category: EtherCAT

 Hello I've been trying to get the Beckhoff components to start for a few days, with very little success.What I did was set up the Raspberry 5, installed Ethercat and made my first attempts with the components.What components: EC AC Servo, EK1100 (cheap on eBay) EL1008 (also cheap)Connected:Servo slave0EK1100 Slave1Only the servo then starts my Linux configuration with various lcec pinsAs soon as the Beckhoff comes into play, it crashes.I made a test xml, can someone tell me if the structure is correct? I don't really know if the various values ​​are correct 
error fixed

File Attachment:

File Name: Test.xml
File Size:1 KB
 I've attached the files, I used the lathe.iniThanks

File Attachment:

File Name: Error_Lcec.txt
File Size:0 KB

File Attachment:

File Name: ethercat.hal
File Size:0 KB

File Attachment:

File Name: ethercat-conf.xml
File Size:2 KB
18 Oct 2024 22:32

Performance issues after switching from LCNC 2.8.4 Buster to 2.9.3 Bookworm

Category: EtherCAT

Thanks Rod, I find it rather unfortunate that somebody like you does not seem be offered write access to the 'official' install documentation. The pull request process is so sluggish that by the time new install docs might actually make it through they're already outdated.

I have tried to keep my doc current but I have not installed on a problem PC for quite a while. It has been suggested the install ISO should install the R8168 driver as it should not get in the road. Not sure on that. (I built the ISO and the Pi images for Linuxcnc).

At one stage I was asked to edit the getting Linuxcnc docs and it included most of my documentation notes you refer to. This was accepted and was published in the 2.9 docs. However, when 2.9.1 was released, this was all blown away and replaced with content based on 2.8 docs.

I think there should be a new document added that might be called something like "System Optimisation for Linuxcnc", perhaps a seperate doc for the raspberry Pi it links to. If somebody was to have a go at that from my material, I would not have a problem. Asciidoc and I are not good friends.
I almost know enough about git to be trusted with write access... but time is an issue
17 Oct 2024 16:44
Replied by Krister on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hi One problem solved and one remain ,I replaced the analog optical sensor to a "digital" one and the revolution meter start to work . the reading is ok and the reading is controled with a speedometer. the other problem is the red and green LED weryfing to start the process from the G-code program  G97 S600 M3 The program start at 150 rpm and the red LED starts at 350 rev, it is mirror action , it should start at ca 450 and stopp at ca 700 revs ,it is programd with 150 % tolerans .  
16 Oct 2024 12:52

How to enable serial communication on raspberry pi5?

Category: Computers and Hardware

This is a very quick self answered question but hope to help anyone who needs serial communication with gpio pins....
menu-config
> Kernel
adding a new line to the end
dtoverlay=uart0
then the port becames active( dev/ttyAMA0)
16 Oct 2024 12:41

How to enable serial communication on raspberry pi5?

Category: Computers and Hardware

Hello. I'm using raspberry pi5 4GB with "LinuxCNC 2.9.2 Ra spberry Pi 5 OS based on Debian Bookworm ".

I have been googling but couldnt make it.

Can anyone help me for using serial port pins (GPIO14 and GPIO15) for serial communication with raspberry?
Displaying 46 - 60 out of 944 results.
Time to create page: 0.983 seconds
Powered by Kunena Forum