Fear Trainer: a Device That Helps You Face Your Fears
by sanjula nipun in Circuits > Electronics
1579 Views, 11 Favorites, 0 Comments
Fear Trainer: a Device That Helps You Face Your Fears
π§ Face Your Fears With an ESP32 Fear Trainer π¨β‘οΈπͺ
Fear is something every human experiences. π° It can appear in many forms fear of failure π, fear of public speaking π€, fear of the dark π, or even fear of trying something new π. Sometimes fear protects us, but other times it can hold us back from learning, growing, and exploring our potential.
But what if technology could help us face those fears step by step? π€π‘
I carefully considered everything and came up with an idea to build a portable Fear Trainer device using ESP32 that you can hold in your hand and use anywhere. Iβd love to share this idea with all of you. π€β¨
This device is designed to help teenagers gradually face and manage common fears that many people experience in daily life. Instead of avoiding fear, the device encourages users to practice confronting it in a safe and guided way. π‘π§
For example, if someone is afraid of speaking in public, the device can give them a random topic and a set amount of time to talk about it. β±οΈ The display will show prompts and guidance while the user speaks, helping them practice and improve their confidence step by step. π€π
Over time, this device can become a valuable personal tool for building confidence, reducing anxiety, and learning to face fears in a controlled way. π±πͺ
By the end of this guide, you will have built a unique interactive device that helps people confront fears, build courage, and develop confidence one small challenge at a time. ππͺπ―
So take a deep breath π¬οΈ, grab your tools π§, and letβs start building something that helps us ace our fears together. ππ
Supplies
ESP32 Based PCB
- ESP32-WROOM-32
- ILI9341 3.5 inch Display
- PCF8574 I2C Module
- 4x4 Matrix Keypad Black
- SMD Components (In PCB desing step i will add all smd list)
- PCB Wires
- DC Barel Jack Enclosure type (Optional- Future Use)
- USB Famale Enclosure type (Optional- Future Use)
- 9pin 2.54mm JST Wire
Device Enclosure
- 3D Printer
- PLA Filament (If you dont have 3d Printer, you can use 3D printing service)
- M3x12 Screws & Nuts / M2x4 Screws
Tools & Others
- Soldering Iron
- Hot Air Gun
- Glue Gun + Glue Stick
- Soldering wire
- Wire Cutter
- Screw Driver
Hardware Structure Planning
First, we need to properly plan the hardware for this device, or at least build a prototype first. π§π§©
In my case, I plan to design a PCB for the project. However, if making a PCB is difficult for you, you can simply build a basic prototype using an ESP32 and a display on a breadboard and test it first. π§ͺπ
1οΈβ£ Main Components
My main idea is to use an ESP32 together with an ILI9341 color display.
Since the device needs to give instructions and allow the user to interact with it, I decided to use a keypad for input.
The display normally requires about 6 wires, and a keypad requires around 8 wires. To reduce the number of connections, I plan to use an IΒ²C keypad module (PCF8574), which helps minimize the wiring. π
2οΈβ£ Power Input
For powering the device, I chose a USB Type C connector.
The reason is that Type C cables are very easy to find everywhere, making the device more convenient to use. ππ
3οΈβ£ Voltage Regulator
After finishing the basic parts, I also thought about adding a voltage regulator to the PCB.
This will allow the device to accept a higher input voltage (around 12V if needed) in addition to the USB power option. β‘
4οΈβ£ Connectors and Extra Pins
Finally, I planned to add connector holes on the PCB to connect the keypad and the display easily.
I also want to leave a few extra pins available, just in case we need them later for additional features or modules. π§°
Alright, now we have planned the hardware of the device.
Next, letβs look at how to design the PCB for this project. π§βπ»
PCB Designing
This is the ESP32 PCB that I designed for this project. π§βπ»π§
When I designed it, I also kept in mind that I could reuse it for other projects in the future, so donβt worry if it looks a little more complex than expected.
In fact, Iβm planning to build and show several future projects using this same PCB. ππ
Also, today Iβm not going to explain how to design the PCB, because PCB design is not the main focus of this project.
However, I have added all the PCB files and detailed information in one place, so you can download everything easily if you want to build the same board. πβ¬οΈ
Now the next step for us is simple: Order the PCB and solder the components onto the board. π©β¨
PCB Assemble Process
Here you can see the PCB that I ordered and the result after soldering the components. π§π§βπ
In the third photo, I have highlighted two different areas on the PCB. πΈ
For this project, we do not need the section marked in yellow. That part is mainly used if we want to supply 12V power to the board. β‘ (not necessary)
What we actually need for this project is only the components inside the area marked in green. π©
So you only need to solder the parts in that section to make the board work for this project. This way, you can finish the assembly quickly and easily without soldering unnecessary components.
Device 3D Design
This is the main idea I had for the device a small, handheld gadget that is easy to carry and comfortable to use. π±β¨
To design the enclosure, I used Autodesk Fusion 360. With it, I was able to turn the concept I had in my mind into a clean and smooth 3D design. π§βπ»π¨
You can see from the photos that the shape is very smooth and nicely designed. I tried to make it look simple, compact, and comfortable to hold in the hand.
On the front side, I placed the display and the keypad, so the user can easily see instructions and interact with the device. πβ¨οΈ
The bottom section of the case was designed specifically to fit the PCB inside.
On the side, I also left enough space for the USB Type C connector, so it will be easy to plug in the cable for power. πβ‘
Now the next step is simple: We just need to 3D print the enclosure. π¨οΈπ§©
3D Print Final Output
Here you can see the 3D printed version of my design. π¨οΈβ¨ I printed it using black PLA filament, and as you can see, the final result came out very clean and smooth, just like the original design. π€
The print quality also shows how nicely the enclosure was designed and fitted together.
First, I installed the 12V female jack on the side of the case. π(This step is not actually necessary, because we can power the device using the USB Type C port.)
I forgot to mention one thing earlier. For this 3D printed case, I installed brass threaded inserts (brass nuts M3) into the holes where the display, keypad, and the case screws will be mounted. π©π‘
Now letβs move on and see how to assemble the rest of the components and complete the device. π§π
Connect Wires to PCB
Now we need to connect the keypad and the display to the PCB. π§π For this, I decided to use wires for the connections.
- First, for the display, I used a 2.54 mm JST wire and soldered it to the PCB. π Then I added hot glue on the PCB where the wires connect, so the wires wonβt move around or bend. This helps prevent the wires from breaking or coming loose. Also, because the display uses a JST connector, it becomes very easy to remove or replace the display later if needed. π§©
- For the keypad, I originally planned to mount the IΒ²C module directly to the keypad. However, because of a small mistake in my 3D design, there wasnβt enough space under the keypad to fit the module. So I decided to connect the keypad and the IΒ²C module using wires instead. Then I also connected the IΒ²C module to the PCB with wires. π
Assemble Things to 3D Print Enclosure
Now the next step is to install all these parts into the 3D printed case. First, I take the top part of the 3D-printed enclosure, place the display into its slot, and secure it using four screws(M3).
After that, I placed the keypad into its position and secured it using screws. π§β¨οΈ For the keypad, I used M2 screws, because the holes on the keypad are quite small.
Assemble Things to 3D Print Enclosure
Alright, we have finished assembling the top part of the case. Now the next step is to install the PCB in the bottom section. π§π¦ For this part, I used four M3 screws to carefully secure the PCB in place.
While tightening the screws, remember to be careful with the wires, making sure they donβt get pinched or damaged during installation. π
After that, I connected the 2.54 mm JST wire that I soldered earlier to the display, making sure the connector orientation was correct before plugging it in. π To make the connections more secure, I added a little hot glue in places where the wires might come loose from the PCB. This helps keep everything firmly in place. π§β¨
Also, donβt forget to secure the IΒ²C module to one side inside the case, so it doesnβt move around. Now all the components are connected and secured. π
Finally, we can place the bottom part together with the top part of the case, screw them together, and complete the device assembly. π§©πβ¨
Assembled 3D Print Enclosure
Wow! Here you can see our fully completed device. ππ It turned out even better than I expected, and the final result looks really clean and nice. β¨
Now the next step is to upload the program to the device and test how it works. π»β‘
Sorry if this guide became a little bit long. π I tried my best to explain everything as simply and briefly as possible so that anyone can understand and build it easily. π§π
ESP32 Program
Now the next step is to upload the Arduino code to our ESP32 PCB. π»β‘
To do this, simply connect the USB Type C port on the PCB to your laptop using a USB cable. π
Then follow these steps in the Arduino software:
1οΈβ£ Open the Arduino IDE.
2οΈβ£ Go to Board settings and select ESP32 Dev Module.
3οΈβ£ Select the correct COM port connected to your device.
4οΈβ£ Click Upload to send the code to the ESP32.
After the upload is complete, the Fear Trainer device should start running the program automatically. ππ
I have also added the complete Arduino code for this project, so you can download everything easily from the link provided. πβ¬οΈ
Complete Device
Wolaaa! π This is our fully completed device, and just look at it. it turned out beautifully! β¨π
I tried to make it exactly like the image I had in my mind, and I put a lot of effort into creating a clean and attractive UI on the display. π¨π‘
I really hope that everyone will enjoy using it, because itβs not just functional. itβs fun and motivating to interact with.
But of course, looking good isnβt enough. Letβs see how this device actually helps us face and overcome fears. πͺπ§
How It Woks - Guideline 1
π Screen 1 β Splash Screen (Welcome Screen)
When you turn on the Fear Trainer, the first thing you will see is the Splash Screen. On the left side, there is the large FEAR TRAINER title.On the right side, you will see a list of the 8 fears available for training.
This screen is simply a welcome screen, so nothing else happens here.
π To continue: just press any key on the keypad to go to the Fear Menu.
π― Screen 2 β Fear Menu (Main Menu)
This is the main screen of the device. Here you will see 8 cards on the screen, arranged in 4 columns and 2 rows. Each card represents a different fear you can train.
Each card shows:
- π·οΈ Fear name
- π’ Number key (1β8) to select it
- π How many sessions you have completed
π To start training, simply press the number key (1β8) that matches the fear you want to work on today.
β If a card has a green border, it means you have already mastered that fear.
You can also use these shortcuts:
- β Press * to check your progress statistics
- π Press # to reset all progress
How It Woks - Guideline 2
π Screen 3 β Fear Detail
After you choose a fear from the menu, the Fear Detail screen will appear.
On the left side, you will see:
- π§ The fear symbol
- π A short description of the fear
- π Your completed session count
- π A progress bar showing how close you are to mastering this fear
On the right side, you will see the full challenge for that fear. Take a moment to read the instructions carefully before starting.
You can use the keypad to control what happens next:
- βΆοΈ Press A to start a training session
- β¬ οΈ Press B to go back to the Fear Menu
- π Press C to mark the fear as mastered if you feel you have already overcome it
β±οΈ Screen 4 β Training Mode
This is where the real training happens. πͺ During the session, the screen is divided into two parts.
On the left side, you will see:
- π― The fear name
- π The challenge instructions, so you can quickly remember what to do.
On the right side, you will see:
- β²οΈ A live session timer starting from 00:00 and counting upward
- π‘ Motivational tips will appear every 5 seconds to keep you focused and confident.
When you feel that you have completed the challenge, you can:
- β Press A to finish the session and save your progress
- π Press D to log an extra session and restart the timer
- β¬ οΈ Press B to cancel the session and return to the Detail screen (this will not save the session)
Take your time, stay focused, and keep practicing regularly to build confidence. π±πͺ
How It Woks - Guideline 3
β Screen 5 β Session Complete
This screen appears after you finish a training session. π
On the left side, you will see:
- π A big DONE! badge
- π― The fear name you just trained
- π’ Your total session count for that fear
On the right side, a motivational message will appear. π¬ The message changes depending on how many sessions you have completed, so the more you train, the more encouraging the messages become. π±β¨
At the bottom of the screen, you will see a full-width progress bar that shows how close you are to completing 10 sessions and mastering that fear. π
You can choose what to do next:
- βΆοΈ Press A to start another training session immediately
- β¬ οΈ Press B to return to the main menu
- π Press C to mark the fear as fully mastered
π Screen 6 β Progress Stats
This screen shows a complete overview of your training progress.
At the top of the screen, you will see two summary cards:
- π’ Total Sessions β the total number of training sessions you have completed across all fears
- π Fears Mastered β how many fears you have mastered out of 8 total
Below that, you will see a list of all fears, each with a colored progress bar showing your progress. π
- π© A full green bar means that fear has been completely mastered.
You can open this screen anytime from the menu by pressing *.
Controls on this screen:
- β¬ οΈ Press B to go back to the menu
- π Press # to reset all progress and start again from zero
Demo
Iβll quickly show you how the device works in a simple way, since I already added the detailed guidelines earlier. ππ
Letβs imagine that you are afraid of public speaking. π€π
In that case, you simply take the device and select the number for βPublic Speakingβ using the keypad. After that, the device will give you a challenge related to that fear.
To accept the challenge, you just need to press the A button on the keypad. βΆοΈ
For example, the challenge I received was to record myself talking about myself for 60 seconds. ποΈβ±οΈ
While doing the challenge, you can see a countdown timer on the display, so you know how much time is left. At the same time, the device will also show helpful tips and motivational messages to help build your confidence. π‘β¨
All you need to do is follow the challenge and practice with confidence. The more you practice, the more comfortable and confident you will become. πͺπ±
Demo
This way, you can gradually improve your confidence by training with the device. πͺπ
Once your training session is finished, you can simply end the session on the device.
Each fear has 10 training sessions. If you complete all 10 sessions, the device will mark that fear as Mastered. π
That means you have successfully faced and practiced that fear, and it should feel much easier for you now.
For example, if it was public speaking, after practicing with the device many times, you will become more comfortable talking and expressing yourself. π€β¨
You can also check your progress anytime. By pressing * on the keypad, the device will show a progress screen with graphs and statistics, so you can see: How many sessions you have completed & Which fears you are still working on the most.
END
Alright, this brings us to the end of the Instructable for building the Fear Trainer device. ππ
I really hope you liked my creation, and more importantly, that it can help many people face and overcome their fears. πͺπ±
In the future, I also have an idea to improve this project even more. Iβm planning to connect the device to Wi-Fi and the internet, and possibly integrate AI so it can provide real-time guidance and training, making the experience even more powerful and helpful. π€π
You can download all the files for this project from the link provided here. πβ¬οΈ
If you have any questions while building this project, feel free to contact me anytime. Iβll be happy to help. π
Until next time, see you in the next project! ππ§