I have an idea but it may sound weird at the first place. Since I am not a tech guy I don't know if it's stupid or not, could you please criticize the idea.
I would like to use raspberry pi3 with machinekit. This is not the weird? idea.
The idea; can pi be used as an FPGA?
I want to use a laptop or PC as the main machine with machinekit and want to connect raspberry pi with ethernet or spi or something else. Raspberry pi will be machinekit installed as well without any gui. What I would like to do is: the main computer will send the commands to the pi as if it is a FPGA board (or not) then pi will get the command and execute it( generate steps follow the error messages from NML etc.) Then will send feedback to main machinekit computer.
You could think that why pi is needed between computer and step drivers. I did some resourcing and find out with parallel port computers can generate 25 khz steps. With the GUI it's about the same for pi. But I read a discussion on linuxcnc forum that without GUI someone could achieve 500 khz step generating on Pi3.
I know it's been very long to explain what I would like to do but please forgive me since I am not a native English speaker.
Thank you all in advance if you read this till here.
Have a good day/night.
Berkdan
I know about Mesa cards, but it takes too long to have it in my country. Legal procedures etc. or I need to spend a lot for quick cargo and custom taxes.. Besides I have two analog and one digital servo motor and drive thus I need at least two Mesa daughter card and one anything card like the one for pi or pcie etc. Which is very confusing for me. So I am trying to find a solution for that. I am good at python programming and I know that using NML with machinekit is possible to control motors. I already have a pi3b+ and a pc :) so I just wanted to know if it's a good idea to spend some time on it or not.
I have no idea about pic programming nor electronics so I wanted to do something with what I already have.
About step frequency I have tested linuxcnc with parallel port and I have got 1500 mm/min speed rate if just two axis runs at the same time. I do relief machining a lot and when z axis runs with X and y, speed drastically reduce to 600 mm/min. This is because of the latency issues. Not to have latency issues I thought it would be good idea if I seperate the GUI and the step generator.
Since forums is here for brainstorming I just got the idea and shared with you to learn if it's a good idea or not.
Thank you again for your interest.
Berkdan
The thing is, is the idea good enough to chase or just needless or stupid.
After writing on the forum I took a look at picnc project on GitHub. It was promising for me to see it's possible to make a board that can generate step pulses and communicate over spi with pi. There is even a pull up which uses more powerful CPU but unfortunately I cannot get these CPU's in Turkey.
So I have checked what else I can reach easily in my country and found out that stm32f4 discovery and STM nucleo are cheap and available here. I may go in that way if your suggestions does not work for me. But I am surely going to check beaglebone out.
And Justin, unfortunately own output does not work for me.
I am going to use step to analog converter to control the servos. Thus I will control motors with a stepgen card.
Thanks again. I am going to check the other possibilities that Cern suggested.
I have checked Beaglebone out and it fits my needs. Thank you for your guidance.
I know I am kinda pain in the head :)
I have searched about BBB and I always found bbb+machinekit+some Cape like CNC Cape. I couldn't find any information about connecting motor driver directly to the BBB. A friend of mine need to drive step motor with leadshine ma860 driver. In this case is it possible to connect the BBB and the driver?
A big thank you again.
> To unsubscribe from this group and stop receiving emails from it, send an email to machi...@googlegroups.com.
The FPGA is LinuxCNC's magic bullet because FPGA's in general are magic bullets. IMHO, mksocfpga could also be Machinekit's magic bullet in a way that is even more potent that off the shelf Mesa hardware. This is what LinuxCNC is missing, and Machinekit is not quite exploiting enough. The means exist for you to design your own field tolerant hardware and configure the hm2 firmware however it suits using an socfpga dev board of your choosing as long as Charles/Michael have gotten their hands on it.Not to knock MK, I understand it's mission statement... I just don't have real faith in Beaglebone or Raspberry Pi hardware. I'm sure they are great for 3D printers and such but running a machinetool on them makes me cringe. I think the DE10 Nano is good hardware with an FPGA that is more than large enough. Could use a bit more CPU and a GPU though. CPU performance seems good enough with a FB that I think it can get away with quite a bit. I have yet to explore the headless-remote setup but I'd think there would be very little left to desire if it's well sorted.I would not say microcontrollers are not plenty capable but I would not bother with the availability of very capable FPGA hardware that is relatively easily configured. Micros are better sorted for something specialized like the STM32 used in STMBL drives. I can understand the desire for low cost machine control for a 3D printer, but trying to spend less for the control solution than the cost of 1 motor and step driver is a bit silly. The fact that you can control a machine with reasonable hardware for a couple hundred bucks these days all in is amazing in and of itself.
To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/4eb48782-49fc-40ec-b7e0-a52d1d8e8f8d%40googlegroups.com.