You can safely say that when it comes to electronics, there are countless ways to measure distances. This tutorial will explain how to build an inexpensive IR distance sensor under $8, perfect for close measurements and motion detectors.
- Step 0: The theory
- Step 1: The circuit
- Step 2: The calibration
- Step 3: The reading
- Conclusion
- Further projects…
You will need:
- Arduino Uno (£18.95);
- IR photodiode receiver (£4.11 / 50pcs);
- IR emitter (£3.08 / 50 pcs);
- Resistors: 18Ω, 39Ω.
You can download the final Arduino code here.
This post is part of a longer series of tutorial about alternative games controllers.
- Part 1. How to integrate Arduino with Unity
- Part 2. How to hack any IR controller
If you are going to create an alternative game controller yourself, you should definitely look into ALT.CTRL.GDC. It’s one of the most fresh and intriguing exhibitions at GDC, and is all dedicated to innovative ways to interact with games.