1. 3D printing guide: material and top cover styles
- Sesame is designed to be printed in PLA.
- Most parts print without supports, but the top cover needs supports in targeted areas.
- Note: There are 3 different top cover styles currently available.
- Enclosed v91 is recommended as it's the most modern design with magnetic hat mounts, covered display wires, and multicolor detail support.
- See the Top Covers link for details on all styles: https://github.com/dorianborian/sesame-robot/tree/d106cbc8e158c982f408db421134f23273c5f51f/hardware/printing/stl/top-covers (opens in a new tab)
- Battery Upgrade: The internal frame design has been slightly altered to fit the new recommended battery (Bambu Lab 14500 Li-ion).
- If you have an older Sesame and want to upgrade to this battery, simply print the new internal frame and install it.
Note: Most parts print without supports, but the top cover needs supports in targeted areas.
In the original: 3D Printing Guide (opens in a new tab)
2. Recommended settings
- Material: PLA / PLA+
- Infill: 8-10%
- Wall Loops: 2
- Infill Pattern: Honeycomb
In the original: 3D Printing Guide (opens in a new tab)
3. Which 3D printed components need supports
- Check the table below for which components need supports.
- Get the STL file for each component from its link in the table.
3D Printed Components Support Guide
In the original: 3D Printing Guide (opens in a new tab)
4. Top cover settings (Original Style)
- The Top Cover Settings (Original Style) are: Brim: Outer brim only; Support type: Normal (Manual).
- The picture shows the manual support locations.
- The second picture shows what the part should look like sliced.
In the original: 3D Printing Guide (opens in a new tab)
5. Recommended print orientation for joints
- The recommended print orientation for the joints is shown in the picture.
- Using the auto orientate tool will place these the correct way.
In the original: 3D Printing Guide (opens in a new tab)
6. Power & Safety Notes
- Sesame needs at least 5 V at 3 A available at the rails.
- Lolin S2 Mini: It can be powered via USB-C PD (5V/3A capable) for tethered operation, or via battery + buck converter.
- Distro Board V3/V2: It supports both USB-C PD (5V/3A) for tethered operation AND battery + buck converter. It is included in all Sesame Build Kits.
- Distro Board V1 (Legacy): It cannot run on tethered USB-C power due to design limitations. It must use battery + buck converter for operation.
- When battery powering either build, route the pack through the rocker switch and buck converter before it touches the rails, mirroring the schematic in docs/wiring-guide/README.md (https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/docs/wiring-guide/README.md (opens in a new tab)).
- Never cut the factory battery connector off the pack.
- Instead, create adapter pigtails using XT30 or JST RCY leads so the pack remains chargeable.
- A Bambu Lab 14500 7.4V 800mAh Li-ion battery fits the new stock battery cavity (V3 requires printing the new internal frame).
- Always apply heat shrink tubing to connectors.
- Be extremely careful when cutting and soldering battery connectors.
- If you are still using the legacy 10440 solution make sure the cells are removed during soldering.
Note: Never cut the factory battery connector off the pack. Instead, create adapter pigtails using XT30 or JST RCY leads so the pack remains chargeable.
Note: Always apply heat shrink tubing to connectors.
Note: Be extremely careful when cutting and soldering battery connectors.
Note: If you are still using the legacy 10440 solution make sure the cells are removed during soldering.
Note: Distro Board V1 (Legacy) cannot run on tethered USB-C power due to design limitations and must use battery + buck converter for operation.
In the original: Power & Safety Notes (opens in a new tab)
7. Choose a wiring approach
- Read the three wiring approaches the project supports; they suit different build constraints.
- Lolin S2 Mini / hand wiring (RECOMMENDED FOR DIY BUILDS): uses a Lolin S2 Mini, loose headers, and point-to-point wiring.
- It is the lowest-cost option, easy to source, and supports USB-C PD for tethered power.
- It demands patience to keep the harness tidy and leaves less room for mistakes.
- Critical: Use 30AWG wire for data lines and 22AWG for power—larger gauge wire will make assembly nearly impossible.
- Sesame Distro Board V3 (INCLUDED IN NEW BUILD KITS): the latest custom PCB with SMD components (V2 is also supported but legacy and limited to USB power due to battery brownouts).
- It supports both USB-C PD and battery power.
- It is pre-flashed and included with all Sesame Build Kits.
- It is advanced to hand-solder; professional assembly is recommended if ordering separately.
- Sesame Distro Board V1 / ESP32-DevKitC-32E (LEGACY): uses the custom Distro Board V1 PCB stacked on an ESP32-DevKitC-32E.
- It is now phased out but still supported.
- V1 has known limitations and cannot run on tethered USB-C power (battery + buck converter required).
- Pick the approach that matches your component availability and comfort with managing wire bundles; the remainder of this guide dives into both workflows.
Note: Critical: Use 30AWG wire for data lines and 22AWG for power—larger gauge wire will make assembly nearly impossible.
Note: Sesame Distro Board V2 is legacy and limited to USB power due to battery brownouts.
Note: Sesame Distro Board V1 has known limitations and cannot run on tethered USB-C power (battery + buck converter required).
In the original: Wiring Guide (opens in a new tab)
8. Look at the wiring diagram and plan the wires
- Consult the S2 Mini wiring diagram below while reading this section.
- Know that the diagram captures every motor, sensor, OLED, and button lead, even if the photos only show a subset of the connections.
- Expect a high connection count.
- Plan wire lengths and colors before soldering to avoid confusion later.
- Credit for the new S2 mini guide goes to @captianeverypowersr on Discord.
Note: The Lolin S2 Mini method is a traditional protoboard build.
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
9. Prep
- Secure and tin all of the connections on the board before starting.
- To connect all the 3-pin headers together and to the board, first attach them to a small section of protoboard.
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
10. Build the power and ground rails
- Solder one wire to one end of the pins, then guide it along and remove the insulation.
- Solder this exposed wire to every middle pin (this creates the 5V rail).
- Do the same for the ground lane (this creates the ground rail).
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
11. Wire the data lines
You need
- Eight equal-length wires for data connections
- 30AWG silicone wire (data lines)
- 22AWG silicone wire (power and ground)
- You can now cut eight equal-length wires for data connections.
- Use 30AWG silicone wire for the data lines.
- Use 22AWG silicone wire for power and ground.
- Alongside the eight motor data leads, the diagram also calls out the OLED connections that branch from the microcontroller.
Note: Important: Things will get super cluttered if you use large gauge wire.
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
12. Pack the electronics
You need
- Zip ties
- Heat shrink tubing
- Know that packing electronics into the frame is difficult with the hand wiring setup because there are a lot of stray wires.
- Work slowly and methodically.
- Group wires with similar destinations.
- Use zip ties and heat shrink tubing to make them as compact as possible.
- Consider connecting the power switch after finishing most other wiring, since it's attached to the top cover.
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
13. Safety and testing
- Before powering on, double check your power and ground lines before turning the robot on.
- Make sure to cover any exposed wires.
Note: Do not solder and de-solder connections with power connected!
Note: Exposed wires can touch the pin headers and fry the ESP32 (especially when cramming the cover on).
Tip: To make fishing out the wires for the OLED display easier, you can temporarily twist them together into a group and then guide them through the opening in the top cover.
In the original: How to wire the Lolin S2 Mini / Hand Wiring (opens in a new tab)
14. Read the update notice and overview
- Read this update dated 1/20/26: Upon further testing, the Sesame distro board V1 will work, but it has a few issues that make it a little harder to assemble and will not run on teathered power (eg. USB C).
- Until V2 is released, the creator recommends using the S2 Mini / Hand Wiring approach.
- If you ordered a distro board V1, it will still be supported with wiring guides and firmware for the foreseeable future <3.
- Know that this option provides a cleaner, more organized wiring solution.
- Consult the distro-board wiring diagram below for exact connection locations.
Note: UPDATE 1/20/26: Upon further testing, the Sesame distro board V1 will work, but it has a few issues that make it a little harder to assemble and will not run on teathered power (eg. USB C). Until V2 is released, I recommend using the S2 Mini / Hand Wiring approach.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
15. Check the ESP32 pin headers
You need
- ESP32-DevKitC-32E board without pre-soldered pin headers
- Know that the distro board V1 stacks on top of the ESP32-DevKitC-32E, so you need an ESP32 board without pre-soldered pin headers.
- If your board came with headers already soldered on the top, you will need to desolder all of the headers and flip them to the bottom side of the ESP32 board so the distro board can mount on top.
Note: ESP32 Pin Header Requirement: The distro board V1 stacks on top of the ESP32-DevKitC-32E, so you need an ESP32 board without pre-soldered pin headers.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
16. Install the components
You need
- 4-pin JST connector (optional)
- 2-pin screw terminal (optional)
- The 4-pin JST connector and the 2-pin screw terminal are optional components.
- You can solder directly to pads instead of using the optional components.
- Pin header installation tip: If you're having difficulties keeping the pin headers in place to solder, try placing them in a protoboard first, then transferring them over.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
17. Set up the buck converter
You need
- Bambu Lab 14500 7.4V 800mAh Li-ion Battery (if using a battery)
- Know that a buck converter takes any voltage (5V-12V) and drops it to a stable 5V for the motors and ESP32.
- If using a battery, make sure to solder the buck converter enable pads.
- The buck converter is required for battery operation.
- A Bambu Lab 14500 7.4V 800mAh Li-ion Battery fits the latest internal frame perfectly.
- V3 requires soldering a XH2.54 pigtail directly to the board.
- Alternative power options: If you're using a benchtop supply or have another regulated 5V source, you can override the buck converter.
- To override the buck converter, take voltage directly from the screw terminal by soldering the override pads.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
18. Connect the battery
You need
- Female XT30 or JST RCY connector (matching your battery)
- Two wires that lead to the power terminal
- Get a female XT30 or JST RCY connector (matching your battery).
- Wire it to two wires that lead to the power terminal.
- This allows you to safely connect and disconnect the battery.
- Always remove the 10440 cells from the holder and recharge them separately using a proper Li-ion charger.
Note: If your battery has an XT30 or JST RCY connector, don't cut it off and wire the battery directly to the distro board! This is unsafe and means you can't charge your battery anymore.
Note: Always remove the 10440 cells from the holder and recharge them separately using a proper Li-ion charger. Most AAA holders do not support safe Li-ion charging and attempting to charge in-holder can be dangerous.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
19. Source the distro board
- Know that the Sesame Distro Board V1 is a custom PCB designed specifically for this project.
- It mounts on top of a ESP32-DevKitC-32E.
- More information is avalible in the PCB section of the documentation: https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/hardware/pcb/README.md (opens in a new tab)
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
20. Follow the general wiring tips
- Work slowly and methodically.
- Test connections before applying power.
- Keep wire runs as short and neat as possible.
- Label wires if helpful for troubleshooting.
- Take photos during assembly for reference.
In the original: How to wire the Sesame Distro Board V1 / ESP32-DevKitC-32E (opens in a new tab)
21. Read the Build Guide overview
- Use this walkthrough alongside the BOM, wiring guide, and printing notes to stay organized.
- Use the phase table below to see each phase, its goal, and the doc to reference if you get stuck.
- Treat each phase like a milestone.
- Snap progress photos and mark issues before moving on so troubleshooting later is painless.
- Watch the tutorial video linked from the image below.
The table below previews each phase, its goal, and the doc to reference if you get stuck.
Note: Treat each phase like a milestone. Snap progress photos and mark issues before moving on so troubleshooting later is painless.
In the original: Build Guide (opens in a new tab)
22. Phase 1: Gathering all the parts
Time: 1–2 sessions
You need
- hardware/bom for electronics, power gear, and Amazon search links
- hardware/printing for STL names, orientations, and support notes
- 11 printed parts (internal frame, top/bottom covers, joints R1–R4/L1–L4)
- 6–8 main electronic components depending on the wiring approach
- Print the full shell set and collect every electronic, connector, and fastener before any soldering starts.
- Use hardware/bom for electronics, power gear, and Amazon search links.
- Use hardware/printing for STL names, orientations, and support notes.
- Check that you have 11 printed parts (internal frame, top/bottom covers, joints R1–R4/L1–L4) plus 6–8 main electronic components depending on the wiring approach.
- Compare your parts with the picture of a complete set.
In the original: Build Guide (opens in a new tab)
23. Phase 1 checklist
You need
- solder
- flux
- heat-shrink
- zip ties
- M2 hardware
- 2× 14500 Li-ion cells in a 2× AAA holder (fit the stock battery cavity)
- Make sure all plastic parts are printed, and cleaned up.
- Test the MG90 servos quickly on a servo tester or Arduino to catch DOA units.
- Decide the power plan (USB-C PD vs. battery + buck) and source matching connectors (2× 14500 Li-ion cells in a 2× AAA holder fit the stock battery cavity).
- Stock consumables: solder, flux, heat-shrink, zip ties, M2 hardware.
In the original: Build Guide (opens in a new tab)
24. Phase 2: Electronics and Wiring - open the wiring guide
- Goal: Build 90% of the harness on the bench so the frame install is quick.
- Open the wiring guide.
- Pick the section that matches your build: S2 Mini hand-wired, Distro Board V3/V2, or Distro Board V1 legacy.
In the original: Phase 2: Electronics and Wiring (opens in a new tab)
25. Lay out the connectors
- Lay out every connector in the order shown on the wiring diagram before soldering.
- This keeps the data lines from getting crossed.
In the original: Phase 2: Electronics and Wiring (opens in a new tab)
26. Solder the rails and signal wires
- Tin and solder the rails/buck converter first.
- Then route the signal wires.
- Leave generous length for the motors that terminate near the hips.
In the original: Phase 2: Electronics and Wiring (opens in a new tab)
27. Label the servo leads
- This is optional but you can also label each servo lead (S0–S7) using tape flags as soon as it is soldered.
- Future you will thank you.
In the original: Phase 2: Electronics and Wiring (opens in a new tab)
28. Phase 2 checklist
- Check: Harness built per your wiring diagram with all joints strain-relieved.
- Check: Buck converter trimmed to 5.1 V output and shrink-wrapped.
- Check: Servo leads labeled and loosely bundled by destination.
- Check: Power switch and OLED leads pre-cut but still un-soldered.
Note: Stop before permanently wiring the power switch or OLED. Those final joints happen after the electronics are seated in the frame so you can dial the cable length exactly.
In the original: Phase 2: Electronics and Wiring (opens in a new tab)
29. Phase 3: Hardware Pre-Assembly - Hip Joints
You need
- The four hip joint parts (R1, R2, L1, L2)
- One-sided servo horns from the servo motor bags
- M2 × 5 mm self-threading screws (the ones with a larger gap between thread spikes)
- Know the goal: pre-load the four hip joints (R1, R2, L1, L2) with one-sided servo horns so installation is tool-free later.
- Lay out the four hip joint parts.
- Find the one-sided servo horns from the servo motor bags (ignore the included extra screws).
- Notice the servo horn has a taller side and a shorter side.
- Press the shorter side into the hip joint. There should be just enough clearance to press this piece in flush.
- While holding the horn flat, drive an M2 × 5 mm self-threading screw (the ones with a larger gap between thread spikes) through the second hole in the horn and into the plastic until secure.
- Repeat for all four hip joints.
- Do not mount these joints on the servos yet. Calibration requires every motor shaft to spin freely.
Note: Do not over-tighten self-threading screws. Since the threads are plastic, over-tightening will permanently damage the hole.
Note: Do not mount these joints on the servos yet. Calibration requires every motor shaft to spin freely.
In the original: Phase 3: Hardware Pre-Assembly (opens in a new tab)
30. Leg Joints
You need
- Leg shells
- Motors (one dedicated motor for each leg shell)
- Self-threading screws
- Slide each leg shell over its dedicated motor before the frame install.
- Use the built-in gap to route wires without pinching them.
- Feed the motor wires through the side slot.
- Push the motor into the side of the leg piece that has holes in it. Make sure the motor shaft is at the very top.
- Confirm the motor sits flush and use self-threading screws to permanently affix the motors into the leg pieces.
- Repeat for the remaining legs.
In the original: Phase 3: Hardware Pre-Assembly (opens in a new tab)
31. Top Cover & Soldering
You need
- Top cover
- OLED display
- Battery switch
- Pre-crimped JST connector wires
- Battery connector wires
- Main board
- Solder
- Self-threading screws
- The next step is loading the OLED and power switch into the top cover. At this stage, we also do the minimal soldering required for the build.
- Power Switch: Press the battery switch firmly into the back slot of the top cover.
- DO NOT connect the wires yet.
- OLED Display: Apply a small amount of solder to the pin headers on the display (tinning).
- Using the pre-crimped JST connector wires, match the wires to their respective marks on the display and solder them.
- Battery Connectors (Main Board): Remove sheathing on the ends of the battery connector wires, tin them, and solder them to the battery pads on the main board in an L-shape pointing upwards.
- Make sure they do not go over the edge of the board, or the top cover won't fit.
- Install Display: Push the wired OLED display gently into its slot inside the top cover.
- Insert self-threading screws into the small screw holes beside the display to clamp it permanently in place.
Note: DO NOT connect the wires yet.
Note: Make sure the battery connector wires do not go over the edge of the board, or the top cover won't fit.
In the original: Phase 3: Hardware Pre-Assembly (opens in a new tab)
32. Phase 3 checklist
- Check: Hip joints pre-loaded with servo horns, not yet attached to motors.
- Check: Leg pieces installed on every motor.
- Check: Power switch and OLED display installed in the top cover.
- Check: Battery connectors soldered to the main board.
In the original: Phase 3: Hardware Pre-Assembly (opens in a new tab)
33. Phase 4: Hardware Main Assembly
- Goal: Seat the frame motors, route wiring, and secure the electronics stack so the robot is ready for calibration.
In the original: Phase 4: Hardware Main Assembly (opens in a new tab)
34. Battery Holder
- Insert the battery holder into the back of the internal frame piece.
- Route the red and black wires up the slot.
In the original: Phase 4: Hardware Main Assembly (opens in a new tab)
35. Motor Installation
- While holding the battery wires in place, insert the four remaining side motors.
- The motor shaft should be facing towards the outside of the internal frame.
- Insert motors at an angle and press them the rest of the way.
- Make sure the motor shafts are closest to the outer edge of the frame.
Note: Make sure not to pinch any wires at the bottom.
In the original: Phase 4: Hardware Main Assembly (opens in a new tab)
36. Secure Motors
- Use self-threading screws to permanently affix all four side motors to the frame.
In the original: Phase 4: Hardware Main Assembly (opens in a new tab)
37. Prepare the wires
- Before dropping hardware in, trim or bundle any stray wires so nothing can flop into the servo gears.
- Double-check that every connection exits upward.
- Pre-route any long wires upward so they naturally hug the future top cover.
Note: Make sure no stray wire can flop into the servo gears.
In the original: Installing the Main Electronics (opens in a new tab)
38. Lower the electronics harness into the cavity
- Lower the electronics harness into the cavity.
- Keep the USB port toward the rear.
- Use these two cues any time the orientation feels ambiguous: Notch = front. USB port = back.
In the original: Installing the Main Electronics (opens in a new tab)
39. Secure the electronics: S2 Mini build
You need
- Controller (and optional protoboard)
- Screw the controller (and optional protoboard) directly into the frame using the provided mounting holes.
- If you built a small protoboard backplane, use the spare holes in the internal frame to secure it so the servo plugs are easy to reach later.
In the original: Installing the Main Electronics (opens in a new tab)
40. Secure the electronics: Distro Board V1 build (Legacy)
You need
- Four M2.5 × 5 mm male-female standoffs
- Sesame Distro Board V1
- ESP32 DevKit
- Install four M2.5 × 5 mm male-female standoffs to raise the Sesame Distro Board V1 so it clears the ESP32 DevKit.
- Then secure the assembly using the top screws.
In the original: Installing the Main Electronics (opens in a new tab)
41. Secure the electronics: Distro Board V3/V2 build (Build Kits)
- Mount by gently bringing cables towards the center nicely so that the main board can sit properly.
- Attach the main board to the internal frame.
- Attach it using self-threading screws in the two mounting holes in the corner.
In the original: Installing the Main Electronics (opens in a new tab)
42. Calibrating & Running the Testing Firmware: goal and caution
- The goal is to teach the controller where each motor sits so the walking poses land correctly.
- Read the caution below before you start.
Note: Never run calibration with joints attached. A misaligned horn can stall or strip a servo instantly. All motor shafts should be free spinning at this point.
In the original: Calibrating & Running the Testing Firmware (opens in a new tab)
43. For S2 Mini and Distro Board V1 (Legacy) builds: flash the testing firmware
- Inspect the harness to ensure no bare conductors can short during testing.
- Add heat-shrink or tape where needed.
- Connect a reliable USB-C cable.
- Flash
sesame-motor-tester.ino from the debugging-firmware folder (https://github.com/dorianborian/sesame-robot/tree/d106cbc8e158c982f408db421134f23273c5f51f/firmware/debugging-firmware (opens in a new tab)) using Arduino IDE. - If you have never flashed an ESP32 before, pause here and follow a quick tutorial so you are comfortable resetting/entering boot mode.
- Open the Motor testing guide (../../hardware/Motor-testing/README.md).
In the original: Calibrating & Running the Testing Firmware (opens in a new tab)
44. For Distro Board V3/V2 (Build Kits): power up and connect to the portal
You need
- A V3 or V2 Board from a Build Kit
- A strong USB power supply (fast chargers for phones or laptop chargers work great)
- Know that a V3 or V2 Board from a Build Kit comes pre-flashed with the Sesame firmware.
- There is no need to plug into a computer and use Arduino IDE to flash firmware.
- Power Up: Plug the board into a strong USB power supply (fast chargers for phones or laptop chargers work great).
- Check the Wi-Fi networks on your phone or computer.
- The Sesame board will create an access point.
- Connect to it to open the controller portal.
- If on desktop and the portal doesn't show, go to
sesame-root.local in your browser. - Mobile is recommended.
- Initialize PWM: Tap the "Standby" button in the portal to initialize the PWM channels.
- The moment you plug a motor in, it will go to its correct active position.
Note: If you are using the V2 Distro board, it currently has instabilities with the battery system and won't work on batteries, you must plug via USB-C.
In the original: Calibrating & Running the Testing Firmware (opens in a new tab)
45. General instructions continuing: check the diagram and plug the motors in
- Refer to Diagram: Use the diagram below to associate motor numbers with their physical position.
- Ensure the frames are roughly oriented correctly.
- Plug Motors In: Starting with Motor 0, plug the connector into the corresponding board header.
- Crucial: Ensure the brown wire aligns with the ground rail!
- Upon plugging it in, you should hear it whir into life and hold position.
- Repeat for all 8 motors.
Note: Crucial: Ensure the brown wire aligns with the ground rail!
Note: 99% of the time, if your motor is moving in the wrong direction, crashing, or being sporadic, the motor is plugged into the wrong slot. Check your wiring!
In the original: Calibrating & Running the Testing Firmware (opens in a new tab)
46. Attach the hip joints
- Attach the joints while the motors are turned on and holding their "Stand" position.
- Select the matching hip joint for your motor.
- While in "Stand" mode, push the hip joint onto the motor shaft at a 45-degree angle.
In the original: Attaching Hip & Leg Joints (opens in a new tab)
47. Test the hip angles
- Tap "Rest" in the portal.
- Check that the hip joint moves perfectly parallel to the body.
- Tap "Stand" again. The hip joint should go back to 45°.
- Alternate between "Rest" and "Stand" to ensure the hip joint is placed correctly.
In the original: Attaching Hip & Leg Joints (opens in a new tab)
48. Fasten the hip joints
- If it looks good, fasten the hip joint to the motor using an M2.5 machine screw through the main hole into the motor shaft.
- Tighten gently.
Note: Don't over-torque against the motor as this may cause a brownout.
In the original: Attaching Hip & Leg Joints (opens in a new tab)
49. Attach the leg joints
- Repeat the same process with the leg joints.
- Check against "Rest" and "Stand".
- Ensure nothing collides.
- Then affix the leg joints using screws.
In the original: Attaching Hip & Leg Joints (opens in a new tab)
50. Connect and tighten the battery wires
- Insert the battery wires into the screw terminal on the board.
- Use a flathead screwdriver to tighten them securely.
In the original: Final Wiring and Top Cover (opens in a new tab)
51. Route the wires on the underside
- Flip the robot over.
- Find the channels for all the wires on the underside.
- Securely press all of the wires into these channels.
In the original: Final Wiring and Top Cover (opens in a new tab)
52. Bundle the wires
- Separate the wires gently into two groups (left and right).
- Wrap a zip tie around each bundle.
- Fold the zip tie once.
- Tighten the zip tie to create a tight bundle.
- This helps the top cover fit seamlessly.
In the original: Final Wiring and Top Cover (opens in a new tab)
53. Test the switch
- Make sure the batteries are charged and insert them.
- Flip the switch.
- Check if the Wi-Fi network appears or if the display lights up.
- If things aren't working, double-check connections.
Note: V2 Board Owners: If you are using the V2 Distro board from a kit, there are instabilities with the battery system that prevent reliable battery usage. You must run your Sesame via USB-C (fast charger / laptop charger) for now. A free V3 Distro board will be provided to pre-order kit buyers!
In the original: Final Wiring and Top Cover (opens in a new tab)
54. Put on the top cover
- Gently pack all the bundles in.
- Slowly press the top cover down onto the electronic components.
Note: Be very gentle to avoid shorting or disconnecting anything.
In the original: Final Wiring and Top Cover (opens in a new tab)
55. Secure the top cover
- Hold the whole robot together.
- Insert the M2 self-threading screws into the bottom of the frame.
- The screws thread securely into the mounting holes for the top cover.
In the original: Final Wiring and Top Cover (opens in a new tab)
56. Install the bottom cover
You need
- The remaining two self-threading screws
- Set the bottom cover in place.
- Check that no wires are trapped.
- Use the remaining two self-threading screws into the bottom to secure it.
In the original: Bottom Cover & Final Checks (opens in a new tab)
57. Add the sticky pads to the feet
- You can apply the included sticky pads to the feet if you like!
In the original: Bottom Cover & Final Checks (opens in a new tab)
58. Phase 4 checklist and final notes
- Check that the motors are mounted and screwed in on the hip and leg joints.
- Check that the harness is routed into the channels and zip-tied without pinch points.
- Check that the top and bottom covers are installed.
- The hardware is complete.
Note: A common issue on battery power (if you upgrade) is that your Sesame robot will crash on movement. Setting the motor current delay higher in the settings may help, but upgrading to a Lithium Polymer (LiPo) cell often solves it for advanced users!
In the original: Bottom Cover & Final Checks (opens in a new tab)
59. Do the sanity checks
- Toggle the power switch (if you installed a battery) and confirm it fully disconnects the pack.
- Confirm the USB-C port is accessible for future firmware updates.
- Inspect the OLED wiring one last time to ensure SDA/SCL aren’t swapped.
In the original: Final Checks and Flashing the Firmware (opens in a new tab)
60. Flash the production firmware (For DIY / S2 Mini / Distro V1)
- If you are using the V2 Build kit board, you can skip this step! It is pre-flashed.
- Choose the code variant from the firmware folder.
- Customize pin definitions if you're using a different ESP32.
- Use Arduino IDE to flash the full firmware bundle (motors + faces).
- Read the detailed notes in firmware/README.md: https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/firmware/README.md (opens in a new tab)
- Connect to Sesame’s Wi-Fi AP, load the control page, and trigger a pose to verify everything moves as expected.
In the original: Final Checks and Flashing the Firmware (opens in a new tab)
61. What to do next
- That’s it. You’ve built Sesame!
- From here you can design new poses in Sesame Studio: https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/software/sesame-studio/README.md (opens in a new tab)
- You can also tweak the hardware per hardware/README.md: https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/hardware/README.md (opens in a new tab)
- Or do whatever you want!
In the original: Final Checks and Flashing the Firmware (opens in a new tab)
62. Know when you need to flash
- Note for Sesame Build Kit users: your Distro Board V3 (and earlier V2) kits come pre-flashed with the latest firmware.
- You only need to flash firmware if you want to customize it or update to a newer version.
In the original: How to Flash the Firmware (opens in a new tab)
63. Install the prerequisites
You need
- Arduino IDE (version 2.0 or higher recommended)
- ESP32 Board Support (installed via Arduino IDE's Board Manager)
- ESP32Servo v3.0.9 (recommended)
- Adafruit SSD1306
- Adafruit GFX Library
- Install Arduino IDE (version 2.0 or higher recommended).
- Open Arduino IDE.
- Go to File → Preferences.
- Add the URL below to "Additional Board Manager URLs".
- Go to Tools → Board → Boards Manager.
- Search for "ESP32" and install "ESP32 by Espressif Systems" (v2.0.0 or higher).
- Install the required libraries via Library Manager: ESP32Servo v3.0.9 (recommended), Adafruit SSD1306, and Adafruit GFX Library.
Additional Board Manager URL
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Note: Important: Use ESP32Servo v3.0.9 for this project. Newer releases currently have a known issue where writing to one servo can affect multiple channels (madhephaestus/ESP32Servo#103, https://github.com/madhephaestus/ESP32Servo/issues/103 (opens in a new tab)).
In the original: How to Flash the Firmware (opens in a new tab)
64. Connect your board and open the firmware
- Connect your board via USB to your computer.
- Open sesame-firmware-main.ino (https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/firmware/sesame-firmware-main.ino (opens in a new tab)) in Arduino IDE.
- Make sure you have it in a folder with the same name.
- Also include all of the .h header files.
In the original: How to Flash the Firmware (opens in a new tab)
65. Select your board
- Go to Tools → Board.
- For Lolin S2 Mini: select "LOLIN S2 Mini".
- For Sesame Distro Board V1: select "ESP32 Dev Module".
- For Sesame Distro Board V2 or V3: select "ESP32S3 Dev Module".
In the original: How to Flash the Firmware (opens in a new tab)
66. Configure board settings
- For Lolin S2 Mini: set Upload Speed to 921600.
- For Lolin S2 Mini: set USB CDC On Boot to "Enabled".
- For Lolin S2 Mini: set Partition Scheme to "Default 4MB with spiffs".
- For Distro Board V2 or V3 (ESP32-S3): set USB CDC On Boot to "Enabled" (Required for Serial Monitor).
- For Distro Board V2 or V3 (ESP32-S3): set Flash Mode to "QIO 80MHz".
- For Distro Board V2 or V3 (ESP32-S3): set Partition Scheme to "Default 4MB with spiffs".
In the original: How to Flash the Firmware (opens in a new tab)
67. Select the correct port
- Go to Tools → Port and select your ESP32's COM port.
In the original: How to Flash the Firmware (opens in a new tab)
68. Choose your board configuration in the code
- Open sesame-firmware-main.ino (https://github.com/dorianborian/sesame-robot/blob/d106cbc8e158c982f408db421134f23273c5f51f/firmware/sesame-firmware-main.ino (opens in a new tab)).
- Find the pin configuration section (around line 55-65).
- If you built with the Lolin S2 Mini: uncomment the S2 Mini
servoPins array and I2C_SDA/I2C_SCL defines. Comment out the Distro Board section. - If you built with the Distro Board V3: uncomment the V3
servoPins array and I2C_SDA/I2C_SCL defines. Comment out others. - If you built with the Distro Board V2: uncomment the V2
servoPins array and I2C_SDA/I2C_SCL defines. Comment out others. - If you built with the Distro Board V1: uncomment the V1
servoPins array and I2C_SDA/I2C_SCL defines. Comment out others.
In the original: How to Flash the Firmware (opens in a new tab)
69. (Optional) Configure network mode
- If you want the robot to connect to your WiFi network (for API access and remote control), edit the network configuration section (around line 17-22).
- Use the code below as the example for that section.
- Leave
ENABLE_NETWORK_MODE false to use Access Point mode only.
Network configuration
#define NETWORK_SSID "YourNetworkName" // Your WiFi network name
#define NETWORK_PASS "YourPassword" // Your WiFi password
#define ENABLE_NETWORK_MODE true // Set to true to enable
In the original: How to Flash the Firmware (opens in a new tab)
70. Upload the firmware
- Click the Upload button (→) in Arduino IDE.
- Wait for compilation and upload to complete.
In the original: How to Flash the Firmware (opens in a new tab)
71. Test the connection
- Open Serial Monitor (Tools → Serial Monitor, set baud rate to 115200).
- Reset the board - you should see startup messages and network information.
- The serial monitor provides individual motor control for testing and troubleshooting.
- If using AP mode only: connect to the "Sesame-Controller-BETA" WiFi network (password:
12345678) and navigate to any website. - If using network mode: look for the "Connected to network!" message in Serial Monitor, then access via
http://sesame-robot.local or the displayed IP address.
In the original: How to Flash the Firmware (opens in a new tab)
72. Troubleshooting: Linux USB permissions, upload and port problems
- Linux USB Permissions: if your port isn't showing up or you get "Permission Denied", you likely need to add your user to the
dialout group with the command below. - Log out and back in for changes to take effect.
- Upload fails: try holding the BOOT button while uploading, or try a different USB cable.
- For S3-based boards, the "USB CDC On Boot" setting is critical for finding the port after a reset.
- Port not found: install the appropriate USB drivers (CP210x for S2 Mini, CH340 for some ESP32 boards). Windows 10/11 usually includes these.
Linux
sudo usermod -a -G dialout $USER
In the original: How to Flash the Firmware (opens in a new tab)
73. Troubleshooting: robot not moving and network problems
- Robot not moving: check power supply and servo connections; increase
motorCurrentDelay in web settings if brownouts occur. - Can't connect to network: verify
ENABLE_NETWORK_MODE is set to true and SSID/password are correct. - Check Serial Monitor for connection status - look for "Connected to network!" or error messages.
- Ensure your WiFi network is 2.4GHz (ESP32 does not support 5GHz).
- Try increasing the connection timeout in the code (currently 10 seconds / 20 attempts).
In the original: How to Flash the Firmware (opens in a new tab)
74. Troubleshooting: mDNS hostname and API commands
- mDNS hostname not resolving: on Windows, install Bonjour Print Services (https://support.apple.com/kb/DL999 (opens in a new tab)).
- On Linux, ensure
avahi-daemon is installed and running. - Try accessing via IP address instead (check Serial Monitor for the assigned IP).
- Some routers block mDNS traffic - check router settings or use IP address.
- API commands not working: ensure you're sending POST requests to
/api/command (not GET). - Verify
Content-Type: application/json header is set. - Check Serial Monitor for error messages and parsed command output.
- Test with a simple cURL command first to verify connectivity.
In the original: How to Flash the Firmware (opens in a new tab)