Skip to the content
2 layers84.5 × 43.8 mmControl v1.5, the printed circuit board in 3D

All things sole.

Size
84.5 × 43.8 mm
Copper layers
2
Thickness
1.58 mm
Parts
50
Nets
66
Pads
200
Tracks, vias
207, 21
Pours
9
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
1 May 2025
Updated
19 Aug 2025

Overview

Control v1.5 is an open-source printed circuit board by miketrombley, from the miketrombley/Sole-Pod repository on GitHub. It is a 2-layer board of 84.5 × 43.8 mm with 50 parts on 66 nets, routed with 207 tracks and 21 vias.

It is built around the ESP32-S3-WROOM-1-N16R8, LD1117S33CTR-HXY and USBLC6-2SC6, with the FMMT617, 1N4001W and SMBJ13A among its other parts. Its parts include 12 connectors, 9 resistors, 8 diodes, 5 capacitors and 4 transistors. It belongs with the ESP32 boards of this library.

Main components

6

README

README.md

Sole Pod Control System

An ESP32-based firmware for controlling a smart pod system with motorized door and tray, LED lighting, and wireless connectivity.

🚀 Features

Core Functionality

  • Motorized Door & Tray Control: Automated opening/closing sequence with precise position control
  • Smart LED Lighting: Full-color NeoPixel LED with adjustable brightness and color
  • Hall Sensor Feedback: Precise position detection for door and tray states
  • Safety Systems: Motor stall detection with automatic shutdown
  • Persistent Settings: All configurations saved to flash memory

Connectivity

  • Bluetooth Low Energy (BLE): Local device control via mobile app
  • WiFi Integration: Network connectivity with credential management
  • AWS IoT Core: Cloud connectivity for remote monitoring and control
  • MQTT Communication: Real-time state updates and commands

User Interface

  • Physical Buttons: Manual door and LED control
  • Child Lock: Safety feature to prevent accidental operation
  • Status Indicators: Real-time feedback on device state

📋 Hardware Requirements

Compatible Hardware

  • Control Board: v1.4
  • LED Board: v1.2
  • Hall Sensor Board: v1.0
  • Microcontroller: ESP32

Pin Configuration

cpp
// Motor Control
#define DOOR_MOTOR 46          // Door motor control
#define DOOR_DIRECTION 3       // Door motor direction
#define TRAY_MOTOR 10          // Tray motor control  
#define TRAY_DIRECTION 11      // Tray motor direction

// Sensors
#define SW_DOOR_CLOSED 45      // Door closed sensor
#define SW_DOOR_OPENED 48      // Door opened sensor
#define SW_TRAY_CLOSED 35      // Tray closed sensor
#define SW_TRAY_OPENED 36      // Tray opened sensor

// User Interface
#define DOOR_BTN 47            // Door control button
#define LED_BTN 21             // LED control button
#define LED_DATA_PIN 14        // NeoPixel data pin

// Safety
#define VOLTAGE_PIN 9          // Motor current monitoring

🏗️ Architecture

System States

The pod operates in 5 distinct states:

  1. CLOSED (0): Door closed, tray closed
  2. DOOR_MIDWAY (1): Door transitioning, tray closed
  3. DOOR_OPEN (2): Door open, tray closed
  4. TRAY_MIDWAY (3): Door open, tray transitioning
  5. OPEN (4): Door open, tray open

Operation Sequence

Opening: CLOSED → DOOR_MIDWAY → DOOR_OPEN → TRAY_MIDWAY → OPEN Closing: OPEN → TRAY_MIDWAY → DOOR_OPEN → DOOR_MIDWAY → CLOSED

📱 BLE Interface

Service UUID

7d840001-11eb-4c13-89f2-246b6e0b0000

Characteristics

FunctionUUIDTypeRangeDescription
Door Status7d840002-...0001R/W0-10=Closed, 1=Open
Door Position7d840003-...0002R/W50,100Partial/Full open
LED Status7d840004-...0003R/W0-10=Off, 1=On
LED Brightness7d840005-...0004R/W0-100Brightness percentage
LED Color7d840006-...0005R/WHex6-digit hex color code
WiFi Credentials7d840007-...0006WStringFormat: SSIDENDNETWORKPASSWORDENDPASSWORD
WiFi Status7d840008-...0007R/NStringConnection status

☁️ AWS IoT Integration

Device Shadow Topics

  • Publish: $aws/things/pod_1/shadow/update
  • Subscribe: $aws/things/pod_1/shadow/update/accepted

Shadow Document Structure

json
{
  "state": {
    "reported": {
      "is_open": true,
      "nightlight": false,
      "color": "FF0000",
      "nightlight_brightness": 75
    },
    "desired": {
      "is_open": false,
      "nightlight": true,
      "color": "0000FF",
      "nightlight_brightness": 50
    }
  }
}

🔧 Configuration

AWS Configuration

Update aws_config.h with your AWS IoT settings:

cpp
#define AWS_IOT_ENDPOINT "your-endpoint-ats.iot.region.amazonaws.com"
#define DEVICE_NAME "your_device_name"

Replace the certificate and key constants with your device-specific credentials.

WiFi Configuration

Default credentials can be set in main.cpp:

cpp
const char* defaultSSID = "your_network";
const char* defaultPassword = "your_password";

🛡️ Safety Features

Motor Stall Detection

  • Threshold: 0.2V (configurable in VoltageReader.h)
  • Sampling: 50-sample average for noise reduction
  • Response: Immediate motor shutdown and system lockout
  • Recovery: Requires power cycle after stall detection

Child Lock

  • Prevents accidental button operation
  • Configurable via software flag
  • Applies to both door and LED controls

