Skip to the content
2 layers92 × 88 mmChimiqueV0, the printed circuit board in 3D

DeskMate is an end-of-year engineering project built at INSAT (National Institute of Applied Science and Technology, Tunis). It addresses a concrete problem: study sessions are rarely as effective as they should be.

Size
92 × 88 mm
Copper layers
2
Thickness
1.6 mm
Parts
9
Nets
39
Pads
78
Tracks, vias
154, 1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
6 Jun 2026
Updated
6 Jun 2026

Overview

ChimiqueV0 is an open-source printed circuit board by ahmedm0007, from the ahmedm0007/DeskMate-Robot repository on GitHub. It is a 2-layer board of 92 × 88 mm with 9 parts on 39 nets, routed with 154 tracks and 1 via.

It is built around the ROB-14450 and TB006-508-02BE. Its parts include 7 connectors and 2 ICs. It belongs with the ESP32 boards of this library.

Main components

2

README

README.md

🤖 DeskMate — Intelligent Study Assistant Robot

A physical desktop robot that monitors student concentration in real time, detects distraction and fatigue, and provides personalized academic assistance through voice interaction and AI-powered document Q&A.


📌 Overview

DeskMate is an end-of-year engineering project built at INSAT (National Institute of Applied Science and Technology, Tunis). It addresses a concrete problem: study sessions are rarely as effective as they should be. Students get distracted, lose focus, and have no tool that actively intervenes.

DeskMate is a physical companion robot — present on your desk like a lamp — that observes, analyzes, and acts. Unlike passive apps, it adapts its behavior in real time to the student's actual state.


✨ Features

👁️ Behavioral Monitoring (Vision Pipeline)

  • Real-time face detection and multi-user recognition (MediaPipe + ArcFace/DeepFace)
  • Fatigue detection via Eye Aspect Ratio (EAR) and Mouth Aspect Ratio (MAR)
  • Distraction detection: gaze direction (head pose estimation) + smartphone detection (YOLOv8)
  • Absence detection: alerts when the student leaves the camera field
  • Runs at ~30 FPS on Raspberry Pi 4, well within the 500ms real-time constraint

🗣️ Voice Interaction (Vocal Pipeline)

  • Wake word detection (local, via Vosk) → Speech-to-Text (Google Web Speech API)
  • LLM-powered intent classification and conversational responses (Qwen2.5-7B-Instruct via Hugging Face API)
  • Text-to-Speech output (edge_tts + pygame) with ~0.8s generation time
  • End-to-end latency: 2–4 seconds for a complete voice exchange

📚 Academic AI Assistant (RAG System)

  • Upload your own PDF course documents
  • Hybrid search: semantic (ChromaDB) + keyword (BM25) retrieval
  • Answers generated by Gemini 2.5 Flash, grounded exclusively in your documents
  • Evaluation results: 85% answer correctness, 87.5% hit rate on test corpus

📅 Adaptive Study Planner

  • Input your subjects, mastery level, exam dates, and available hours
  • Generates a personalized weekly revision schedule using a priority scoring model
  • Urgency factor recalculated daily as exams approach
  • Subjects automatically removed after their exam date

📊 Session Management & Dashboard

  • Supports Pomodoro, Deep Work, and 52/17 productivity techniques
  • Voice-controlled session start/pause/stop
  • OLED display shows current state (focused / distracted / break / session end)
  • React/Next.js web dashboard (localhost): session history, productivity graphs, planning, PDF upload

🚗 Autonomous Mobility

  • Differential drive (2× GA12-N20 motors) controlled by ESP32
  • ToF sensor (VL53L0X) for desk-edge detection and collision avoidance
  • Autonomous repositioning to keep the student in camera frame

🏗️ System Architecture

text
┌─────────────────────────────────────────────────────┐
│            LAYER 1 — Perception                     │
│   Pi Camera 8MP | INMP441 Mic (I2S) | ToF VL53L0X  │
└────────────────────┬────────────────────────────────┘
                     │
┌────────────────────▼────────────────────────────────┐
│          LAYER 2 — AI Processing                    │
│  OpenCV + YOLOv8 + MediaPipe (Vision)               │
│  Vosk + Google STT (Speech)                         │
│  LLM (Qwen2.5) + RAG (LangChain + ChromaDB)         │
└────────────────────┬────────────────────────────────┘
                     │
┌────────────────────▼────────────────────────────────┐
│       LAYER 3 — Decision & Orchestration            │
│       FastAPI — State machine | Scheduler | Rules   │
└────────────────────┬────────────────────────────────┘
                     │
┌────────────────────▼────────────────────────────────┐
│            LAYER 4 — Actuators                      │
│    GA12-N20 Motors | OLED SSD1306 | Speaker (TTS)   │
└────────────────────┬────────────────────────────────┘
                     │
┌────────────────────▼────────────────────────────────┐
│         LAYER 5 — User Interface (localhost)        │

🔧 Hardware

