The current state of the project is:
- Main components built into the PC case and wired up. Case installed beside toolbench on some redwood decking offcuts.
- Software and motor function verified
- Pulleys bored out to 16mm, motors installed
- 13" 1080P monitor acquired and installed with RPi on swivel arm.
- HAL configuration done and PID values nudged to where I'm happy with them
- HAL configured for encoder feedback. This seems to work really well.
- spindle encoders for RPM feedback - just pulse encoders for now. Adequate for slow threading.
Next steps:
- Play with it and make things
Future stuff:
- limit switches. I'm actually not sure I need them on the lathe. I'll crash into the chuck, the tailstock or the work before I hit the machine limits, and home is dependent on where the toolpost gets bolted down. Repeatable homing would be a help though, as LinuxCNC occasionally crashes.
- pendant
- quadrature encoder on lathe
I went back and looked at my config and history. It looks like I just started with the minimal base 32-bit Raspbian image then added the X package and then followed the steps in the LinuxCNC install instruction (added the current RT kernel package and LinuxCNC). The only config tweak is to limit the memory to 3GB - there is some bug that breaks the USB above that as I recall. I don't get the onboard Wi-Fi or the power button, but I've addressed that with external components. I do get occasional servo loop RT warnings, which seem to mostly happen when pushing buttons in the UI. As I have encoder feedback and the mesa card is tracking the encoders, I'm not fretting about that too much.
I do have it set up dual-boot with a vanilla Raspbian so I can fix what I break on the LinuxCNC image.
There is a thread out there now about 64 bit kernel for Pi that looks very promising. I'll probably circle back an try that out at some point. At the moment the Pi side of things is working good enough and I'm focusing on things like estop, spindle encoders and coolant setup. And maybe actually making things.