Skip to the content
2 layers54 × 100.5 mmDesk control, the printed circuit board in 3D

Firmware for an ESP32 based physical productivity widget

Size
54 × 100.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
38
Nets
73
Pads
217
Tracks, vias
314, 24
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
4 Apr 2025
Updated
14 Aug 2025

Overview

Desk control is an open-source printed circuit board by mubarizahmed, from the mubarizahmed/desk_control repository on GitHub. It is a 2-layer board of 54 × 100.5 mm with 38 parts on 73 nets, routed with 314 tracks and 24 vias.

It is built around the ESP32-WROOM-32U, AMS1117-3.3 and SS8050, with the SP0503BAHTG among its other parts. Its parts include 13 resistors, 10 capacitors, 3 ICs, 3 diodes and 2 transistors. It belongs with the ESP32 boards of this library.

Main components

4

README

README.md

desk-control

This is a simple physical widget that sits on your desk and allows you to perform some basic productivity tasks. It works independently of your computer or phone and hence, in theory, it should help you focus on your work. It is a work in progress and I will be adding more features as I go along.

Actual UI Mock UI

Features

  • Current Time - Displays the current time in a 24-hour format.

  • Weather - Displays the current temperature, wind, and weather condition (sunny, cloudy, etc.) for a given location.

  • Pomodoro Timer - A simple timer that helps you focus on your work for a some template amount of time and then take a break. Current implementation is 25 minutes of work and 5 minutes of break. You can change this in the code.

  • Calendar - Displays the current date and the next 2 events from your Google Calendar. You need to set up a Google script to get the events from your calendar. See the Google Calendar Setup section below.

  • Spotify Control - Control your Spotify playback (play, pause, next, previous) from the widget.

  • Todoist Integration - View and complete your upcoming tasks from Todoist.

  • PCB Design - Single PCB design that can be printed on PCBWay or JLCPCB.

Planned Features

  • Housing - 3D printed housing for the PCB and screen.

  • Sensor Integration - Add more sensors to the project - maybe a temperature sensor, humidity sensor, etc. to get more data from the environment.

  • Widget Details - Widgets will be clickable and will show more details about the current state. For example, the weather widget will show the hourly forecast for the next 24 hours, the calendar widget will show the events for the next week, etc.

Hardware Setup (Work in Progress)

The hardware setup is a work in progress. I will be updating this section as I go along. Currently, the hardware setup is:

  • Microcontroller - ESP32-DevKitC-v4
  • Display - 2.4" TFT LCD (ILI9341) with SPI interface
  • Rotary Encoder - KY-040 rotary encoder with push button.

A custom PCB has been designed but not yet tested. The schematic and KiCAD project files are available in the eda folder.

Schematic

Schematic

PCB Front PCB Back

PCB Front | PCB Back

KiCAD Project

Pin definitions are given in here.

Software Setup

ESP IDF is used to program the ESP32. The project can be configured using idf.py menuconfig. The following configuration options are most relevant:

  • ESP_WIFI_SSID - The SSID of the Wi-Fi network to connect to.
  • ESP_WIFI_PASSWORD - The password of the Wi-Fi network to connect to.
  • CALENDAR_URL - The URL of the Google script that returns the events from your calendar.

Mock UI

The mock UI is a simple representation of what the final UI will look like. It is not a final design and will be updated as I go along. The current design is a simple grid layout with a monotype font which makes absolute positioning of the elements easy.

Mock UI

Progress

The project is being prototyped on a breadboard and the hardware setup is a work in progress. The software is being developed in parallel. The current status of the project is shown below:

Progress

Google Calendar Setup

