Simple infrared proximity sensor with dynamic adjustment for ambient lighting.
This repo contains the source code, raw data, plots, and report for my final project for the NUS EE1111B module, done in June 2021.
It's a simple proximity sensor that works by emitting pulses of infrared radiation and measuring the reflected intensity. The basic idea of measuring reflected light intensity works in theory, but requires tedious tuning to account for ambient infrared light.
This project expands upon the general concept by applying a simple theoretical model based on the inverse-square law to dynamically adjust for ambient lighting conditions, hence only requiring one set of calibration.
IRProximity
: Arduino source codedata
: Raw data, and generated data based on the inverse-square law modeldocs/Report.pdf
: Full final reportplots
: Plots of raw and generated data
© 2021 Qi Tianshi.
Source code is licensed under GNU GPLv3.
Project report is licensed under CC BY-NC-ND 4.0.
📏