Thingiverse
Guide: Alexa Octoprint Integration & Coaster
by Thingiverse
Last crawled date: 4 years, 3 months ago
This write up is meant to serve as a guide for adding smart home controller support to a Raspberry Pi and integrating that support with Octoprint. This example details controlling the power for an Ender 3 but should be easily adaptable for other items like lights and fans.
What's with the Coaster?
A: It seemed morally wrong to click "Publish a Thing" but not have a thing.
Disclaimer
Please note this project will involve some basic electrical work and even though most of that should be low voltage DC you still need to be careful. If you are not comfortable with basic skills like soldering or reading a volt meter it might be a good time to stop.
Deliverables
When complete you will be able to turn your printer or lights on and off via both your smart home controller and the main Octoprint interface. Notifications will also 'push' to your smart home app.
TL,DR;
You'll be able to say Alexa, turn on my printer / Alexa turn off my printer lights / etc.
Example
This will also work via the Octoprint menu and push status notifications to your smart phone app. (1-5 second lag)
Write-up Structure
1. High level overview of how to configure your hardware.
2. Detailed write up of what scripts are needed how to integrate them with Octoprint and start everything at boot
3. Resources / AppendixHardware
Mounting
Mount your hardware as desired, personal recommendations listed below:
Raspberry Pi Mount]
Relay Mount
Buck Converter Mount
Wiring
Wire components as required. The relay will require a 5v supply, ground, and one control wire per actual relay. Be sure to note the pin(s) used for control as this will be required later.
Wire the PSU to the printer through the relay so that the circuit is only closed when the relay is powered.
Optional Buck Converter
Although the power requirements of the relay should be well within the capabilities of the Pi it's best practice to power the relay via the buck converter if equipped.
Wiring the buck converter directly to the printers PSU will also eliminate some wires keeping wire clutter to a minimum.
Software
Overview
Low level instructions for installation and configuration of the scripts required to make this work are detailed on the git hub page
Below is a quick high level overview of the scripts involved and what each does.
Relay Scripts
Two scripts are involved in controlling power to the printer. One script controls only the relay and the other serves as the controller handling additional logic like shutting off power to the USB ports in order to prevent powering the motherboard LCD while the relay is off.
* powerPrinter.py (maps to relay and controls cycling)
* powerPrinter (controller with additional logic)
Octoprint Registration
Register the powerPrinter script with the Octoprint config.yaml
Emmulation
The third script emulates a Belkin Wemo smart plug and interacts with the smart home controller. This script calls the control script mentioned above.
* fauxMo.js
This script can emulate several devices at once and can be configured as needed.
Boot
The fourth script is really just a cron job that ensures the emulation script is started at boot.
Resources
Git Hub Library (this writeup)https://github.com/NHiggs/OctoFauxmo
Git Hub (node-fauxmo)https://github.com/lspiehler/node-fauxmo#readme
Notes
Feedback and input on improving this write-up welcome.
What's with the Coaster?
A: It seemed morally wrong to click "Publish a Thing" but not have a thing.
Disclaimer
Please note this project will involve some basic electrical work and even though most of that should be low voltage DC you still need to be careful. If you are not comfortable with basic skills like soldering or reading a volt meter it might be a good time to stop.
Deliverables
When complete you will be able to turn your printer or lights on and off via both your smart home controller and the main Octoprint interface. Notifications will also 'push' to your smart home app.
TL,DR;
You'll be able to say Alexa, turn on my printer / Alexa turn off my printer lights / etc.
Example
This will also work via the Octoprint menu and push status notifications to your smart phone app. (1-5 second lag)
Write-up Structure
1. High level overview of how to configure your hardware.
2. Detailed write up of what scripts are needed how to integrate them with Octoprint and start everything at boot
3. Resources / AppendixHardware
Mounting
Mount your hardware as desired, personal recommendations listed below:
Raspberry Pi Mount]
Relay Mount
Buck Converter Mount
Wiring
Wire components as required. The relay will require a 5v supply, ground, and one control wire per actual relay. Be sure to note the pin(s) used for control as this will be required later.
Wire the PSU to the printer through the relay so that the circuit is only closed when the relay is powered.
Optional Buck Converter
Although the power requirements of the relay should be well within the capabilities of the Pi it's best practice to power the relay via the buck converter if equipped.
Wiring the buck converter directly to the printers PSU will also eliminate some wires keeping wire clutter to a minimum.
Software
Overview
Low level instructions for installation and configuration of the scripts required to make this work are detailed on the git hub page
Below is a quick high level overview of the scripts involved and what each does.
Relay Scripts
Two scripts are involved in controlling power to the printer. One script controls only the relay and the other serves as the controller handling additional logic like shutting off power to the USB ports in order to prevent powering the motherboard LCD while the relay is off.
* powerPrinter.py (maps to relay and controls cycling)
* powerPrinter (controller with additional logic)
Octoprint Registration
Register the powerPrinter script with the Octoprint config.yaml
Emmulation
The third script emulates a Belkin Wemo smart plug and interacts with the smart home controller. This script calls the control script mentioned above.
* fauxMo.js
This script can emulate several devices at once and can be configured as needed.
Boot
The fourth script is really just a cron job that ensures the emulation script is started at boot.
Resources
Git Hub Library (this writeup)https://github.com/NHiggs/OctoFauxmo
Git Hub (node-fauxmo)https://github.com/lspiehler/node-fauxmo#readme
Notes
Feedback and input on improving this write-up welcome.
Similar models
thingiverse
free
Power Raspberry Pi from PSU & power printer on/off from OctoPrint by Roowan
...des and 2 screw holes.
links to components used (amazon):xt60 y splitter24v to usb 5v step down module5v one channel relay module
thingiverse
free
Sainsmart Relay with Power Outlet Enclosure by kazolar
...r on/off. this has supports for an outlet with threaded 6-32 screw holes and the relay is attached by regular motherboard screws.
thingiverse
free
Raspberry Pi & SKR E3 Turbo back case for Ender 3 by JakeTri
...one for 5v (from powering 30mm fans from fan2 board connector)
two 30mm fans
customizable fan grill cover used for the 30mm fans
thingiverse
free
Raspberry Pi Zero W + 30A relay module Octoprint case by steelpuxnastik
...or mounting on ender 3 psu (or wherever you want) to control prints and printer shutdown after prints or in case of emergencies.
thingiverse
free
Raspberry Pi Print Controller Enclosuer by supersaiyen
...7ih6/ref=cm_sw_r_tw_dp_u_x_tmf3abhydrg74
decora outlet - https://www.amazon.com/dp/b000bwi02w/ref=cm_sw_r_tw_dp_u_x_jnf3ab42ardc5
thingiverse
free
Relay Case OCTOPRINT by BernatMarquilles
...relay case octoprint by bernatmarquilles
thingiverse
case for a relay, to control your 3d printer
thingiverse
free
Anet A6 Raspberry Pi 3 and 5V Power Buck Converter Holder by chekcian
...erry pi 3 (octoprint)
5 volt buck converter for powering the raspberry pi 3 and servo motor
is is designed for anet a6 3d printer
thingiverse
free
Creality CR-10 Raspberry Pi Sidebar with relay by Jahislove
...pi 3
with the relay you can power on/off printer and led light from octoprint
added 3 formats from fusion 360 : obj , dwg and dxf
thingiverse
free
Step Down Buck Board Voltage Converter Upgrade for Prusa i3 MK3 MK3s by mcfada
...p to the power draw of your buck converter. i chose to power a raspberry pi 3 b+ and tft touchscreen running octoprint, pictured.
thingiverse
free
Raspberry Pi 3 A+ with 30A relay module case for Octoprint by steelpuxnastik
... case to use with octoprint and to mount everything on printer (in my case on psu). on the cover of case can be mounted 40mm fan.
Alexa
3ddd
free
Alexa Hampton Nadine Chairside table
...alexa hampton nadine chairside table
3ddd
alexa hampton
alexa hampton, столик
3d_export
free
alexa echo dot 30
...alexa echo dot 30
3dexport
3d model alexa echo dot 3.0
3ddd
$1
люстра Alexa Hampton Myrna
... visual comfort
люстра alexa hampton myrna, сша,
83,8 x 48,3 см
obj-файл без сглаживания
turbosquid
$55
11506 Alexa woman with phone
...y free 3d model 11506 alexa woman with phone for download as on turbosquid: 3d models for games, architecture, videos. (1705639)
turbosquid
$55
11500 Alexa - Woman Pointing
...lty free 3d model 11500 alexa woman pointing for download as on turbosquid: 3d models for games, architecture, videos. (1705618)
turbosquid
$55
11502 Alexa - Standing Woman Reading
... 3d model 11502 alexa standing woman reading for download as on turbosquid: 3d models for games, architecture, videos. (1705632)
3ddd
$1
бра Alexa Hampton Bing Single Arm Sconce
...a , visual comfort
бра alexa hampton myrna, сша,
20,9 x 30,5 см
obj-файл без сглаживания
turbosquid
$1
Amazon Alexa Echo Dot 2
...y free 3d model amazon alexa echo dot 2 for download as blend on turbosquid: 3d models for games, architecture, videos. (1538848)
turbosquid
$55
11501 Alexa - Classy Woman in Evening Gown
...del 11501 alexa classy woman in evening gown for download as on turbosquid: 3d models for games, architecture, videos. (1705623)
turbosquid
$20
Kitchen Alexa - Small Kitchen Panel + GIFT
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
Octoprint
thingiverse
free
Octoprint Case + Relais by bennylu
...octoprint case + relais by bennylu
thingiverse
octoprint case+ doppel relais
thingiverse
free
Octoprint Control-Panel by sanisam
...von: https://plugins.octoprint.org/plugins/display_panel/?utm_medium=announcements&utm_source=octoprint&utm_content=1.5.2
thingiverse
free
Octoprint Controller by CandlerCustoms
...control. it's super handy.
check out my post about it here: http://www.candlercustoms.com/3d-printed-octoprint-controller/
thingiverse
free
Octoprint Raspberry Pi Logo by ProtomakerSprint
...octoprint raspberry pi logo by protomakersprint
thingiverse
octoprint raspberry pi logo
thingiverse
free
Octoprint plugin - DisplayLayerProgress
...o the plug inhttps://github.com/ollisgit/octoprint-displaylayerprogresshttps://github.com/ollisgit/octoprint-displaylayerprogress
thingiverse
free
OctoPrint Wifi Display by Nori0aw
...it on character lcd screen (20x4).
boards:
esp8266
lcd screen (20x4)
source code: https://github.com/nori0aw/octoprintwifidisplay
thingiverse
free
Octoprint Logo Molle by oiitsame
...octoprint logo molle by oiitsame
thingiverse
thingiverse
free
OctoPrint Statue by KingRahl
...ng octoprint free and available for anyone to use.
a special thanks to janina himmen (@zwergimbikini on twitter) for the design.
thingiverse
free
Case Octoprint (for Raspberry, DC/DC converter and Relay) In file list "Octoprint" is correct! by Genna1986
...ot; is correct! by genna1986
thingiverse
case for raspberry, relay board and dc/dc converter... all you need to use octoprint...
thingiverse
free
Octoprint Ultimaker holder by klenk
...my simple design for attaching my octoprint server to my ultimaker.
raspberry case used: http://www.thingiverse.com/thing:1015706
Coaster
3ddd
$1
Coaster Slauson
...coaster slauson
3ddd
coaster slauson
3ddd
$1
Coaster Scotland
...coaster scotland
3ddd
комод
комод coaster scotland
3ddd
$1
Coaster Scotland
...coaster scotland
3ddd
письменный
шкаф coaster scotland
3ddd
$1
Coaster Scotland
...coaster scotland
3ddd
шкаф
шкаф coaster scotland
3ddd
$1
Coaster Scotland
...coaster scotland
3ddd
письменный
стол coaster scotland
turbosquid
$29
coaster
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$19
Coasters
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$2
coaster
...e 3d model coaster 3d model for download as max, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1648217)
turbosquid
$1
Coaster
... 3d model coaster for download as max, 3ds, dwg, dxf, and obj on turbosquid: 3d models for games, architecture, videos. (1592347)
turbosquid
$1
Coasters
...3d model coasters for download as max, 3ds, dxf, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1633632)
Guide
turbosquid
$15
Guide drawer
...squid
royalty free 3d model guide drawer for download as dwg on turbosquid: 3d models for games, architecture, videos. (1261387)
turbosquid
$1
Road Guide
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
archive3d
free
Guide-board 3D Model
...ion sign guide sign
guide-board n170112 - 3d model (*.gsm+*.3ds) for exterior 3d visualization.
turbosquid
$2
soap cutter guide
...
royalty free 3d model soap cutter guide for download as stl on turbosquid: 3d models for games, architecture, videos. (1694030)
turbosquid
$15
Blind Guiding tiles
...free 3d model blind guiding tiles for download as 3dm and dae on turbosquid: 3d models for games, architecture, videos. (1156598)
turbosquid
$69
Japanese Tour Guide
...d model japanese tour guide for download as max, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1614288)
turbosquid
$10
CNC Linear Guide
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$1
Tank Model Guide
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$1
Road Guide 2
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_ocean
$9
Guide Books 3
...sformed separately and each have unique texture map on front and back cover. to make your work easier this model comes in thre...
Integration
3ddd
$1
+ Integration
...брики poggenpohl . в архиве сама кухня, кухонный остров и встроенная техника miele ( кофемашина, пароварка и микроволновая печь).
3d_export
$57
integral kitchen
...integral kitchen
3dexport
integral kitchen
3ddd
$1
Integrated bath
...integrated bath
3ddd
ванна , подиум
integrated acrylic bath
turbosquid
$15
Facades with integrated handle
...el facades with integrated handle for download as max and fbx on turbosquid: 3d models for games, architecture, videos. (1215935)
turbosquid
$19
Protective Barrier Integrator
...arrier integrator for download as max, obj, fbx, dae, and stl on turbosquid: 3d models for games, architecture, videos. (1507713)
turbosquid
$5
Cabinet with integrated freezer
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
Microchip PIC16F84 integrated 3D Model
...xport
circuit elements integrated pic16f84 microchip electronics
microchip pic16f84 integrated 3d model pluginmax 54764 3dexport
3d_export
$6
integrated signal lamp 20 specifications
...integrated signal lamp 20 specifications
3dexport
integrated signal lamp (20 specifications)
cg_studio
$55
Wolf Integrated Cooktops3d model
...d model
cgstudio
.dxf .max - wolf integrated cooktops 3d model, royalty free license available, instant download after purchase.
3ddd
$1
Cellu M6 Integral
...cellu m6 integral
3ddd
медицина
оборудование lpg для косметологических, медицинских и эстетических центров