by amorphic · 10y ago · 0 comments
This is great for projects where you control the whole stack and don't plan to support anything else. I guess the only downside to going down this path is that you're locking in the Beaglebone Black as your sole hardware platform and losing some modularity.
For example it would be great to control a 3D printer by running something like OpenGB (http://opengb.readthedocs.io/) on the main CPU and something like Marlin (https://github.com/MarlinFirmware) on a PRU. But that would require a Beaglebone-centric approach which wouldn't work on other hardware combinations.
That's just an observation though - I'm really impressed that the PRUs are there!
I'd say that most embedded related projects will have to deal with newer revisions of their hardware, maybe because an older part is no longer available or because people came up with more intelligent or less buggy circuits over time. So that's already a few (prob. very minor) variations you'll have to support.
And besides very trivial projects, you should always try to have at least one "dummy" implementation of everything, to facilitate automated testing of your code.
So, in your case, yout 3D printer controller could support the internal PRU of the Sitara, an external servo controller, or some dummy library that just logs positions to a file, for testing.
OpenGB uses an abstract base class (called IPrinter) to describe a printer interface. At the moment there exists a Marlin implementation and a Dummy implementation (as you describe) of IPrinter.
Other comments mention BeagleG and MachineKit. It should be pretty trivial to add IPrinter implementations of both of these.
Thanks for the inspiration! :)
I've added an enhancement issue to OpenGB for adding BeagleG support: https://github.com/re-3D/opengb/issues/17
MachineKit is using the PRUs with LinuxCNC already and you can control 3D printers with it!
Have raised an issue for this: https://github.com/re-3D/opengb/issues/18