EMC2 running on Raspberry Pi?

More
15 Feb 2013 22:34 #30121 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Here's the youtube link to an actual test using the miniemc2 frontend:



Cheers!

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 10:31 - 16 Feb 2013 10:41 #30167 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
FWIW, here is the screen grab of RPi running Axis over remote X:



Note that RPi is overclocked to 800 MHz.

The sshd load drops considerably if the preview is disabled, it goes down below 10%.
Last edit: 16 Feb 2013 10:41 by kinsa.

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 12:56 #30174 by mhaberler
Hi Kinsa,

congratulations - great job!

Assuming this is based on miniemc2 - did you replicate Sergey's fast IRQ driver? I'd be rather curious about that because it could be a reasonable alternative for ARM boards which dont have something like the onboard PRU of the Beaglebone processor.

Will you publish the changes to miniemc2?

regards

Michael

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 13:36 #30178 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?

Hi Kinsa,

congratulations - great job!

Assuming this is based on miniemc2 - did you replicate Sergey's fast IRQ driver? I'd be rather curious about that because it could be a reasonable alternative for ARM boards which dont have something like the onboard PRU of the Beaglebone processor.

Will you publish the changes to miniemc2?

regards

Michael


Thanks.

This is the rtos-integration-preview3 branch git code; this is all your work :). The only addition I made is the hal spi driver for the PIC32 board. I will post the code once I am done with the cleanups.

Regarding miniemc2, I have only taken the web-interface and made it run on the latest code. It's a bit of a kludge, the author made some changes to shcom.cc, and I'm not sure if it is the "right" way of doing it.

Cheers!

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 13:50 #30179 by mhaberler

This is the rtos-integration-preview3 branch git code; this is all your work :). The only addition I made is the hal spi driver for the PIC32 board. I will post the code once I am done with the cleanups.


well, I'm very interested to see how you did that; if only to help others going for similar ventures.

Regarding miniemc2, I have only taken the web-interface and made it run on the latest code. It's a bit of a kludge, the author made some changes to shcom.cc, and I'm not sure if it is the "right" way of doing it.


I think linuxcnc would profit from becoming a tad more web-friendly, and if we have at least a branch, if not merged, with a way demonstrating how this can be done it would be of value to others.

regards,

Michael

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 14:19 #30180 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
I've asked for permission and got a reply from the author of miniemc2, so I'll post what I did on the wiki.

Please Log in or Create an account to join the conversation.

More
16 Feb 2013 14:28 #30181 by mhaberler
excellent!

- Michael

Please Log in or Create an account to join the conversation.

More
18 Feb 2013 17:01 #30260 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
I have documented the PIC32 expnasion board here: code.google.com/p/picnc/

A simple HAL SPI driver for testing is included in the source page.

Please Log in or Create an account to join the conversation.

More
18 Feb 2013 17:15 #30264 by mhaberler
Kinsa,

I have documented the PIC32 expnasion board here: code.google.com/p/picnc/

A simple HAL SPI driver for testing is included in the source page.


great - that looks quite solid

out of curiosity: do you have rough timings for the SPI communication? just to get a feel which delays we're looking at

- Michael

Please Log in or Create an account to join the conversation.

More
18 Feb 2013 17:44 #30268 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Transferring 64 bytes takes around 45us on a 15 MHz SPI clock. Note that the transfer happens both ways, i.e. the RPi is also receiving 64 bytes of data from the board at the same time.

The SPI clock can go up to 32 MHz. I haven't tested this as this is beyond the capability of the PIC32 chip. Maybe an FPGA board can handle it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum