
The device running a "4-7-8" breathing exercise.
A small, portable and dedicated device for breathwork exercises.
- Save up to 9 different breathwork exercises
- Colors and LED brightness are adjustable
- Battery indicator
- Easy to use: 1x On/Off switch | 2x buttons
Jump to: Usage Guide | Build Guide | Firmware | Showcase
- Turn the device on by moving the [Power] switch to the right.
- Press [Select] repeatedly to cycle through exercises; the lit LED (0–8) shows the currently selected one.
- Start or stop the exercise by pressing the [Start] button.
When no exercise is running, press and hold [Select] to display the current battery level. More lit LEDs = higher battery level.
Note
Charging the device: Set the [Power] switch to "On" before plugging in USB-C. The XIAO's charge LED blinks while charging and stops blinking once fully charged. Don't let the battery level drop below two lit LEDs!
Default exercises:
| LED Index | Exercise Name | Inhale | Hold | Exhale | Hold | Repeats |
|---|---|---|---|---|---|---|
| 0 | 4-7-8 | 4 s | 7 s | 8 s | — | 8 |
| 2 | Rectangle | 6 s | 3 s | 6 s | 3 s | 8 |
| 4 | Coherent | 5 s | — | 5 s | — | 8 |
| 6 | Box | 4 s | 4 s | 4 s | 4 s | 8 |
| 8 | 1:2 Ratio | 4 s | — | 8 s | — | 8 |
| Reference | Description | Amount | Value/MPN | Sources |
|---|---|---|---|---|
| U1 | Microcontroller | 1x | XIAO RP2350 | Seeed Studio |
| D1-D9 | RGB LEDs | 9x | WS2812B-V5/W ¹ | LCSC / AliExpress |
| SW1 | Power Switch | 1x | C&K JS202011JCQN | DigiKey / TME |
| SW2-SW3 | Push Button | 2x | ALPS SKQGAFE010 | DigiKey / TME |
| R1 | Resistor | 1x | 470 Ω (1206 Package) | DigiKey / TME |
¹ V5 or newer is required (removes the need for an external decoupling capacitor); V6 is preferred as it officially supports a 3.3 V supply.
Solder the top side with a hot plate; hand-soldering WS2812B LEDs is hard. Apply solder paste to all pads and place the components on your PCB. Make sure that the "◤" marking of the LEDs aligns with the silkscreen.
Solder the battery pads of the XIAO RP2350 to the open through-hole pads on the PCB. You only need to solder the positive (+) pad of U1. Apply flux to the pad of the microcontroller. Feed solder wire into the through-hole pad. Then use a narrow soldering iron tip (e.g. TS-D24 for a Pinecil/TS100) that fits sideways into the PCB cutout while sticking into the open through-hole pad. Wait until the solder wire melts.
|
|
Once it has cooled, check your work with a multimeter in continuity mode:
- Turn the [Power] switch on.
- Touch one probe to the positive (+) pad of U1 and the other to the positive (+) pad J1. They should be connected.
- Check between the positive (+) pad of U1 and the negative (-) pad of U1 to make sure the solder did not accidentally bridge the two. They must not be connected.
Then turn the [Power] switch off again and solder the battery to the dedicated battery pads on the left of the PCB.
Warning
Wire colors on LiPo batteries are not standardized. Before soldering, check the positive (+) and negative (−) wires with a multimeter and compare them to the polarity markings on the PCB.
| Amount | Description | Type | Sources |
|---|---|---|---|
| 4x | Heat Set Insert | M2x3 | CNC Kitchen |
| 4x | Screw | M2x6 (DIN 912 / ISO 4762) | Amazon DE |
| 1x | LiPo Battery ² | e.g.: 400mAh 503030 | Amazon DE |
| 1x | Lid & Case | 3D printed |
² Make sure that the battery comes with necessary protection circuitry!
For the case you have two options:
1) Use the pre-made files: download the case STL files from this GitHub repository.
Note: The battery compartment is sized for a 5 mm high battery. You can use double-sided tape to prevent the battery from moving around inside the case.
2) Customize it yourself: open the Onshape CAD document and customize the case to include a simple integrated battery holder via the Configurations area top-left.
Measure your actual battery dimensions with calipers and add some clearance! For example, these are the dimensions I used for two LiPo batteries:
| Battery | Battery Height |
Battery Length |
Battery Width |
|---|---|---|---|
| 502030, 3.7 V, 250 mAh | 5.2 mm | 31.4 mm | 21.7 mm |
| 503030, 3.7 V, 400 mAh | 5.4 mm | 33.1 mm | 30 mm |

