My Stoopid Stuff
  • Home
  • Projects
  • Blog
  • Lec'tronics
  • Links
  • CNC
  • Quick Recipes
  • 3D Printer Tips
  • Voron 2.4

Gonna See If Buttons Can Be Fit on Sneaks Pi4 Case (Top Module Insert) - Update (Its Posted to PrusaPrinters)

1/13/2022

0 Comments

 
Update 9/2/2022: I had to disable the script which shows the IP and other info, due to python taking up almost 100% of the CPU.  I don't know why that is, and am pretty sure it's something I messed up, but I decided that for now I will just use it without the display.  The buttons however still work since they operate independent of the LCD script.

I'd like to have a shutdown switch on my Pi's, and maybe one more switch could be handy for some other future use like pausing a print using an Octoprint plugin.  Since I am gonna standardize the Pi mounts (they will all use my latching mount) and cases for my various Pi's (the cases will be Sneak's Modular Snap Together Raspberry Pi Cases), I decided to see if a switch or two would fit in the OLED+Fan cover module.  I'm not sure if this will work, and the parts are really small so it may not be practical, but I'm trying it anyway.  I have a bunch of mini tactile switches from an assortment I bought some time ago to fix something, and they have been handy a few times since.  The downside is they are weird little switches and not easy to get, they are also tiny.  I originally thought I would try a 6x6mm tactile switch but found it was way too tight a fit.  So I found a smaller 6x3.5x5mm switch that looks like a better fit.  So I modeled the switch, and a clip to hold it, as well as a button to use since the button on the switch is way too small to be useful by itself.  I'm planning to print some test models to verify the button clip will work, and will update this post with how it works out. 
Update 1/15/2022 - It looks like the button module will work.  I still need to test some tweaks to the design to help things fit better but I'm pretty happy with the prototype module.  I had to rotate it 180° due to interference between the switches and the dupont connectors for the pins being used for the OLED and switches.  I also had a dead OLED display (but fortunately bought two and the other worked).  I would also highly recommend using ribbon cable for wiring the OLED and buttons since it is very tight.  I also connected all the grounds at the OLED so I could run one ground back to the connector (and have 2 fewer wires to run). 

The switches control shutdown (left) and pause (right).  The shutdown uses GPIO27 and the pause uses GPIO17.

To enable the shutdown button I used this guide:
https://raspberrypi.stackexchange.com/questions/77905/raspberry-pi-3-model-b-dtoverlay-gpio-shutdown

and just added this line to /boot/config.txt:

dtoverlay=gpio-shutdown,gpio_pin=27

To enable the pause, I used the Physical Button plugin for Octoprint. 

The OLED was set up using Sneaks Guide which is linked from his post on Prusa here. 

Once the fixes are made and tested, I will post this as a remix on Prusa.
Update 1/16/2022 - Really liking the new case, it looks very cool with the LED fan and OLED display.  But there is a part of me that is bugged by the wires that were not really crammed in the case, but I feel I could have done a better job.  I was also thinking that due to one of the buttons being on top of the IO header, I could possibly get the module flipped the "right" way if I could make the case taller.  The problem was how tall?  That turned out to be 12mm taller, to allow the top module with the buttons to sit over the IO header, with a Dupont connector on it.  This is only necessary due to the way I fit the buttons on the remixed module (on the sides of the display).  With the stock fan+OLED module there is no issue with the depth of the case. 

I did a hack of the case to stretch it out, and am printing a test model now.  I'm also testing a less aggressive fuzzy skin, and for fun I sliced up a fuzzy skin texture which has a Pi Logo inset (but I'm not printing that one at this time).

Picture
Picture
The button clips and some other things were tested and work well, I think this is almost ready to go, but I have yet to test print the whole thing.
Update 1/22/2022 - It's finished, I plan to post it this weekend, but here is how it goes together.

Update 2 - it's posted here:

https://www.prusaprinters.org/prints/122413-button-module-for-sneaks-modular-snap-together-ras
Update 2-3-2022 - I had made a small test model to make it simpler to check if a particular button will fit, but unfortunately PrusaPrinters is down for maintenance right now.  I also found a minor interference with one side of the button clips which I corrected but have yet to upload.  I believe he interference is less than 0.4mm and did not cause a problem when I assembled mine.  It was just a fillet that cut the corner of the clip and probably has no effect on function.  Still the models will be updated tomorrow when I can try uploading again.
0 Comments



Leave a Reply.

    Picture

    Stoopid Me

    Welcome to my Stoopid corner of teh Internet.  It's mostly gonna be 3D printing stuff, but I also post some recipes, projects, and the occasional rant here as well.  More Stoopid stuff is updated regularly.

    I recently joined the Amazon Associate program, so some of the links on this site are Amazon affiliate links. This means that, at zero cost to you, I will earn an affiliate commission if you click through the link and finalize a purchase.  This will help to support this site, and pay for more Stoopid Stuff.

    Archives

    March 2023
    February 2023
    January 2023
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    April 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    November 2017
    September 2017
    August 2017
    June 2017
    December 2016
    October 2016
    September 2016
    July 2016
    March 2016
    February 2016
    September 2015
    August 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    November 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    January 2013
    December 2012
    November 2012
    October 2012
    September 2012
    August 2012

    Categories

    All

    RSS Feed

      Contact Form (Name is optional)

    Submit
Powered by Create your own unique website with customizable templates.