October 9, 2023
Description
The enclosure contains a buck converter and an esp32-cam. All the necessary parts you can see in the photo below. You can use any DC-DC buck converter up to 20x16x4mm and 5V or 3.3V output. There is enough room in the case for a small OPTIONAL heatsink (up to 9x9x3mm) to transfer heat from the esp32, there are also holes to ensure air movement. The pins are accessible externally to program the device directly in case of failure. Additional pins can be used for any purpose, e.g. to control the custom printer lighting. The power supply is connected to the motherboard, USE the RIGHT PAIR of power connectors, the left of them are for powering the heat bed and the voltage on them can be unstable. Use the wiring sleeve for the X axis motor to route the cables. SUPPORTS REQUIRED.
The shorter screws are M3x10, the longer one is M3x16.
OPTIONAL
The buck must be placed according to the picture, it must be pushed all the way under the cover.
There is a hole in the arm to route the cable, I did not use it.
You will need a programmer and ESPHome software to prepare the chip. You can also use the Arduino IDE and share the video stream directly to Prusa Link/Connect (you can easly find how to do this). The code provides also a LED management (on/off). You will need to rotate video stream or card in HA, it is not possible in ESP.
Use the configuration appropriate to your chip. The following example is for the Ai-Thinker Camera (https://esphome.io/components/esp32_camera).
esphome:
name: esp32-cam
#OPTIONAL
#esp32_camera_web_server:
# - port: 80
# mode: stream
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "USE YOURS"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
name: MK4_ESP32-CAM
# Flashlight
switch:
- platform: gpio
name: "Flashlight"
pin: GPIO4
License:
Creative Commons — Attribution — Noncommercial
7