Advanced Search

Search Results (Searched for: raspberry)

  • behai
  • behai
14 Dec 2024 00:07
Replied by behai on topic Mesa firmware versions and updating

Mesa firmware versions and updating

Category: Driver Boards

Hi Behai. I purchased a couple of these cards from the US. I built a CNC around this card and a raspberry pi five. If you want to chat about it, I’m at the top of the South Island.
 

Hi @RNZ,

Thank you very much for the offer. I appreciate that... I know nothing about CNC. I am learning at the moment.

I am learning HAL :) I have been a run-of-a-mill computer programmer, conceptually I have no problem understanding HAL, but I am not yet familiar with all the stuff in HAL yet. For example, I have learned that there is a motion module. But I don't yet understand what it is about, and its properties etc... I have much to learn till I can questions which hopefully make sense :)

Have a good weekend...

Best regards,

...behai.
 
  • RNZ
  • RNZ
13 Dec 2024 22:23
Replied by RNZ on topic Mesa firmware versions and updating

Mesa firmware versions and updating

Category: Driver Boards

Hi Behai. I purchased a couple of these cards from the US. I built a CNC around this card and a raspberry pi five. If you want to chat about it, I’m at the top of the South Island.
  • rodw
  • rodw's Avatar
12 Dec 2024 17:45
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

The builder we have forked is based on Debian, not Rpi but we do fetch and build the Rpi  kernel from source.
That way you get the best of both worlds.
Linuxcnc is a Debian application so all the menu features are installed from Linuxcnc deb files.
Its not intended as a generic Rpi installation so it won't include any standard pi applications which could add additional latency.
 
  • elovalvo
  • elovalvo
12 Dec 2024 17:22

Newbie looking for a hardware configuration based on Raspberry Pi

Category: Computers and Hardware

Salve,
Thank you so much for this new resource. I think i'll start playing around with it as soon as i get a Raspberry Pi. i wonder what is the maximum control frequency using this solution.
I see you are a professor. I'm currently a computer engineering student at UniCal. i wish there would be a similar project at my university :(.
Hope you do well. Thanks again.

I have been retired for a couple of years now.
If you want, I can give you the name of a UniCal teacher who, in addition to knowing me personally, could answer your questions.
In the meantime, I'll see if I can find the digital copy of this thesis which could be a good starting point for your work.
 
  • resmond
  • resmond
12 Dec 2024 13:32
Replied by resmond on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Thanks for getting back to me.

I wanted to that that I got the image to burn onto a card through random internet searches / and re-try's. I'm sure we are all familiar with middle of the night stubbornness. LOL

Once burned the image seemed quite quite good to me with the caveat that my next step will be to get my 7i95T board configured so I haven't yet tested end-to operation.

I used saved versions of all the raspberypi.org and raspbian.org config files for apt including the keyring files that are needed. So it was quick to update/upgrade/apt install a reasonable collection of Pi specific config tools.

So thanks for making that image available.

I do have a few questions/hopes about embedding some of those tweaks into the Pi 4/5 specific IMG's.

1) Include the Pi specific APT/PGP files on the conditional build you are using for the Pi.

2) Include the core Pi executables as well with serious bonus points for adding those to the default app-lauch UI like is being done for LinuxCNC.

Those two things would substantially reduce the newbie headwinds for those that are either new or rusty on Linux.

Thanks so much for all your work!

Richard
  • macrimarco001
  • macrimarco001
11 Dec 2024 17:18 - 11 Dec 2024 19:06

Newbie looking for a hardware configuration based on Raspberry Pi

Category: Computers and Hardware

Salve,
Thank you so much for this new resource. I think i'll start playing around with it as soon as i get a Raspberry Pi. i wonder what is the maximum control frequency using this solution.
I see you are a professor. I'm currently a computer engineering student at UniCal. i wish there would be a similar project at my university :(.
Hope you do well. Thanks again.
  • elovalvo
  • elovalvo
11 Dec 2024 07:19

Newbie looking for a hardware configuration based on Raspberry Pi

Category: Computers and Hardware

Ciao.

Meanwhile, congratulations on the good work.

I am also Italian and have been working with LinuxCnc and Raspberyy for a long time and I took care of its translation into Italian.

www.youtube.com/@cnclab-unipa939

In particular, I think you might be interested in these links