📊 Debug Output

Enable debug mode in main.cpp:

cpp
#define DEBUG_MODE true

Debug Information Includes:

  • Current pod state and target
  • Sensor readings (door/tray positions)
  • LED status (state, brightness, color)
  • WiFi connection status and signal strength
  • Motor voltage readings
  • Safety system status

🔄 State Persistence

The system automatically saves and restores:

  • LED color and brightness settings
  • Door position preference (50% or 100% open)
  • LED on/off state
  • Door open/closed status

Settings are stored in ESP32 flash memory using the Preferences library.

🚦 Status Codes

Safety Status

  • 0: OK - Normal operation
  • 1: Motor stall detected
  • 2: Obstacle detected
  • 3: Overcurrent condition
  • 4: System error

WiFi Status

  • "Connected" - Successfully connected
  • "Disconnected" - Not connected
  • "Connection failed" - Failed to connect
  • "SSID not available" - Network not found

🛠️ Development

Dependencies

  • Arduino ESP32 Core
  • WiFiClientSecure
  • PubSubClient (MQTT)
  • ArduinoJson
  • Adafruit NeoPixel
  • ESP32 BLE Arduino
  • Preferences

Building

  1. Install ESP32 board package in Arduino IDE
  2. Install required libraries
  3. Configure AWS certificates in aws_config.h
  4. Upload to ESP32 device

Testing

  • Use serial monitor at 115200 baud for debug output
  • Test BLE connectivity with compatible mobile app
  • Verify AWS IoT connection in AWS Console
  • Test all physical controls and sensors

📝 License

TBD

🤝 Contributing

[Add contribution guidelines if applicable]

📞 Support

[Add support contact information]


Hardware Compatibility: Control Board v1.4, LED Board v1.2, Hall Sensor Board v1.0

Parts

50
QtyValueFootprintReferences
4220RResistors:R603R4, R7, R8, R9
4FMMT617General Sizes:SOT-23-3Q1, Q2, Q3, Q4
4MountingHoleMountingHole:MountingHole_3mmH1, H2, H3, H4
310u 25VCapacitors:C603C1, C2, C3
3JST-B2B-PH-KConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ1, J3, J4
3JST-B3B-PH-KConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ6, J7, J8
2100n 50VCapacitors:C603C4, C5
210kResistors:R603R1, R5
21N4001WDiodes:SOD-123D7, D8
21N5819Diodes:D805D1, D4
21N914Diodes:D805D5, D6
25k1Resistors:R603R2, R3
2G6K-2F-Y-TR DC12Relay_SMD:Relay_DPDT_Omron_G6K-2F-YK1, K2
2JST-B2B-XH-AConnector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_VerticalJ10, J11
1 TYPE-C 16PIN 2MD(073)USB:USB_C_TYPE-C_16PIN_2MDJ5
11RResistor_SMD:R_1206_3216MetricR6
1BOOTButton_Switch_SMD:SW_SPST_B3U-1000PSW2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ12
1ESP32-S3-WROOM-1-N16R8 RF_Module:ESP32-S3-WROOM-1U3
1JST-B3B-XH-AConnector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ2
1JST-B4B-PH-KConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ9
1LD1117S33CTRPackage_TO_SOT_SMD:SOT-223-3_TabPin2U1
1LEDDiodes:D603D3
1LOGOLOGOG***
1RESETButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1SMBJ13ADiode_SMD:D_SMBD2
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6U2

More from miketrombley/Sole-Pod

2

Similar boards

  • 6 layers187 × 109 mmHALPI2, the printed circuit board in 3D

    HALPI2

    hatlabs/HALPI2-hardware

    Hat Labs Pi Carrier Board 2 design files

    739 parts9
  • 4 layers82.6 × 47.6 mmESP32 VESC Controller, the printed circuit board in 3D

    ESP32 VESC Controller

    jawedhakimi/Hiking_trailer

    Custom 4-layer PCB, 82.65 × 47.63 mm, 4 × M2.5 mounting holes (75 × 40 mm).

    108 parts
  • 2 layers64.9 × 38.1 mmMSPM0L1105 Dev Board, the printed circuit board in 3D

    MSPM0L1105 Dev Board

    sarthakchikte0312/MSPM0L1105_Dev_Board

    Custom MSPM0L1105 development board designed in KiCad with USB, UART, SWD, and GPIO support.

    50 parts
  • 2 layers60 × 90 mmLight Meter, the printed circuit board in 3D

    Light Meter

    davidrihtarsic/davidrihtarsic.github.io

    My homepage

    26 parts
  • 4 layers100 × 100 mmSTM32 ESC HW, the printed circuit board in 3D

    STM32 ESC HW

    cej830/STM32_BLDC_ESC_Firmware

    STM32_BLDC_ESC_Firmware

    162 parts
  • 4 layers160 × 80 mmAmos, the printed circuit board in 3D

    Amos

    des256/pcbs

    Making electronics as well

    401 parts

Questions

How big is the Control v1.5 PCB?

It measures 84.5 × 43.8 mm and has 2 copper layers, 1.58 mm thick.

What parts does the Control v1.5 use?

50 parts, built around the ESP32-S3-WROOM-1-N16R8, LD1117S33CTR-HXY, USBLC6-2SC6 and FMMT617. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Control v1.5 KiCad files?

From the miketrombley/Sole-Pod repository on GitHub, at the commit this page was made from: the board is Control v1.5/Control v1.5.kicad_pcb and its schematic Control v1.5/Control v1.5.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Control v1.5 design in my own project?

Its repository states no licence, so its author keeps all rights: ask miketrombley before reusing the design.