Switchbox for Ikea Enclosure with an OctoPi

Hardware Button to control Light and Relais of Printer-Power, Status and Shutdown OctoPi
3
9
0
370
updated January 27, 2023

Description

PDF

I have switched the printer via a relay to switch it off at the end of a job.
The illumination then also goes off. It is connected via a MOSFet transistor.

It bothers me that I now always have to open the web interface to turn the light on and off.
Also the loading of a new filament is not possible with the printer switched off.

When I damaged the SD card while switching off the Raspberry, the decision was made:
The case needs additional hardware buttons and status LED.

I use the PlugIn Physical Button to control GPIOs, which are controlled in parallel by the Plugin OctoRelay. So I can control the Function vie WebIF, in OctoAPP and with Hardware Button. Status in WebIF will be updated, if Button is pressed (at least, when the Webpage is reloaded, depending on your Browser)
I uploaded my configuration as an example, it can be imported. 
The GPIOs are selected so that they are "in a row" behind each other. They can then be connected as one connector.
Additionally, I created a function in OctoRelay that turns off an LED during active printing.
See Pic for Details (Screenshot attached)

For safety, the button can be used to shut down the Raspberry and the printer only when printing is not in progress and must be pressed longer than 1500 milliseconds.

The LED beyond the Power-Symbol indicates, the Printer is idle (and the Pi / 3D Button is active)


It's also nice that  the light button can be pressed without opening the Enclosure by pushing the right door on the top left, this Button has only 200 milliseconds. delay.

Everything is printed without support with the 0.4mm nozzle, color change of the lettering via the MMU, you can certainly also do as filament change manually.

It is important that the distance of the key surface is 10 to 15mm from the edge of the lid, so that the doors do not collide when closing the lid!

As last I added the following lines in the /boot/config.txt, so that I can connect a activity LED:

# activity LED on gpio 11 (physical pin 23)
dtoverlay=act-led,gpio=11

Powertaste Raspi  GPIO 5  HW-PIN 29
PowerLED  Raspi  GPIO 6  HW-PIN 31

Powertaste Drucker GPIO 13 HW-PIN 33
PowerLED  Drucker  GPIO 19 HW-PIN 35

Lichcht Taste  GPIO 26 HW-PIN 37

GND    HW-PIN 39

All LEDs with Resistor 1K

Be shure to use a Relais with 3Volt, since GPIOs only provide 3.3V Output.
All LEDs and momentary Push-Switches are working against Ground. 

This is a Link to the Switches, one 16mm with 5Volt Lamp is used here.
A 12 mm is recomendet for Printer Switch (I did not use it, since I dont have it on Stock)

Best for Light Swith to be controlled by pushing the Door without opening the Enclosure, is something like this (12mm):

https://de.aliexpress.com/item/1005002622143638.html?spm=a2g0o.productlist.main.33.34225d8fBn4RDm&algo_pvid=405a00a9-222f-46f1-b7b3-a91535fd7c91&algo_exp_id=405a00a9-222f-46f1-b7b3-a91535fd7c91-16&pdp_ext_f=%7B%22sku_id%22%3A%2212000021439899753%22%7D&pdp_npi=2%40dis%21EUR%210.47%210.36%21%21%21%21%21%40211bd93f16747480677893355d0717%2112000021439899753%21sea&curPageLogUid=MgoJICPNlw4W

 

Tags



Model origin

The author marked this model as their own original creation.

License