forum.linuxcnc.org/9-installing-linuxcnc...-io-pins-only#203365

forum.linuxcnc.org/9-installing-linuxcnc...-pi-5?start=0#285239

If you want I can give you other directions
  • Zayoo
  • Zayoo
10 Dec 2024 23:54

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

I'm trying to get the gowin toolchain up and running on rpi5. It gives me an error when execute making all.
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make clean
rm -rf rio.fs rio.json rio_pnr.json rio.tcl abc.history impl
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ make all
gw_sh rio.tcl
/opt/gowin/IDE/bin/gw_sh: 2: Syntax error: Unterminated quoted string
make: *** [Makefile:34: impl/pnr/project.fs] Error 2
cnc@raspberrypi:~/riocore/Output/TangNano9K_spi_rpi5/Gateware$ 
I see you've already mentioned this error. I downloaded and cloned the dev version and it still doesn't work. Any tips...

I see there is another option 'generic_spi'. I will test that on rpi5 too just to get that toolchain working. I don't want to take the TN9 out of the device and program on windows anymore.

 
  • macrimarco001
  • macrimarco001
10 Dec 2024 22:36

Newbie looking for a hardware configuration based on Raspberry Pi

Category: Computers and Hardware

Hello everyone,
I’m not sure if I posted this in the right section, but if I did, I’ll move it to the correct place if possible.
My name is Marco, and I recently came across LinuxCNC. I’m planning to build a new 3-axis CNC (which will be upgradable to 4 axes in the future) using LinuxCNC on a Raspberry Pi 4 or 5. I’ve found there are a lot of options available and would really appreciate some help deciding which one to pick.To clarify things a bit, here are some of my findings:These are some options I’ve looked at:
1) Linumeric V3
2) 

3) github.com/ChrisWag91/PI-LCNC
4) www.forum.linuxcnc.org/18-computer/51816...lug-and-play?start=0
5) github.com/jzolee/HAL2UDPI’ve tried to choose one, but I’m still quite confused, so I thought I’d ask someone with more experience than me.
Since I’m Italian and don’t speak English very often, there’s a chance I might have made some mistakes in this post.
Thanks a lot in advance for your patience and attention!

PS. in the past, i had the opportunity to work with a 3-axis cnc running on mach3 via the LPT port. If it matters by any chance.
  • Hossein74Majidi
  • Hossein74Majidi
10 Dec 2024 12:28
Replied by Hossein74Majidi on topic Real-Time Kernel with Orange Pi 4 LTS

Real-Time Kernel with Orange Pi 4 LTS

Category: General LinuxCNC Questions

Perhaps something wrong with the kernel config? You could try to install the kernel deb that I uploaded to see if that helps. Otherwise you might need to install more software, just install a complete desktop will be the fastest route to find out.
 
from then I tried so much and still couldn't compiled a real-time image which linuxcnc be installed and its latency shows up.
Could you please guide me after placing patch (patch-6.6.63-rt43) in the /patch/kernel/archive/rockchip64-6.6 and configuring fully preemption option, what changes do I need to do?

Despite all my efforts, I was unable to successfully build a real-time version of Armbian.
Since I need a lightweight operating system, my review of the available Armbian versions showed that most of them have high latency and noticeable lag.
I am looking for a build of Armbian similar to the version provided for Raspberry Pi, which is both lightweight and optimized, with excellent latency performance.
Please help me to get through this.
  • JAM
  • JAM
10 Dec 2024 08:27
Replied by JAM on topic Raspberry Pi 5 with 7c81 WORKING!

Raspberry Pi 5 with 7c81 WORKING!

Category: Driver Boards

And for a bit more proof in the pudding some pictures of the results of a sharpie taped to the plasma head. 

 
  • meister
  • meister
10 Dec 2024 08:03

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Many thanks Zayoo !

i have add the code to the dev branch for testing.

if you want to use it, you can add
"rpi5": true,
to your json config

