Search models, users, collections, and posts

Useless Box

Print Profile(1)

All
P1P
H2D Pro
X1
H2D
H2C
X2D
H2S
A1 mini
X1 Carbon
P1S
P2S
X1E
A1
A2L

0.2mm layer, 2 walls, 15% infill
0.2mm layer, 2 walls, 15% infill
Designer
2.7 h
1 plate
4.7(7)

Open in Bambu Studio
Boost
300
656
26
16
518
221
Released 

Description

Who wouldn't want to create a totally certified useless box? I certainly wanted one since I saw one in Fargo :)

 

Also, I created this as a sort of “Hello world” exercise with ESP32's.

 

See it in action:

 

You'll need:

  • an ESP32
  • the code hosted at https://github.com/wiz78/UselessBox
  • a 5mm LED
  • a 220 Ohm resistor
  • a mini SPDT lever switch
  • a micro servo motor (I used a Miuzei MS18)
  • some electrical wires
  • 4 small M3 screws for the top lid
  • 2 longer M3 screws for the ESP blocker and LED support
  • 6 M3 brass inserts for the screws
  • a 2A USB power supply + micro USB cable

Some assembly hints:

  • connect the LED between a GND and a GPIO pin (e.g. 16), using the resistor in between.
  • connect the motor to another GND and a different GPIO (e.g. 18)
  • connect the switch between a GND and GPIO pin (e.g. 12)
  • those are the pins already defined in the code, which you can change of course
  • the code can be tweaked to enable an http server to replace the firmware and also to enable other test endpoints. One is especially useful to calibrate the positions of the servo motor once assembled: ie. curl -o- -X POST http://uselessbox.local/servo?pos=80 - you need to find the values to enter in the code for the resting position (arm under the lid), peeking position (arm partially elevated, opening the lid) and pushing position (enough to move the switch to its off position).

Flashing the ESP32:

Comment & Rating (26)

(0/1000)

Great project, thank you :) Lots of fun. Printed this weekend, PLA Blue, redid the "Arm" in RED, and I would want to reprint this with PETG, the box cover hinge a little weak in PLA. I used another ESP32 Variant that was a little shorter, and since I previously had a working micro-python setup, I ported the code to micro-python. Created PR to contribute. For mine, I used ELEGOO ESP-32 Dev Board (USB Type-C, 30-pin, CP2102). This board is slightly smaller than the original ESP32; a small shim was needed to fit the current 3D model. Servo: Micro Servo SG90 Switch: Miniature Toggle Switch, SPST on/off, 2 terminals, 2 position. Wiring (Text Diagram) Power and ground: * VIN (5V) -> Servo V+ * GND -> Servo GND. * GND -> LED GND (split) * GND -> Switch GND (split) Signals: * D13 -> Servo signal * D14 -> 220 ohm resistor -> LED anode (+). * D15 -> Switch signal (active LOW with internal pull-up)
0
Reply
Print Profile
0.2mm layer, 2 walls, 15% infill
print very nice. fun project.
0
Reply
This project is outdated, esp32 code fails to flash.
The designer has replied
0
Reply
what's the problem? The code is so simple that it should just work as it did when I wrote it
0
Reply
Replying to @Wiz_78 :
the header files appear to be missing: #include #include <ESP32Servo.h>
0
Reply
Is there any expert who can modify it servo motor  SG90 or MG90?
2
Reply
I can do it
0
Reply
my m3 screws seemed to be too thin to fit, I probably have wrong m3 screws maybe?
The designer has replied
1
Reply
I forgot to mention in the description that the model is supposed to also use M3 brass inserts for the screws
0
Reply
I have a question about the switch wiring. Just to confirm you're using a SPDT switch (not SPST), and if so what does the third pin get wired to? is it G12->GND->X or G12->X->GND? And where does "X" get wired?
The designer has replied
1
Reply
yes, it's a SPDT switch (like https://www.amazon.it/KINYOOO15-Interruttore-levetta-Position-Posizione/dp/B07J4KB38W). You just need to wire 2 pins of the switch: the middle one (say to GND) and one of the external ones (GPIO, but you can also do the opposite). The switch is on when the lever is towards the unconnected pin.
(Edited)
0
Reply
Can we get a wright up on this project, specifically the wiring. This is new ground for me but I really want to put it together. I have all the parts but cant understand how to flash the ESP32 correctly and get the 3 pin servo wired. Thanks in advance for the help and a great print. Printed perfectly!
The designer has replied
1
Reply
I've added some other tips in the description
1
Reply
hi, which kind of ESP32 did you use? thanks!
The designer has replied
0
Reply
I’ve used one of these https://www.amazon.it/dp/B09Z6RLS7R
0
Reply
Could you make a detailed list of instructions please.
1
Reply
My servo arm always slips I cannot mount it securely the teeth are too small and do not print at 0.2 I am designing a new arm where the original servo arm fits
(Edited)
Show original
1
Reply