EMC2 running on Raspberry Pi?

More
12 years 10 months ago #41395 by ADBensi
Thank you,
Cubieboard has a lib in C that can toggle a pin something about 1.5MHz. The idea is to understand what the LinuxCNC sends to pass to GPIO, and migrate to Cubieboard as similar option BEAGLEBONE or direct control of the SPI drivers with specific chip. I prefer the first condition because I already have Cubieboard and parallel drivers and it is not expensive and the whole assembly is flexible to changes.

Best Regards

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

More
12 years 10 months ago #41396 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
Have a look at stepgen.c , it's the software step generator for the x86 parallel port.

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

More
12 years 10 months ago #41404 by ADBensi
I am again :)
I created new hal in /usr/src/emc2-dev/configs but I not know how to load new hal in linuxcnc to try it. I saw many posts but I did not know how do. Please, it is possible to change only /usr/src/emc2-dev/configs/new or I miss anything? I'm starting with the idea that the platform is already compiled with the raspberry.
Best Regards,

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

More
12 years 10 months ago #41423 by ADBensi
I solved :D The correct dir is /usr/local/share/doc/linuxcnc/examples/sample-configs/. May be /usr/src/emc2-dev/configs/ is backup or others.

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

More
12 years 10 months ago #41671 by ADBensi
Kinsa you noticed that steplen is variable? Sometimes your period is 50uS and sometimes occur periodos minor than 1 uS (big problem).

It varies even entering the parameters:
setp rpi_stepgen.0.steplen 2000
setp rpi_stepgen.0.stepspace 2000
setp rpi_stepgen.0.dirhold 800
setp rpi_stepgen.0.dirsetup 800

If you have investigated, please could tell if has experienced reduce the timer from 10MHz to 1MHZ to see if it improved resolution? Or may be timers erased, or frequency hight for sample:

min_step_period = rpi_stepgen->step_len + rpi_stepgen->step_space;
max_freq = 1.0 / (min_step_period * 0.000000001);

2000 + 2000 = 4000
1/(4000 * 0.000000001)

250 KHz

I would like to reduce speed to ensure accuracy. Suggests something?
Best Regards!

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

More
12 years 10 months ago #41681 by kinsa
Replied by kinsa on topic EMC2 running on Raspberry Pi?
What hal driver are you using?

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

Time to create page: 0.389 seconds
Powered by Kunena Forum