like this:
{
"name": "IceShield",
"description": "RIO-IceShield on Raspberry PI5",
"boardcfg": "IceShield",
"protocol": "SPI",
"rpi5": true,
....
  • rodw
  • rodw's Avatar
10 Dec 2024 07:14
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Pleas use Balena Etcher instead of the Pi Imager if you can't burn an image. It is much more reliable
  • JAM
  • JAM
10 Dec 2024 06:02 - 10 Dec 2024 06:06

Raspberry Pi 5 with 7c81 WORKING!

Category: Driver Boards

Thanks to the wonderful efforts of everyone recently, I have been able to get my 7c81 working excellently with my Raspberry Pi 5 on the 2.10.0~pre0 (self built) version using the `hm2_spix` driver.

I have a lot of configuration and testing to do, but thus far it seems to be working flawlessly. 

I did have a few things to get it working the way I wanted, one was getting remote access and spi working for flashing:
/boot/broadcom/config.txt

...
dtparam=spi=on
...
dtoverlay=vc4-kms-v3d-pi5


I also had to replace the hm2 module load with the spix version in the `foo.hal` file.


loadrt hm2_spix config="firmware=hm2/7c81/G540X2.BIT num_encoders=0 num_pwmgens=0 num_stepgens=4"


Ignore the mess of wires, I need to get some mounting stuff figured out, plus all of the plasma cutting controls and so on figured out next too.
  • Zayoo
  • Zayoo
09 Dec 2024 22:34

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

Regarding rpi5 I swap to riocore so there is some changes.
For old rio follow instructions on rio page 11

Here is changes for riocore:

I have a raspberry pi5 and this is the code of how I started the SPI communication of the RPI5 - TangNano9K. (Not yet machine tested)

OS:  In /boot/broadcom/config.txt check is SPI is enabled (reboot if not)

# uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

In /dev/
Check do you have listed spidev0.0, should be!

Generate output files as for raspberry pi4. When you have generated them, find the file 'riocomp.c' and open it. In general, you need to find and replace the code responsible for rpi4 SPI communication. You need to swap approximately 4200 lines of code with around 60 lines, swap FROM:
/*
    interface: SPI
*/

INSERT CODE:
#include <linux/spi/spidev.h>
#include <sys/ioctl.h>  
int spifd;
static uint8_t mode = SPI_MODE_0;
static uint8_t bits = 8;
static uint32_t speed = 1500000;
int spi_init(void) {
   
    rtapi_print("Info: Initialize SPI5 connection\n");
    spifd = open("/dev/spidev0.0", O_RDWR);
    if (spifd < 0) {
        rtapi_print_msg(RTAPI_MSG_ERR,"Failed to open SPI device\n");
        return -1;
    }
    // Set SPI mode
    if (ioctl(spifd, SPI_IOC_WR_MODE, &mode) == -1) {
        rtapi_print_msg(RTAPI_MSG_ERR,"Failed to set SPI mode\n");
        close(spifd);
        return -1;
    }
    // Set bits per word
    if (ioctl(spifd, SPI_IOC_WR_BITS_PER_WORD, &bits) == -1) {
        rtapi_print_msg(RTAPI_MSG_ERR,"Failed to set bits per word\n");
        close(spifd);
        return -1;
    }
    // Set max speed
    if (ioctl(spifd, SPI_IOC_WR_MAX_SPEED_HZ, &speed) == -1) {
        rtapi_print_msg(RTAPI_MSG_ERR,"Failed to set max speed\n");
        close(spifd);
        return -1;
    }
}
int spi_trx(uint8_t *txBuffer, uint8_t *rxBuffer, uint16_t size) {
        struct spi_ioc_transfer tr = {
        .tx_buf = (uint64_t)txBuffer,
        .rx_buf = (uint64_t)rxBuffer,
        .len = size,
        .speed_hz = speed,
        .delay_usecs = 0,
        .bits_per_word = bits,
    };
    // Perform SPI transfer
    if (ioctl(spifd, SPI_IOC_MESSAGE(1), &tr) == -1) {
rtapi_print_msg(RTAPI_MSG_ERR,"Failed to perform SPI transfer\n");
    }
    return 1;
}
 
TO:
int interface_init(void)  {
     spi_init();
}

/*
   hal functions
*/


Find and add:
//ADD to rtapi_app_exit ->> close(spifd);
void rtapi_app_exit(void) {
    close(spifd);
    hal_exit(comp_id);
}
 

And that's all. This procedure with 'riocomp.c' must be repeated every time the output files are regenerated.
 
Displaying 481 - 495 out of 938 results.
Time to create page: 0.626 seconds
Powered by Kunena Forum