EMC2 running on Raspberry Pi?

  • mhaberler
  • New Member
  • New Member
More
13 years 8 months ago #30179 by mhaberler
Replied by mhaberler on topic EMC2 running on Raspberry Pi?

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
13 years 8 months ago #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.

  • mhaberler
  • New Member
  • New Member
More
13 years 8 months ago #30181 by mhaberler
Replied by mhaberler on topic EMC2 running on Raspberry Pi?
excellent!

- Michael

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

More
13 years 8 months ago #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.

  • mhaberler
  • New Member
  • New Member
More
13 years 8 months ago #30264 by mhaberler
Replied by mhaberler on topic EMC2 running on Raspberry Pi?
Kinsa,

kinsa wrote: 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
13 years 8 months ago #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.107 seconds
Powered by Kunena Forum