Haptic IR Squeeze Switch
Haptic Sip-and-Puff Switch
Hey everyone. I'm Levi and I'm a 16 year old boy living in California. Even though I am relatively young, I have a deep passion for stem and engineering and from a young age i've loved math and science, so much so that my friends would sometimes tease me for it. Also being your average 16 year old boy as well I don't really keep my room and my house incredibly clean, except the one thing I love looking beautiful is my computer setup. From minimal wires, to no clutter, to everything looking even and beautiful it's just one of my favorite things.
Contact Information: leviwaynemehl@gmail.com
*Materials Required For ALL DEVICES
Regular Jack (Connects IR + Pressure Sensor to Board) *3 Pin
Heat Shrink (Optional but highly recommended) *Needs hot hair dryer
Electrical Tape (Replacement if Heat Shrink isn't an option)
First, gather all the materials and tools you’ll need for this project (IR sensor, two haptic motors, wires, soldering tools, heat shrink tubing, CAD housing, etc.).
Once you have everything ready:
Firstly slide heat shrink tubing onto one side of the wires, making sure it doesn't come in contact with the solder
Solder the red wire of the first haptic motor to the blue wire of the second haptic motor.
After soldering, slide the heat shrink tubing over the connection and shrink it down to seal it tight.
Place the connected haptic motors neatly inside the CAD model and be sure to feed the red and black wires through the hole in the bottom of the CAD model.
Tip:
Make sure your solder joints are strong and that the motors are positioned in a way that the wires won’t be strained when you close everything up.
Now it’s time to start building up the mechanical parts of your switch. Follow these instructions:
Take four springs and hot glue them to the underside of the top piece of your CAD model (the flat 3D printed piece).
Wait for the hot glue to fully dry so the springs stay firmly in place.
Once the top piece is ready, line it up and hot glue the bottoms of the springs down onto the base section, where your haptic motors are already wired in.
Next, you’ll mount the IR sensor:
Hot glue the shell of the IR sensor to the edge of the base.
Carefully hot glue the IR sensor into its shell on the edge of the base piece of the model.
Important: Make sure not to get any glue on the metal solder points of the IR sensor & Don't put the IR sensor too close to the top piece so it doesn't get crushed.
Tip:
Be patient when gluing to make sure everything is lined up properly and nothing is under tension.
Now it’s time to get your wiring set up. Follow these instructions:
Start by attaching wires to the 5V, Ground, and Output pins of the IR sensor.
You can either solder wires directly to the pins (remember to use heat shrink tubing to protect your solder joints)
Or use male-to-female jumper wires, which are simpler to install and troubleshoot. .
Create a 3-foot long chain of wires feeding off from that point.
Next, wire up the haptic motors:
You must solder wires directly to the leads of the haptic motors.
Again, use heat shrink tubing to cover and protect the soldered connections.
As you extend the wires, make sure all the wires for the haptics and the IR sensor are the same length when they reach the end. (The ends should both reach about 3 feet away from the device) This will make it much cleaner and easier to connect everything later.
Now you’re ready to attach jacks to your wires. Follow these instructions:
Take the three wires you ran from the IR sensor (5V, Ground, and Output) and solder them onto your 3-pin adapter.
Pre-Slide Heat Shrink tubing over wires.
Make sure you match the correct wires to the right pins!
After soldering, slide heat shrink tubing over each connection and shrink it down to keep everything protected and neat.
Next, take the two wires running from the haptic motors and solder them to a DC barrel jack.
Again, be sure to use heat shrink tubing after soldering to prevent shorts and give extra durability.
Now it’s time to clean everything up and make it look professional. Follow these onstructions:
Take all the wires leading from your switch up to the point where the jacks split off at the end.
Wrap the entire bundle neatly in electrical tape, starting near the base of the model and working your way up until where the Jacks split off. (Leave some room for them to split.
Make sure the tape is tight and even, covering all the loose wires without leaving any gaps.
Tip:
Try to wrap smoothly and avoid wrinkles — a clean wrap will not only protect the wires but also make your project look much more finished and professional.
*These steps are for making 1 device, the second is the exact same just regather all materials and start from the top.
Materials
Pressure Sensor *5010DP (Amazon Link-More Expensive)
Haptic Motors *Same as IR Switch
Tube - 1 foot.
CAD File(s)
Code
Start by gathering all the materials and tools you’ll need for this build.
Once you’ve got everything ready, follow these steps:
Solder the two haptic motors together, just like in the IR switch build — connect the red wire of one motor to the blue wire of the second motor.
Then, solder output wires onto the remaining leads so you can connect them to your circuit later.
Be sure to use heat shrink tubing to protect all soldered connections.
Next, carefully install the motors:
Cut into the foam headband of your headphones just enough to fit the two motors.
Gently insert the motors into the foam so they sit securely without pushing too hard on the surface.
Once everything is in place, seal the foam back up with hot glue, making sure it's sealed up.
Now that the haptics are installed, it’s time to attach the pressure input system. Follow these instructions:
Take your 3D printed cube and hot glue it onto the side of the headphones — specifically on the side that has the microphone.
Carefully position the cube so that the hole in the printed piece lines up exactly with the microphone
Next, insert the tubing:
Feed your tube through the hole in the 3D printed cube until it sticks out to about the same length as the microphone.
Once it’s in the correct position, hot glue the tube in place where it enters the cube. Make sure it’s sealed and stable, but don’t let glue block the inside of the tube.
Finally mount the tubing to the microphone
Simply just take the tube about 1 inch out into the microphone then carefully bend the paperclip so it tilts the tube 90 degrees inwards.
To seal it in place use a little hot glue once its stable.
Now it’s time to wire up the pressure sensor and connect it to the tube. Follow these steps:
First, solder three wires to the pressure sensor’s pins — one each for 5V, Ground, and Output.
Be sure to cover each solder joint with heat shrink tubing to keep the connections strong and protected.
Next, connect the tube to the sensor:
Feed the tube down about 7 inches from the 3D printed cube and insert it into one of the two holes on top of the pressure sensor..
Make sure it fits snugly so air doesn’t leak out.
Finally, mount the sensor in place:
Hot glue the pressure sensor onto the headphone cable exactly 7 inches down from the cube. This allows the tube to be able to move freely and be able to rotate
Tip:
Be careful not to block the second hole on top of the sensor — it needs to stay open to measure changes properly.
Now it’s time to run all your wires to a common point where everything will connect later. Follow these instructions:
Start by taking the three wires coming from your pressure sensor (5V, Ground, Output) and solder extension wires onto each one.
Run these wires 2 feet down alongside the existing headphone cable.
Be sure to use heat shrink tubing over your solder joints to protect the connections.
Next, do the same for the haptic motors:
Take the output wires from the haptic motors and solder extension wires onto them as well.
Route these wires down the left side of the headphones, following the curve of the headband, until they meet up at the same point where the pressure sensor wires ended.
Tip:
Use small bits of tape or temporary clips to hold the wires in place while soldering and routing — it’ll keep everything clean and organized.
Time to finish off your build by attaching the connectors and cleaning up the wiring. Follow these steps:
First, solder a 3-pin jack onto the pressure sensor wires (5V, Ground, and Output).
Double-check your pin order and use heat shrink tubing on each connection to keep it neat and safe.
Then, solder a DC barrel jack onto the haptic motor wires.
As always, cover your solder joints with heat shrink for protection and durability.
Now organize and seal everything up:
Wrap all the wires together neatly using electrical tape, starting from where the wires exit the headphones and working your way down toward the connectors.
When you reach the split, separate the wires cleanly so the two jacks can comfortably plug into either side of the hub.
Finally, continue wrapping the wire branches with electrical tape after the split to keep the whole setup looking clean and professional.
Tip:
Leave enough length at the split so each jack can move freely — tight wires can lead to disconnects or stress on your solder joints and wires.
Before you start building, take a moment to get everything prepared. Follow these instructions:
Gather all the materials and tools you’ll need for the project (Arduino board, breadboard, jacks, wires, connectors, soldering tools, hot glue, labels, etc.).
Check that the CAD-designed lid slides smoothly in and out of the hub.
Test fit your Arduino board inside the hub to make sure it fits properly without forcing it.
Tip:
If the lid or board is too tight, do a little sanding or trimming now — it’s much easier to fix before wiring everything up!
For this step, you’ll set up the power rails inside your hub. Follow these instructions:
Take your breadboard and carefully break off the 5V and Ground vertical rails from the sides.
Position the rails diagonally across the front inner wall of your hub.
Once they are lined up the way you want them, use hot glue to securely attach them in place.
Tips:
Make sure the rails are firmly glued and angled in a way that makes it easy to reach all your components during wiring.
Take your time lining them up before gluing — it will make the next steps much easier.
For this step, you’re going to prepare the wires coming from the back of your jacks. Follow these instructions:
Strip a small amount of insulation off the end of each wire coming from the back of your jacks.
Solder a male wire connector head onto each stripped wire.
Once soldered, slide a piece of heat shrink tubing over the connection and heat it up to seal everything tightly.
Tips:
Make sure the solder joints are strong and clean to avoid any bad connections later.
Don’t forget to slide the heat shrink tubing onto the wire before you solder, or you’ll have to redo it!
Now it’s time to insert and label the jacks you've just prepped for your hub! Follow these instructions:
Insert the jacks into the holes you made in your enclosure or mounting plate.
Make sure they are firmly secured so they don’t move around.
Label each jack clearly so you know which one is for the Left IR Haptic, Right IR Haptic, and Pressure Sensor Haptic.
Tips:
Use a label maker, tape and a marker, or any method that keeps the labels neat and easy to read.
Double-check the placement so you don’t mix up your connections later during wiring!
Now that you have everything ready, it’s time to wire! Follow these instructions:
Plug in the micro usb into your board into this step as well. I also reccomend plugging it in before you do any wiring.
Left Hand IR Sensor
Connect the output (white) wire to Digital Pin 10.
Connect the Left Haptic Jack to Digital Pin 11.
Right Hand IR Sensor
Connect the output (white) wire to Digital Pin 7.
Connect the Right Haptic Jack to Digital Pin 8.
Pressure Sensor
Connect the output (white) wire to Analog Pin A0.
Connect its haptic motor to Digital Pin 12.
Important:
Don’t forget to wire 5V and Ground from the Arduino to the breadboard and connect the IR sensors and pressure sensor to those power lines.
Also, make sure to connect all the haptic motors’ ground wires to Ground on the breadboard.
Remapping Site