← Back to DIY projects

PSTOCK / SOFTWARE & HARDWARE

PStock.

Inventory management meets a storage system I built myself. PStock combines a web application and database with ESP32 control, stepper motors, a wooden rack and a circuit board.

Explore the project
Full view of the assembled PStock storage system with labelled boxes.
My PStock build: rack, storage boxes and retrieval mechanism
Web applicationMariaDBESP32Stepper motorsInterface: German

Project status

In manual use

The storage system is in manual use and works well. It already moved correctly with the original desktop application; movement control through the web application has not yet been tested on the rack. Dispensing and RFID box identification are prepared but are not a current priority. PStock remains a showcase without a download.

Project overview updated:

Current web application features

  • Storage overviewView storage locations in a grid, search for items and open inventory details.
  • Master dataCreate, edit, filter and sort items, storage locations, conditions and units.
  • Inventory transactionsRecord incoming and outgoing stock, check available quantities and view the history of each inventory entry.
  • Control interfaceControls for the X, Y and Z axes, stop functions and machine status. Limit switches enable repeatable homing to calibrate the machine. Movement commands from the PStock web application have not yet been tested on the rack.
  • Storage location coordinatesCoordinates can be adjusted individually for every storage location to compensate for inaccuracies in the physical build. Moving to storage locations and retrieval or storage sequences are prepared in the web application.
  • Import & exportImport CSV data and export reference data and reports as text files.
  • Label designDesign and save layouts with QR codes, text and database fields for inventory labels.

Prepared, not yet implemented

  • Automated dispensing: The system has been prepared for a dispensing system. Its implementation is still pending.
  • RFID box identification: Identification of boxes using RFID stickers is prepared, but has not yet been implemented.
  • Neither extension is currently a priority, because the storage system already works well manually.
Presentation
For viewing only · no downloads
Automation
Currently not a priority
Desktop version
The rack moved correctly
PStock web application
Rack movement not yet tested

From inventory to movement.

PStock brings software development, electronics and mechanical construction together in one project.

01

Manage in the browser

The web application organises items, locations and stock. A PHP backend connects the interface to a MariaDB database.

02

Control with ESP32

With the original desktop application, the ESP32 and stepper motors already moved the rack correctly. Communication with the machine controller uses WebSocket. Movement control through the PStock web application is still untested. The additional dispensing system and RFID box identification remain prepared extensions.

03

Build it myself

The project includes a wooden rack I built myself, a circuit board and a motorised mechanism. I designed custom components in CAD and produced them using 3D printing. The software and physical build work together.

From desktop to web.

PStock started as a desktop application. In that version, the rack already moved correctly.

The web application came later. Its control interface is present, but rack movement through the PStock web application has not yet been tested.

PStock Desktop Client: German-language item master data, a filter for resistors and the storage machine status panel.

The earlier desktop client

The desktop application showing item master data and its machine status panel.

From the first compartment to the final build.

Eight real photos document the wooden rack, circuit board, stepper motors and retrieval mechanism — from construction to the assembled system. Select a photo to enlarge it.

Wooden storage rack with open compartments during construction.

The beginning

The wooden storage compartments take shape in the workshop.

Wooden rack with guide rails and motorised mechanism during construction.

Rack & guide

The rack with its guide rail and the first mechanical components installed.

Close-up of the retrieval mechanism inside a wooden storage compartment.

Retrieval detail

A view into a storage compartment showing the retrieval mechanism.

Controller board and wiring beside a stepper motor on the rack.

Circuit board & drive

The controller board and stepper motor mounted on the rack.

Vertical guide with stepper motor and wiring on the wooden rack.

Vertical guide

Guide rail, drive and wiring along the height of the rack.

Retrieval mechanism with guide rollers, rail and wooden components.

Gripper & guide rollers

A close-up of the mechanical retrieval assembly.

PStock rack with labelled storage boxes and installed retrieval mechanism.

Assembled

The rack, labelled storage boxes and retrieval system come together.

Full view of the assembled PStock storage system with labelled boxes.

The final build

The assembled rack with storage boxes and prepared retrieval mechanism.

Manage, control, label.

Five screenshots show the German-language web interface, from inventory management to machine control and the label designer. The printed label shows how inventory data becomes a physical label.

PStock web application: Storage overview.

Storage overview

Storage locations shown in a grid with search, detail preview and inventory overview.

PStock web application: Items & master data.

Items & master data

Items with part numbers and descriptions in master data management.

PStock web application: Transactions & stock.

Transactions & stock

Manage incoming and outgoing transactions alongside the stock list.

PStock web application: Machine control.

Machine control

X, Y and Z axes, storage operations and machine status in one view.

PStock web application: Label designer.

Label designer

Design labels with a QR code, text and database fields.

Printed PStock label with QR code, inventory data and storage location.

The printed label

A real PStock label with item, quantity, transaction, storage location and QR code.

Control directly through the ESP32.

The ESP32 hosts its own web server with an interface for direct machine control. Commands and status data are exchanged via WebSocket.

Each storage location has individually adjustable coordinates to match the actual build and compensate for construction inaccuracies. Homing against limit switches lets the machine re-establish its reference positions for calibration whenever needed.

The image shows the smartphone view: X, Y and Z controls, separate Y1 and Y2 adjustments, positions, target values and machine status. Select the screenshot to open it in the integrated image viewer.

Smartphone view of the PStock ESP32 web server with X, Y and Z controls, Y1/Y2 adjustment, positions and machine status.

ESP32 control on a smartphone

The control interface served directly by the ESP32, with axis controls and status information.

Three axes, one system.

Original CAD views from the PStock project show the mechanisms for the X, Y and Z axes. Select a view to open the integrated image viewer.

Original CAD view of the X-axis mechanism from PStock.

X-axis

Mechanism for movement between rack columns.

Original CAD view of the Y-axis mechanism from PStock.

Y-axis

Vertical axis for movement between rack rows.

Original CAD view of the Z-axis mechanism from PStock.

Z-axis

Mechanism for moving the gripper during retrieval.

Code, electronics, mechanics.

HTML, CSS and JavaScript in the browser, PHP and MariaDB for inventory data, and an ESP32 with its own web server and stepper motors for the hardware. Communication with the machine controller uses WebSocket. PStock is presented here as my own software and hardware project.