Simple battery holder integrated into the case bottom
Print settings
| Part | Layer Height | Profile | Wall Loops | Other Settings |
|---|---|---|---|---|
| Case | 0.16 mm | 0.16 mm Optimal @BBL X1C | 4 | Bambu Studio defaults |
| Lid | 0.16 mm | 0.16 mm Optimal @BBL X1C | Default | Bambu Studio defaults |
Material
- Case: any color you like; no functional constraint here.
- Lid: transparent/translucent PETG or a light color (PLA/PETG) that lets the LEDs shine through. Transparent filament mutes/filters the light more, so pick based on preference.
Personally I used "SUNLU Transparent PETG", "eSUN White PETG Basic" and "SUNLU Bone White PLA+ 2.0" with success for both case and lid.
Optional: Ironing
The case and lid should fit well with the settings above. If you notice a small gap, enabling ironing can improve the fit by smoothing the mating surfaces.
Note: These values are a starting point and may need slight adjustments for your printer and filament.
| Setting | Case | Lid (via Height Modifier, 1.8–2.0 mm range) |
|---|---|---|
| Ironing Type | Topmost surface | Top surfaces |
| Ironing Speed | 40 mm/s | 40 mm/s |
| Ironing Flow | 15% | 20% |
- Install the heat-set inserts into the case.
- Place the PCB into the case, carefully positioning the battery underneath it.
- Check the USB-C connector alignment and make sure it sits correctly in the case cutout.
- Place the lid on the case and secure it with the M2 screws. Do not overtighten the screws; the case has 0.2 mm of clearance built in.
You can either flash the pre-made firmware as-is or customize it to personalize your breathwork experience.
- Hold the BOOT button on the XIAO RP2350 and plug it into your computer via USB-C. Release the button once it is connected.
- The XIAO shows up as a USB drive.
- Copy the pre-made firmware (
firmware.ino.uf2) onto that drive. The XIAO reboots on its own once the copy is finished.
- Set up the toolchain by following the Seeed Studio XIAO RP2350 Arduino guide.
- Install the required libraries:
Adafruit NeoPixelandOneButton. - Open
firmware/firmware.inoin the Arduino IDE. Make sureconfig.handxiao_battery.hare in the same folder asfirmware.ino. - Adjust
config.h(see below). - Select the Seeed XIAO RP2350 board and your port, then click Upload.
Add, remove or edit breathing exercises:
const Exercise exercises[] = { {.name = "4-7-8", .phases = {4, 7, 8, 0}, .repeats = 8, .ledIndex = 0}, {.name = "Rectangle", .phases = {6, 3, 6, 3}, .repeats = 8, .ledIndex = 2}, //... {.name = "NewExercise", .phases = {1, 2, 3, 4}, .repeats = 8, .ledIndex = 7}, };
| Field | Meaning |
|---|---|
name |
Name of the exercise (for your own reference). |
phases |
Duration in seconds of {Inhale, Hold, Exhale, Hold}, in that order. Use 0 to skip a phase. |
repeats |
Number of breath cycles before the exercise ends. |
ledIndex |
The LED that lights up when this exercise is selected. Counting starts at 0, so valid values are 0-8 (9 LEDs). |
Colors are {Red, Green, Blue} values from 0 to 255. There is no separate brightness setting: lower values make the LEDs dimmer, higher values make them brighter and give a smoother fade during inhale and exhale.
Note
The LEDs are difficult to capture accurately on camera. In person, both the frosted and non-frosted LEDs look great; the frosted LEDs produce a slightly softer, more diffused glow. Filmed on iPhone 17 with exposure set to "-2,0".

Left: -V5/W (frosted LEDs) - Right: -V6 LEDs

Both sides: -V5/W (frosted LEDs)
Left: bone white PLA - Right: translucent PETG






