Thingiverse
On/Off Button mount for Makerselect v2/wanhao duplicator. by mkanoap
by Thingiverse
Last crawled date: 3 years, 1 month ago
I have my monoprice Maker select v2 printer connected via a relay as described in thing 1428478 so I can turn it on and off remotely from octoprint. This is great, but I wanted a local way to turn it on or off without having to use a browser or the power switch. Turning it off via the power switch means that it can't be turned back on via octoprint, and turning it off via octoprint means it can't be turned back on with the power switch.
So I designed the button mount to attach a push button switch to the side of the printer. The button is wired to the raspberry pi to provide another input that can be used to trigger a script to toggle the printer state.
It screws into the two screws near the top on the right side. You will need two (2) M3 screws at least 8mm long to replace the short screws. I used 10mm screws left over from the z-brace mod. You will also need a push button with a shaft no wider than 16mm and a collar/nut between 16mm and 25mm. I pulled my button from my collection, but it was like this one from adafruit.
Those two screws hold the top brace in place, so I would take care to never remove them both at once.
Installation instructions
Solder two wires to the switch.
Measure and cut wires to desired length, adding an inch or two for routing via the channel in the bottom of the button holder.
Thread button switch into large hole on button holder, and secure with the nut that comes with the switch.
Unscrew the top screw from the printer.
Secure the top of the holder to the printer using a longer M3 screw to replace the one you took out. Tighten it enough to secure the printer, but still let the button holder swivel.
Remove the second short screw.
Route the wires in the channel on the button holder and swivel the holder until the bottom hole lines up.
Screw the second longer screw to the bottom hole.
Making sure that the wires are coming out of the channel and are not pinched, tighten down both screws.
Connect other end of the wires to your Raspberry pi or whatever the switch is going to control. I used Pin 26 and Ground
software setup
I already had scripts to start or stop the printer by toggling pin 19 of the raspberry pi which was connected to the relay, as described in jeffeb3's thing 1428478. Now I needed to read the pin I wired up (pin 26, paradoxically right by pin 19) and toggle the printer state. Here is how I did it, adjust these steps to match your setup:
I made the following script to read pin 19 and toogle the power state. It runs the same scripts that octoprint does to power the printer on or off. That way if I choose to change the behavior of one of them, the toggle script will pick up the change.
#!/bin/bash
state=`gpio -g read 19`
echo "state is $state"
if [ "$state" -eq "0" ]
then
/home/pi/scripts/printer_on.sh
echo "turning printer on"
else
/home/pi/scripts/printer_off.sh
echo "turning printer off"
fi
Once I had verified that this worked, I had to trigger it whenever the button shorts the button pin (26 in my case) to ground.
Configure the pin to be input -- gpio export 26 in
Configure the internal pullup resistor, so it reads 1 when the button is NOT pressed -- gpio mode 26 up
Test to see if the button works by reading the pin with the button pressed and not pressed -- gpio read 26
To watch the pin I downloaded and compiled gpio-watch program. gpio-watch has a mode where it will watch for a rising edge (transition from 0 to 1) and "debounce" the signal by waiting to see if the signal stays the same before showing the change. This is to keep the button from triggering multiple times during the transition between the switch being fully engaged and disengaged. The debounce time the software is compiled with was inadequate on my raspberry pi 3, I had to increase it several times before it reliably triggered only once per button press.
dowload the zip file and expand it
Edit "main.c" and change the line that says #define DEBOUNCE_INTERVAL 100000L to #define DEBOUNCE_INTERVAL 100000000L (or whatever value works for you).
Compile the software -- make
install it -- sudo make install
After gpio-watch is configured to watch a pin, it will run a script with the same name as a pin in /etc/gpio-watch. So in my case, it runs /etc/gpio-watch/26.
#!/bin/sh
#echo "Something happened! Pin=$1, value=$2"
/home/pi/scripts/printer_toggle.sh
After that script is in place, you can test it with gpio-watch 26:switch. Note that this will only work if you have configured the pin as detailed above.
Finally, you have to set the pi to set up the pins at startup and to run the gpio-watch process in the background. Add this to rc.local:
/usr/bin/gpio export 26 in
/usr/bin/gpio mode 26 up
/usr/bin/gpio-watch 26:switch &
Now enjoy turning your printer on and off with the press of a button, while still being able to control it from octoprint.
So I designed the button mount to attach a push button switch to the side of the printer. The button is wired to the raspberry pi to provide another input that can be used to trigger a script to toggle the printer state.
It screws into the two screws near the top on the right side. You will need two (2) M3 screws at least 8mm long to replace the short screws. I used 10mm screws left over from the z-brace mod. You will also need a push button with a shaft no wider than 16mm and a collar/nut between 16mm and 25mm. I pulled my button from my collection, but it was like this one from adafruit.
Those two screws hold the top brace in place, so I would take care to never remove them both at once.
Installation instructions
Solder two wires to the switch.
Measure and cut wires to desired length, adding an inch or two for routing via the channel in the bottom of the button holder.
Thread button switch into large hole on button holder, and secure with the nut that comes with the switch.
Unscrew the top screw from the printer.
Secure the top of the holder to the printer using a longer M3 screw to replace the one you took out. Tighten it enough to secure the printer, but still let the button holder swivel.
Remove the second short screw.
Route the wires in the channel on the button holder and swivel the holder until the bottom hole lines up.
Screw the second longer screw to the bottom hole.
Making sure that the wires are coming out of the channel and are not pinched, tighten down both screws.
Connect other end of the wires to your Raspberry pi or whatever the switch is going to control. I used Pin 26 and Ground
software setup
I already had scripts to start or stop the printer by toggling pin 19 of the raspberry pi which was connected to the relay, as described in jeffeb3's thing 1428478. Now I needed to read the pin I wired up (pin 26, paradoxically right by pin 19) and toggle the printer state. Here is how I did it, adjust these steps to match your setup:
I made the following script to read pin 19 and toogle the power state. It runs the same scripts that octoprint does to power the printer on or off. That way if I choose to change the behavior of one of them, the toggle script will pick up the change.
#!/bin/bash
state=`gpio -g read 19`
echo "state is $state"
if [ "$state" -eq "0" ]
then
/home/pi/scripts/printer_on.sh
echo "turning printer on"
else
/home/pi/scripts/printer_off.sh
echo "turning printer off"
fi
Once I had verified that this worked, I had to trigger it whenever the button shorts the button pin (26 in my case) to ground.
Configure the pin to be input -- gpio export 26 in
Configure the internal pullup resistor, so it reads 1 when the button is NOT pressed -- gpio mode 26 up
Test to see if the button works by reading the pin with the button pressed and not pressed -- gpio read 26
To watch the pin I downloaded and compiled gpio-watch program. gpio-watch has a mode where it will watch for a rising edge (transition from 0 to 1) and "debounce" the signal by waiting to see if the signal stays the same before showing the change. This is to keep the button from triggering multiple times during the transition between the switch being fully engaged and disengaged. The debounce time the software is compiled with was inadequate on my raspberry pi 3, I had to increase it several times before it reliably triggered only once per button press.
dowload the zip file and expand it
Edit "main.c" and change the line that says #define DEBOUNCE_INTERVAL 100000L to #define DEBOUNCE_INTERVAL 100000000L (or whatever value works for you).
Compile the software -- make
install it -- sudo make install
After gpio-watch is configured to watch a pin, it will run a script with the same name as a pin in /etc/gpio-watch. So in my case, it runs /etc/gpio-watch/26.
#!/bin/sh
#echo "Something happened! Pin=$1, value=$2"
/home/pi/scripts/printer_toggle.sh
After that script is in place, you can test it with gpio-watch 26:switch. Note that this will only work if you have configured the pin as detailed above.
Finally, you have to set the pi to set up the pins at startup and to run the gpio-watch process in the background. Add this to rc.local:
/usr/bin/gpio export 26 in
/usr/bin/gpio mode 26 up
/usr/bin/gpio-watch 26:switch &
Now enjoy turning your printer on and off with the press of a button, while still being able to control it from octoprint.
Similar models
thingiverse
free
Arcade Button Frame by protospork
... shell scripts, to gpio inputs.
the buttons are just momentary switches and they're pretty cheap and reasonably good looking.
thingiverse
free
Filament Guide with Jam Sensor by anhtien
...anet a8 printer.
printing:
rotate x axis 270deg to print it upside down, use 50mms speed and 30% infill with support generation.
thingiverse
free
Raspberry Pi Bumper Button Holder by techyg
...ton that i am using with this design:https://www.amazon.com/gp/product/b01dz8cowk/ref=oh_aui_detailpage_o01_s01?ie=utf8&psc=1
thingiverse
free
Pi zero w snap case lid with 3 cherry mx switch slots. by bungwu
...guide to write a python script for the buttons.
http://tnorbert.com/blog/2016/10/24/simple-stopstart-button-for-octopioctoprint/
thingiverse
free
Ender 3 octoprint buttons by diglo
...er.
you need to wire your buttons to the gpio of your raspberry.
i suggest using gpio 5,6,13,19,16,16,20,21 which are unassigned.
thingiverse
free
Placeholder for turn on/off switch button for 3d printer by CC7
...older for turn on/off switch button for 3d printer by cc7
thingiverse
switch button holder which i used for my flsun i3 printer.
thingiverse
free
Universal Power switch with Octoprint/Raspberry Pi (and for K8200/3Drag 24V heatbed upgrade) by eytec
...h wires.
the switch on the backside can select the mode:
"permanent on" / "off" / "raspi controll".
thingiverse
free
PI CUBE ( octoprint) by madjack911
...r supply 5v 4a (pi4 / temp regulation / fan 40mm / esp8826 / led argb fan 120mm
12v 15a external led power supply
screw m3 and m4
thingiverse
free
Ender 3 Pi Powerbox
...time
gpio.setmode(gpio.bcm)
gpio.setwarnings(false)
gpio.setup(18,gpio.out)
print "switch off"
gpio.output(18,gpio.low)
thingiverse
free
120mm PSU fan shroud w/ relay mount by orcusomega
...int
3) turn off lights
(i also use an ecobee plug, so i can add the "turn off printer" at the end if i want to as well)
Mkanoap
thingiverse
free
Maker select v2 flashlight hook by mkanoap
...rs of vertical slots on the side of my monoprice maker select v2. i don't know if other wanhao clones have these same slots.
thingiverse
free
Wanhao i3 Clip on Raspberry Pi Octoprint Case with heat sink hole by mkanoap
...ith the raspberry pi.
print this instead of the "body2.stl" piece along with the lower body and clip from the original.
thingiverse
free
Clip lid for clip-on case with hole for heatsync by lthighlighter
...raspberry pi octoprint case with heat sink hole from mkanoap found here: https://www.thingiverse.com/thing:2748879 now you can have the best...
Makerselect
thingiverse
free
Bed Leveling for Monoprice makerselect by ThreeDeePrint
...noprice maker select 3d printer. start the print and adjust the bed height as it goes around the perimeter for perfect leveling.
thingiverse
free
MakerSelect / Wanhao i3 - V2.1 - Sweep Fan (40mm Extruder Fan) by BrewHouse
...ppreciate your feedback :)
please feel free to remix my design. if you are interested in the fusion 360 file, please let me know.
thingiverse
free
MakerSelect V2 X-Axis Belt Tensioner by IND3D
...t uses 4 6mm od bearings with a 3.5mm id along with a m3*20 screw
im testing this piece as i type this i have not tested it yet!!
thingiverse
free
Monoprice MakerSelect V2 Filament Guide by thingiturtle
...ery basic design that should be quick to print. it's split so that you can still change filaments without removing the guide.
thingiverse
free
LM8UU mount replacement for Monoprice MakerSelect v2.1 by xenz
...ount in my photos.
note
please pay attention to the y axis plate i have, if yours different then the screw holes may not line up.
thingiverse
free
Makerselect/Duplicator i3 Damper Feet by wellkevi01
...ip to the bottom of the printer's frame, so they're super simple to install and you can postion them where you want them.
thingiverse
free
Wanhao Di3 / Cocoon Create Touch / Monoprice Makerselect flexible feet by TeachingTech
...inted in tpu and solve these two problems.
print settings and design process covered in detail here: https://youtu.be/hwyde5sj1hy
thingiverse
free
Prusa i3 MK2 Extruder With MK8 Drive for Wanhao i3/MakerSelect by 3DPropWorx
...d you're done.
i should add, the only original part of my wanhao i3 is the frame and power supply. it runs on a mks base 1.4.
thingiverse
free
Wanhao D6 / Makerselect Ultimate Ribbon Cable Retainer Clip by ficklecycler
...ed to.
print it in whatever material you want but abs worked best for me since it has some spring to it. let me know how it goes!
thingiverse
free
dial indicator mount for stock Monoporice Makerselect plus, wanhao duplicator i3 by djtobia
...from bottom of dial to tip of stem of about 60 mm.
it isn't an incredibly snug fit on the extruder, but it gets the job done.
Wanhao
thingiverse
free
Wanhao Logo Plate / Wanhao Logo Schild by JMDesigns
...wanhao logo plate / wanhao logo schild by jmdesigns
thingiverse
wanhao logo plate / wanhao logo schild
thingiverse
free
Wanhao logo by nebtio
...wanhao logo by nebtio
thingiverse
wanhao logo
thingiverse
free
Wanhao keychain by Rein3003
...wanhao keychain by rein3003
thingiverse
a keychain with the logo of wanhao
thingiverse
free
Wanhao Di3 v2 Light / Wanhao Di3 v2 Beleuchtung by JMDesigns
...wanhao di3 v2 light / wanhao di3 v2 beleuchtung by jmdesigns
thingiverse
wanhao di3 v2 light / wanhao di3 v2 beleuchtung
thingiverse
free
TUSH For Wanhao by wtmi1992
...tush for wanhao by wtmi1992
thingiverse
the ultimate spool holder, modified for the top of the wanhao control box. fits snug.
thingiverse
free
fanduct wanhao d12 by theopoilmek
...fanduct wanhao d12 by theopoilmek
thingiverse
fanduct pour wanhao d12
thingiverse
free
Wanhao i3 Marlin by johan21
...wanhao i3 marlin by johan21
thingiverse
marlin for wanhao i3 rampsboard 1.4.
thingiverse
free
Wanhao Duplicator i3 by imagineering4
...wanhao duplicator i3 by imagineering4
thingiverse
these are the stl files for the improvements to the wanhao duplicator i3, v2
thingiverse
free
Wanhao D6 filament guard
...wanhao d6 filament guard
thingiverse
this is a filament guard for wanhao d6 machine to avoid the filament unrolling
thingiverse
free
Wanhao Duplicator i3 Model by Hilde3D
...wanhao duplicator i3 model by hilde3d
thingiverse
wanhao duplicator i3 model
Duplicator
turbosquid
$10
duplicate
...
turbosquid
royalty free 3d model duplicate for download as on turbosquid: 3d models for games, architecture, videos. (1566034)
turbosquid
$20
Wonderful duplicate kids room
...ul duplicate kids room for download as skp, 3ds, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1609462)
archive3d
free
Copier 3D Model
...hine duplicating machine
copier n160808 - 3d model (*.gsm+*.3ds) for interior 3d visualization.
3d_export
$30
connect four set
...ate objects that can be disassembled. includes one red and one black checker which can be duplicated to the standard 42 checkers.
3ddd
$1
Черепица
...del
- put it in your scene and duplicate
- level of detail can be edited
- open with 3ds max 2010-2013 or import in your program.
3d_export
$27
Dividing Cell / Ovule 3D Model
...al microbe blob ovum fiction science ovule duplication divide dividing
dividing cell / ovule 3d model duchampmodels 9691 3dexport
3d_ocean
$16
Folding Chair
...tubing. designed to be good low poly at a distance and mesh smooth pretty well and light weight for duplicating a lot. package...
3d_export
$8
wooden fence
... one post separate so the fence can be duplicated and extended. created in blender 3.0 file format fbx with texture painted maps.
3d_export
$8
wooden fence
... one post separate so the fence can be duplicated and extended. created in blender 3.0 file format fbx with texture painted maps.
3d_ocean
$2
DNA Strands Of 5 Types
... strands that can be multiplied and can be made long chains by duplicating them and can be easily applied materials and textures.
V2
3d_export
free
Lamp v2
...lamp v2
3dexport
lamp v2 with solar panel
3d_export
$5
hammerhead v2
...hammerhead v2
3dexport
razer hammerhead v2 headphones, modeled in cinema 4d, render in corona
3d_export
$5
manometer v2
...manometer v2
3dexport
3d_export
$5
potato v2
...potato v2
3dexport
turbosquid
$52
Lifebuoys v2
...squid
royalty free 3d model lifebuoys v2 for download as fbx on turbosquid: 3d models for games, architecture, videos. (1560870)
turbosquid
$2
Mask v2
...turbosquid
royalty free 3d model mask v2 for download as stl on turbosquid: 3d models for games, architecture, videos. (1527741)
turbosquid
free
Flashlight V2
...d
free 3d model flashlight v2 for download as , obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1663559)
turbosquid
$29
Thanos v2
...
royalty free 3d model thanos v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1651077)
turbosquid
$29
Titan v2
...d
royalty free 3d model titan v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1540228)
turbosquid
$29
Frieza v2
...
royalty free 3d model frieza v2 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1701238)
Button
archibase_planet
free
Buttons
...buttons
archibase planet
lift elevator call buttons
elevator call buttons - 3d model for interior 3d visualization.
3ddd
$1
Button
... button , john reeves
набор мебели button от дизайнера john reeves
3d_export
$5
Button
...button
3dexport
smd button<br>verts 2.180<br>faces 3.848
turbosquid
$4
Button
...
turbosquid
royalty free 3d model button for download as fbx on turbosquid: 3d models for games, architecture, videos. (1297941)
turbosquid
$1
Button
...
turbosquid
royalty free 3d model button for download as fbx on turbosquid: 3d models for games, architecture, videos. (1392935)
turbosquid
$9
buttons
...id
royalty free 3d model buttons for download as max and fbx on turbosquid: 3d models for games, architecture, videos. (1404875)
turbosquid
$6
button
...uid
royalty free 3d model button for download as 3dm and max on turbosquid: 3d models for games, architecture, videos. (1669204)
turbosquid
$5
Button
...uid
royalty free 3d model button for download as max and fbx on turbosquid: 3d models for games, architecture, videos. (1710868)
turbosquid
$3
Button
...quid
royalty free 3d model button for download as ma and obj on turbosquid: 3d models for games, architecture, videos. (1510524)
turbosquid
$3
Button
...quid
royalty free 3d model button for download as ma and obj on turbosquid: 3d models for games, architecture, videos. (1509961)
Mount
3d_export
free
mounting bracket
...mounting plate is the portion of a hinge that attaches to the wood. mounting plates can be used indoors, cabinetry and furniture.
turbosquid
$2
MOUNTING
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
free
Mounts
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
free
Mount Fuji
...fuji
turbosquid
free 3d model mount fuji for download as obj on turbosquid: 3d models for games, architecture, videos. (1579977)
3d_export
$5
Headphone mount LR
...headphone mount lr
3dexport
headphone mount l+r
turbosquid
$39
Mount rainier
...quid
royalty free 3d model mount rainier for download as fbx on turbosquid: 3d models for games, architecture, videos. (1492586)
turbosquid
$5
pipe mounting
...quid
royalty free 3d model pipe mounting for download as obj on turbosquid: 3d models for games, architecture, videos. (1293744)
turbosquid
$3
Mounting Tires
...uid
royalty free 3d model mounting tires for download as fbx on turbosquid: 3d models for games, architecture, videos. (1708511)
3d_export
$5
Magnetic GoPro Mount
...pro mount
3dexport
cool magnetic mount for gopro. allows you to mount the camera on flat metal surfaces and get exclusive shots.
turbosquid
$5
Stone Mount
...ty free 3d model stone mount for download as ma, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1370306)