The cli is a command line interface display that I have on my system I didn’t think anyone else would have.
LED buttons: My buttons are not backlit. The LED’s I’m using are separate and used only as indication for system state. I’ve attached a simple schematic of my LED and button setup. The LED is a single tri-color LED with 300k resistors on each of the color lines. The RPI provides the power and ground. The circuits are very simple and in the drawing below I did not include the resistors, but they would be on the red/blue/green lines.
The Pendant: In my case, the pendant is ONLY activated from a button press. Press the pendant button, then press the wii remote buttons and it will pair. Pressing the A and B buttons together will turn off the remote and is supposed to kill the pendant thread. Press the pendant button again and turn on the remote again by pressing any button. If you turn off the wii controller with the power button, the pendant thread will stay live on he raspberry pi. If you do that too much, you can have memory issues with too many threads running, so just be aware. Note: this is not a polished release, so you will find that the SET HOME function does not work, but the zero Z function does.
Here is a quick listing of button combinations for the wii control pendant.
All directions assume you are holding the control like a classic NES controller (sideways q/buttons on the right)
1 and up (move up)
1 and down (move down)
1 and left (move left)
1 and right (move right)
home - move home
1 and home - set home (DOES NOT WORK… saves coordinates off screen)
2 and up (z axis retract)
2 and down (z axis plunge)
2 and home (z axis set zero)
B (trigger on back side)
B and up (play - start loaded cut)
B and left (pause)
B and down (stop cut / cancel)
B and A (turn off remote and stop pendant service)
after getting the pendant to work, I now only use it to move the sled out of the way when I’m on my phone. Usually I use the phone more than the pendant, so with the buttons for emergency pause or stop on the rpi and the display (I need to add a current gcode line number to the display) I find the pendant was a nice show and tell piece, but not really needed. I was working on a pull request for the webcontrol code that would start stop a separate process without the services and with only buttons so everyone could use it. My script fu is expanding, but I’m not confident it is ready for prime time yet. Please provide any comments or suggestions on improvement. I think it would be great if you get some use out of the time spent getting it to work.