Main Goal
Detect a panic attack by the rise in heart rate and guide the user through a breathing exercise to calm down.
Fab Academy 2026
Defining what Ancora does, what it is made of, how it was evaluated and what it means.
Detect a panic attack by the rise in heart rate and guide the user through a breathing exercise to calm down.
XIAO ESP32-C3, MAX30102, LED and vibration motor
PCB design, 3D printing, app development, firmware and laser engraving
Ancora is a bracelet that checks the heart rate all the time. It first learns the user's resting pulse. Then it looks for a rise above that pulse that could mean an anxiety attack.
When it detects that rise, it starts a breathing exercise. The exercise is the 4-7-8 technique: inhale for 4 seconds, hold for 7 seconds and exhale for 8 seconds. The bracelet guides each step with an LED, a vibration motor, or both.
The user chooses the output from the phone app. The app also has an exercise mode, so the bracelet does not give false alerts when the pulse goes up because of sport.
The MAX30102 reads the pulse all the time.
The code compares the pulse with the resting baseline.
The LED or the motor guide the 4-7-8 breathing.
Ancora does not diagnose anything and does not replace medical help. It is only a support tool.
Many people already use tools to relax. Ancora is not the first device that guides breathing, but it works in a different way.
The Apple Watch has a Mindfulness app with Breathe sessions and haptics. The user has to open it.
There are many breathing and relaxation apps. The user has to take the phone and start them.
Apollo Neuro uses touch vibrations to help the body relax. The user chooses the program in the app.
A scoping review studies sensors that detect anxiety to give help in the moment, including vibration to guide breathing.
Many people freeze during an anxiety attack. They cannot open an app on the phone or start a session on the watch.
Ancora monitors the pulse all the time, so it can detect the rise by itself and start the guide without the user doing anything.
It also gives physical stimuli. These help the user stay "anchored" in the present and not get lost in their overthinking.
I designed four parts of Ancora:
Designed in SolidWorks and printed in blue PETG.
Designed in KiCad, with traces on both sides.
Heart rate filter, baseline, alert and breathing guide.
Made in MIT App Inventor to choose the output and the exercise mode.
The MAX30102 sensor, the XIAO ESP32-C3 and the rest of the components already exist. I did not make them.
I got a lot of feedback from people close to me who have anxiety attacks. They told me what would help them.
I talked with the Psychology Department of Ibero Puebla to know how viable the project was.
Most of the materials and components were provided by the Fab Lab. I bought two items myself:
Ordered on Amazon.
Bought separately in a local electronics store
Several components came from the Fab Lab, so I did not pay for them. The prices below are reference prices in Mexican pesos (MXN).
| Component | Source | Reference price (MXN) |
|---|---|---|
| MAX30102 sensor | Online purchase | ~$83 |
| 3.7 V LiPo battery (300 mAh) | Online purchase | ~$50 |
| XIAO ESP32-C3 | Fab Lab | ~$330 |
| 2N2222 transistor | Fab Lab | ~$3 |
| SMD resistors (330 Ω and 1 kΩ) | Fab Lab | ~$3 |
| Blue LED | Fab Lab | ~$3 |
| Vibration motor | Fab Lab | ~$30 |
| Diode | Fab Lab | ~$3 |
| Phenolic boards | Fab Lab | ~$20 |
| Blue PETG | Fab Lab | ~$230 |
| Flexible straps | Fab Lab | ~$15 |
| Total | ~$726 |
Controls the output and the exercise mode.
Filters the beats, sets the baseline and starts the alert.
Protects the PCB and holds the straps.
Joins the sensor, the ESP32-C3, the LED and the motor.
| Process | Tool | Used for |
|---|---|---|
| PCB design | KiCad | Schematic and layout |
| PCB milling | Roland MonoFab SRM-20 | Cutting the PCBs, as in my Electronics Production week |
| 3D design | SolidWorks | Enclosure |
| 3D printing | Prusa MK4S | Enclosure in blue PETG |
| Vectorizing | Inkscape | Preparing the anchor for the laser |
| Laser engraving | xTool F1 Ultra v2 | Anchor on the lid |
| App development | MIT App Inventor | Mobile app |
| Programming | Arduino IDE | Firmware, BLE and breathing guide |
Yes. The bracelet detects the rise in pulse and starts the breathing guide.
Yes. Some people feel more overstimulated with vibration. For others, only an LED is not enough. Choosing the output made the project much better.
Yes. I designed one PCB with traces for the front and another for the back, cut them separately and glued them together.
Yes, but it depends on the sensor and its light. Green light is better to measure the pulse on the wrist, but I could not find a green light sensor. So I adjusted the brightness of the red LED of the MAX30102 to get the best result.
I explain this in more detail on my Final Project page.
I wanted to save space, so I tried a flexible PCB with a vinyl cutter and copper tape. The through-hole components damaged the tracks and the PCB broke.
It worked at the beginning. But the copper tape tracks were not as strong as a phenolic board. Also, I had to control the soldering temperature, because the filament can melt.
One PCB for the front and one for the back, glued together. This was the final solution.
I evaluated Ancora with four criteria:
It works, but there is still some noise. The filter in the code reduces it. A hardware solution, like an accelerometer to know when the wrist moves, could work better. I did not add it because I wanted the bracelet to be compact.
It was hard because of the size of the components. Even so, I think the result looks good.
Only the sensor comes out of the case, and I rounded the corners. It does not bother when it is worn.
The LED and the motor must be strong enough to follow the breathing exercise, even during an anxiety attack.
Ancora can help people who freeze during an anxiety attack. It starts the guide by itself, so the user does not need to remember anything or use a phone.
It also gives control. The user chooses the output, so the help is adapted to each person.
Ancora measures the heart rate, but a high pulse does not always mean an anxiety attack. Exercise, caffeine, or a sudden movement can also raise it. That is why I included the exercise mode.
The pulse sensor on the wrist is also sensitive to movement and pressure. For this reason, the bracelet may give false alerts or miss an episode.
Ancora is not a medical device. It does not diagnose and does not replace a psychologist, a doctor or emergency help. It is a support tool that goes together with professional care.