The Stoic Buddy: A Pocket Philosopher for Stressful Moments

Originally published: 2026-03-09
Last updated: 2026-03-09

Introduction

Stress, fear of failure, and overwhelming situations affect everyone. They are part of being human. We set goals, try to improve ourselves, and sometimes things do not go as planned. It is easy to call these moments “failures,” but trying, learning, and gaining experience are not failures. Every attempt builds courage and teaches us something new.

Facing the fear of failing is one of the most important challenges we encounter. Every year we set goals and expectations for ourselves, and when we fall short, we may feel discouraged. But even the act of planning, trying, and taking small steps forward helps us grow and understand ourselves better.

That idea inspired me to build Yarviz – the Stoic Buddy, a small desk companion inspired by Stoic philosophy. The device helps you pause, reflect, and approach difficult moments with a calmer mindset.

With over 30 unique responses and 10 voice commands, Yarviz offers short reflections and reminders drawn from Stoic ideas to help you think more clearly during stressful situations.

While Yarviz can help you reflect on everyday challenges, it is not meant to replace meaningful conversations with family, friends, or professionals. If stress or anxiety persists, talking to someone you trust is always important.

Instead, this device serves as a small reminder on your desk—something that encourages you to pause, reflect on your thoughts, and approach challenges with a clearer perspective.


Supplies

These are the components and materials used to build Yarviz – The Stoic Buddy.

Unihiker K10

Hardware

  • DFRobot UNIHIKER K10 microcontroller board
  • ~14 g of PETG filament (for the 3D printed enclosure)
  • USB cable (power and programming)
  • Micro SD Card (for assets)

Software

  • PlatformIO development environment (used in this project)
  • Arduino IDE (alternative option)

The code can be compiled and uploaded using either PlatformIO or Arduino IDE.


What Is Stoicism and How Can It Help Face Fear?

Stoicism is a school of philosophy that focuses on developing control over our thoughts and reactions, rather than trying to control external events.

It teaches values such as:

  • virtue
  • resilience
  • wisdom
  • emotional awareness

Today, Stoicism is often misunderstood. Some people believe it means suppressing emotions.

In reality, Stoicism teaches the opposite: emotions are natural and important, but we should learn to understand them so they do not control our actions.

By reflecting on our emotions instead of reacting impulsively, we can make wiser decisions.

From a Stoic perspective, failure is not a source of shame.
It is a necessary opportunity for learning and growth.

Mistakes help us:

  • refine our strategies
  • improve our understanding
  • become stronger individuals

You can think of failure as information rather than defeat.

Stoicism teaches us to focus on what we can control:

  • our actions
  • our effort
  • our attitude

The final result may not always be what we expected, but success lies in the effort and values we practice along the way.


Designing the Philosophy Engine

The goal was to create a small desk companion that reacts to voice commands and provides short Stoic reflections.

The device works completely offline.

No AI model is used to generate responses.

Instead, the system contains:

  • 30+ handcrafted responses
  • 10 emotional voice commands

I intentionally avoided using an AI system because AI can sometimes produce incorrect or misleading responses.

Since this device offers philosophical reflections, I wanted every message to be deliberately written and aligned with Stoic philosophy.

Commands Used

  • I am happy
  • I am sad
  • I am stressed
  • I am afraid
  • I am angry
  • I am overwhelmed
  • I made a mistake
  • I cannot control
  • I feel unmotivated
  • Give me wisdom
  • Play music

Each command triggers a Stoic reflection designed to help the user pause and think.


Music for Relaxation

The Play music command plays the melody of Für Elise by Ludwig van Beethoven.

Music has been shown to influence emotional and cognitive states.

Research:

https://pmc.ncbi.nlm.nih.gov/articles/PMC10765015/

Music can positively influence emotional wellbeing and may help reduce:

  • stress
  • anxiety
  • depression

Combining philosophy and music helps create a moment of calm reflection.


Sketching the Stoic Buddy

Face of Stoic Buddy

To design the visual interface, I first created screen layout sketches in Canva.

The design aims to feel philosophical and reflective, inspired by classical aesthetics.

Color Palette

Background
0xEBDDAB

Dialogue Box
0x8A3F35

Text
0x2F3145

These colors create the feeling of reading a vintage philosophical text.


Screen Resolution

The UNIHIKER K10 display resolution is:

240 x 320 pixels

Designing assets at the same resolution helps ensure:

  • correct element placement
  • accurate UI reproduction
  • consistent visual design

Designing the Enclosure

Enclosure of Stoic Buddy

Many existing cases for the UNIHIKER K10:

  • block sensors
  • block speakers
  • cover circuitry
  • interfere with Wi-Fi

This enclosure avoids those issues.


3D Printing Settings

Printer
Flashforge Adventurer 5M

Material
ABS (PETG or PLA also work)

Recommended Settings

Layer Height: 0.2 mm
Infill: 15–20%
Supports: No
Bed Adhesion: Optional

Preparing the Wisdom Assets

Yarviz

The personality of the Stoic Buddy comes from:

  1. Character visuals
  2. Stoic reflections

Character Assets

The philosopher character was generated using DALL·E.

Example prompts:

Create an 8-bit philosopher head sculpture asset with transparent background.
Use the exact same asset and make a thinking expression.

Images were cleaned in Canva and resized to:

192 x 192 pixels

Stoic Inspirations

Recommended readings:

  • Meditations — Marcus Aurelius
  • Letters from a Stoic — Seneca

Example response:

Happy

"Amazing! Life can be hard, and these happy days help carry us through. Cherish them and share that happiness with those you love."


Development Environment

The firmware was developed using PlatformIO inside Visual Studio Code.

Install VS Code

Download:

https://code.visualstudio.com/

Install PlatformIO

  1. Open Extensions
  2. Search PlatformIO
  3. Install PlatformIO IDE

Restart VS Code afterward.


Import the Project

GitHub repository:

https://github.com/jorgeeldis/stoicbuddy

Open the project folder using PlatformIO → Open Project.


Configure the Board

platformio.ini

[env:unihiker_k10]
platform = unihiker
board = unihiker_k10
framework = arduino

Programming the Stoic Wisdom

Project structure:

StoicBuddy
│
├── assets
│   ├── images
│   └── furelise.wav
│
├── include
├── lib
│   └── StoicResponses
│
├── src
│   └── main.cpp
│
└── platformio.ini

Libraries used:

unihiker_k10.h
asr.h
StoicResponses.h

The system maps voice commands to Stoic reflections.


Using the Stoic Buddy

The Stoic Buddy supports voice commands and button interaction.

Button A → Show commands
Button B → Return to home screen

After 30 seconds of inactivity, the philosopher enters a sleeping state.


Facing Fear With the Stoic Buddy

Many emotions are connected to different forms of fear.

Emotion Fear
Sadness Fear of loss
Overwhelmed Fear of losing control
Afraid Fear of danger
Angry Fear of injustice
Unmotivated Fear of failure
Stressed Fear of uncertainty

The Stoic Buddy encourages a simple habit:

Pause. Reflect. Focus on what you can control.

The device is not meant to replace conversations with people.

Instead, it acts as a small companion that reminds us that challenges are part of life and can be faced with:

  • calm
  • resilience
  • wisdom

Final Thoughts

The goal of this project is not only to build a device, but to promote a mindset inspired by Stoic philosophy.

A mindset that approaches life with:

  • patience
  • reflection
  • courage

Jorge Eldis González

Software developer, electrical and electronic engineer.

Share this post