The wii3 branch in the orob-maslow repository (for now until it is fully tested) has a working version with 3 new items, all of which can be toggled in Maslow Settings:
- GPIO button service
A separate button service (systemctl MaslowButton.service) starts as its own process when webcontrol starts.
MaslowButton.py can take input on the raspberry pi GPIO an communicate with webcontrol via web socket put and get requests. Push buttons are configured in the gpio settings page in webcontrol. When changes are made, the service restarts and they get reconfigured. On the controller I’m using do the following buttons:
-play (start gcode cut)
-pause / resume
-start wii pendant bluetooth service
-shutdown the raspberry pi
- Wii remote pendant operation (designed for 2 handed controller use - no accidental movements)
When the wii remote service starts from a button press (MaslowPendant.service) connects (via bluetooth), the wii remote can:
-move the sled home, up, down, left, right (press 1 + dpad direction or just home key) depending on which battery light is lit on the wiimote, it is 0.1, 1, 10, or 100 mm (select distance with the +/- keys)
-set sled home at current location (1 + Home, keep holding 1 and press A to confirm)
-move z: raise or lower (2 + up or down)
-zero z axis at current location (2 + home, keep holding 2 and press A to confirm)
-play / gcode start cut (B + UP)
-pause / resume gcode cut (B + Left, B + right)
-stop movement (B + Down)
-disconnect (A + B). When the wii remote disconnects, it turns itself off and the pendant service process running on the pi ends. To reconnect the wiimote, you must press the pendant button to restart the “process.”
All up/down directions are with the wiimote held horizontally.
Each command rumbles the wii control so you have feedback it is supposed to be doing something
- A local command line interface shows relevant information from webcontrol.
this one is more for me because I have a hard time knowing where my next cut will be. A 5" panel mounted in portrait mode shows zoomed in command line text of the home position coordinates and the distance from the sled center to the right and top of the cut, so a tape measure can be used to see just how far the design goes.