ComponentRole
Raspberry Pi 4 (4GB)Main brain — runs all AI/software modules
ESP32Spinal cord — real-time actuator control
Pi Camera Module V2 (8MP)Vision pipeline input
INMP441 Microphone (I2S)Voice capture
MAX98357A Amplifier + 8Ω SpeakerTTS audio output
OLED Display SSD1306 (0.96")Real-time status display
ToF Sensor VL53L0XDesk-edge detection
2× GA12-N20 DC Motors + TB6612FNGDifferential drive
2× 18650 Li-ion (3000 mAh) + XL4015 BuckPower supply (~2.5–3.5h autonomy)
3D-printed PLA chassis3-level structure, custom-designed

💻 Tech Stack

AI & Vision OpenCV MediaPipe YOLOv8 DeepFace (ArcFace) LangChain ChromaDB BM25 Gemini 2.5 Flash Qwen2.5-7B

Speech Vosk Google Web Speech API edge_tts pygame

Backend FastAPI Python 3.10+ SQLite PostgreSQL

Frontend React 19 Next.js TypeScript Tailwind CSS v4 Recharts Vite

Embedded Raspberry Pi OS ESP32 (Arduino) pigpio I2C I2S UART PWM

Design SolidWorks (3D chassis) KiCad (PCB schematic)


📈 Performance Results

ModuleMetricResult
Vision pipelineProcessing speed~30 FPS on RPi 4
Behavioral detectionLatency< 500ms ✅
Face recognition (ArcFace)Accuracy> 99%
Phone detection (YOLOv8)mAP@5052.1% (+ temporal smoothing)
RAG systemAnswer correctness85.0%
RAG systemHit rate87.5%
Voice pipelineEnd-to-end latency2–4 seconds
TTS (edge_tts)Generation time~0.8 seconds

👥 Team

NameRole
MAMI AhmedEmbedded systems, hardware design, mechanical conception
ZGHIBI AhmedAI pipeline, system integration
EL KADHI Mohamed AmineVision & RAG modules
ZNAGUI WaelBackend & dashboard

Supervisor: Mme JAAFAR Imen
Institution: INSAT — 4th year, Industrial Computing and Automation
Defended: June 1st, 2026


📄 License

This project was developed as an academic end-of-year project at INSAT, Tunis. All rights reserved by the authors.

🗂️ Mechanical Files (SolidWorks)

Full 3D assembly and parts (SolidWorks + STL) are too large for GitHub.
👉 [Download 3D Files (Google Drive)] https://drive.google.com/drive/folders/134jamOGdysIHbzPeDwZQ4sSwSuv-kNpy?usp=sharing

Includes:

  • Full robot assembly (RobotAssemblageV1.SLDASM)
  • All individual parts (SLDPRT)
  • STL files for 3D printing
  • KiCad PCB schematic

Parts

9
QtyValueFootprintReferences
2TB006-508-02BETB006-508-02BE:CUI_TB006-508-02BEJ7, J8
1ESP32-DEVKIT-V1ESP32-DEVKIT-V1:MODULE_ESP32_DEVKIT_V1U3
1MPU6050B8B-XH-A:JST_B8B-XH-AJ4
1Mot 1Connector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_VerticalJ13
1Mot 2Connector_JST:JST_EH_B6B-EH-A_1x06_P2.50mm_VerticalJ2
1OLED ScreenB4B-PH-K:JST_B4B-PH-KJ1
1ROB-14450ROB-14450:MODULE_ROB-14450U1
1TofSensorB4B-PH-K:JST_B4B-PH-KJ5

Similar boards

  • 2 layers82.3 × 75.7 mmAir Schematic v1, the printed circuit board in 3D

    Air Schematic v1

    UCLA-Rocket-Project/Air-Schematic-v1

    19 parts1
  • 2 layers70.4 × 68.1 mmCd30 Luftsensor Projekt, the printed circuit board in 3D

    Cd30 Luftsensor Projekt

    herrTechnok/Co2-Reader-ioT-replacement-Board

    Co2 Reader ioT replacement Board

    4 parts
  • 2 layers120 × 100 mmRoot, the printed circuit board in 3D

    Root

    GonzaCerv/noah-hardware

    This repo contains all the hardware description for the Noah project. Here lies 3D models, electronics PCB and Firmware software of the robot.

    127 parts28MIT
  • 2 layers102.6 × 82 mmFun, the printed circuit board in 3D

    Fun

    bonavirak/Line-Follower-Robot-Using-STM32F103C8T6-with-TCRT-5000

    Line Follower Robot powered by STM32F103C8T6 microcontroller, using TCRT5000 5-way sensors for line detection, HC-05 for Bluetooth communication, TB6612FNG motor driver, and N20 motors (1000 RPM).

    38 parts11MIT
  • 2 layers42 × 42 mmControllerBoardSingle v1, the printed circuit board in 3D

    ControllerBoardSingle v1

    0x23/BallJointEmbossingMachine

    A motorized linear embossing machine designed to precisely press ball joints. It was designed to automate the production of balljoint linkages for the Open-Micro-Manipulator.

    20 parts9MIT
  • 2 layers90 × 102 mmPL Toon, the printed circuit board in 3D

    PL Toon

    pl-toon/pl-toon-codes

    PL-TOON material

    39 parts7

Questions

How big is the ChimiqueV0 PCB?

It measures 92 × 88 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ChimiqueV0 use?

9 parts, built around the ROB-14450 and TB006-508-02BE. 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 ChimiqueV0 KiCad files?

From the ahmedm0007/DeskMate-Robot repository on GitHub, at the commit this page was made from: the board is ELECTRIQUE/chimiqueV0/chimiqueV0.kicad_pcb and its schematic ELECTRIQUE/chimiqueV0/chimiqueV0.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ChimiqueV0 design in my own project?

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