To get the events from your Google Calendar, you need to set up a Google script that will fetch the events and return them in a JSON format. The script should be deployed as a web app and the URL should be added to the code. The following steps will help you set up the Google script:

  1. Go to Google Apps Script and create a new project.
  2. Copy and paste the code from this (file)[https://github.com/mubarizahmed/desk_control/blob/main/other/calendar.gs] into the script editor
  3. Save the project and give it a name.
  4. Click on the Deploy button and select New deployment.
  5. Select Web app and give it a name.
  6. Select Anyone under Who has access and click on Deploy.
  7. Authorize the script to access your Google Calendar.
  8. Copy the URL of the web app and paste it in the code where it says CALENDAR_URL.
  9. Save the code and run the script to test it. You should see the events from your calendar in the JSON format.

Thanks to this blog post for the idea and the code to get the events from the Google Calendar. The code has been modified to fit the needs of this project.

Acknowledgements

Thanks to wttr.in for the weather API and Google Calendar API for the calendar API.

Parts

38
QtyValueFootprintReferences
710kResistor_SMD:R_1206_3216MetricR6, R7, R8, R9, R10, R11, R12
60u1Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC4, C6, C7, C8, C9, C10
4TestPoint_ProbeTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3, TP4
322uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC1, C2, C5
25k1Resistor_SMD:R_1206_3216MetricR3, R4
2SS8050Package_TO_SOT_SMD:SOT-23Q1, Q2
11kResistor_SMD:R_1206_3216MetricR5
122k1Resistor_SMD:R_1206_3216MetricR1
12kResistor_SMD:R_1206_3216MetricR13
147k5Resistor_SMD:R_1206_3216MetricR2
14u7Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1CP2102N-Axx-xQFN28Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mmU3
1D_SchottkyDiode_SMD:D_SOD-323FD2
1ESP32-WROOM-32URF_Module:ESP32-WROOM-32UU1
1LCD_2.8IN_TFTCustom:LCD_2.8_TFTLCD1
1LEDLED_SMD:LED_2512_6332MetricD3
1RotaryEncoder_SwitchCustom:Bourns-PEC11R-4220F-S0024-0-0-0SW1
1SP0503BAHTPackage_TO_SOT_SMD:SOT-143D1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_GCT_USB4110J1

Similar boards

  • 2 layers190.5 × 121.8 mmGantry PCBv2, the printed circuit board in 3D

    Gantry PCBv2

    4rynv/Eklavya_Gantry

    an attempt to automate screwing out and in of screw holes arranged in a matrix formation

    173 parts12MIT
  • 2 layers134.3 × 111.8 mmSDG11 ESP32, the printed circuit board in 3D

    SDG11 ESP32

    GreenStars91/CatBot-PCB_SD-G11

    ESP32 PCB for Senior Design Group 11 - Spring 2025

    67 parts
  • 2 layersHouse midget, the printed circuit board in 3D

    House midget

    Sharoun-Madoya/home_midget

    167 partsMIT
  • 2 layers61 × 77.8 mmReforge 1, the printed circuit board in 3D

    Reforge 1

    kishoriju-vrind/Reforge

    96 parts
  • 4 layers28.4 × 47.9 mmEasyduino ESP32, the printed circuit board in 3D

    Easyduino ESP32

    Hanqaqa/Easyduino

    Easily dive into different PCB KiCad designs of the most popular microcontroller devboards

    29 parts755CERN-OHL-P-2.0
  • 2 layers90.5 × 55.3 mmESP 32 IEM RIG RX VER 1.0, the printed circuit board in 3D

    ESP 32 IEM RIG RX VER 1.0

    dlmuschamp/ESP32IEMPack

    A repo to store my code and schematics for a custom wireless IEM pack built using 2 ESP32s and some TFT displays.

    69 parts4
  • 2 layers94 × 99 mmInductance Meter V2-0, the printed circuit board in 3D

    Inductance Meter V2-0

    RobieElliz/esp32InductanceMeterV2

    Portable ESP32 Inductance Meter: A low-cost, high-precision tool with dual 100nF/5µF refs, a TLV3202 comparator, fast USB-C (IP2312) charging, and a 2.4-inch OLED display for real-time readings.

    86 parts20MIT

Questions

How big is the Desk control PCB?

It measures 54 × 100.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Desk control use?

38 parts, built around the ESP32-WROOM-32U, AMS1117-3.3, SS8050 and SP0503BAHTG. 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 Desk control KiCad files?

From the mubarizahmed/desk_control repository on GitHub, at the commit this page was made from: the board is eda/desk_control/desk_control.kicad_pcb and its schematic eda/desk_control/desk_control.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Desk control design in my own project?

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