top of page
To test this feature, visit your live site.
Are their plans for OctoPrint or RPI integration using GPIO pins or other input ? The switch is very .... in-elegant.
Are their plans for OctoPrint or RPI integration using GPIO pins or other input ? The switch is very .... in-elegant.
2 comments
Like
2 Comments
bottom of page
Hi,
from my point of view, the mechanical switch is definitely a smart idea to make the 3D Chameleon open for as many Printers as possible.
I am using a Prusa MK2s Clone and the switch works great. No problems at all.
Reading the comment form Bill might lead to change my mechanical switch to a solution within my Prusa clone firmware or in OctoPrint / OctoDash. I am thinking about that, at the moment.
Meanwhile I found this and tested it successfully:
You can access this pin via Gcode with the original Prusa i3 MK2s firmware :
M42 P32 S255 to switch ON
M42 P32 S0 to switch OFF
This pin goes to IO extension header P2 pin 10 this header connects to the LCD panel Header 5X2 pin 10 (close to the reset pin).
Well, electronic switch connected to my miniRAMBO-Board now works. But would it also be possible to use one of the GPIO of my OctoPrint raspberry Pi?
Question to all of You: did anyone change the mechanical switch to an GPIO setting using OctoPrint on a raspbery Pi?
You can already do it... just tie the GPIO pin and a ground to the switch's input. Green is signal and black is a shared ground. The M42 command is actually all you need in the gcode... and to adjust the G4 timing parameters R[milliseconds] and S[seconds]. So, you'll replace the G0 X3 Y3 commands with M42 P21 S1... then after the G4 pause command, issue another M42 P21 but with an S0. (Your logic might be backwards... so it might need an S0 followed by the S1... but it's just flipping the I/O pin.) Also, make sure you set the pin correctly at power up or in the start gcode with the proper "ending" M42 command.
I might add, the inelegance of the switch is a necessary evil to support every printer out there... it abstracts everything down to gcode, without regard to firmware or machine configuration.
Bill