Research Article

Lock in Amplification and Synchronous Detection Based on Arduino

Yuanliang Sheng*
Brunel London School, North China University of Technology, Beijing, China

* Corresponding author: [email protected]

Abstract

Accurate detection of weak light signals in noise is a key problem in the field of science and technology. While advanced techniques such as SPAD and conformance checking provide high performance, they are usually complex and costly to operate. This study investigates a cost-effective alternative by implementing the digital lock-in amplifier algorithm on an accessible Arduino Uno microcontroller. This study explores the feasibility and effectiveness of this low-cost approach in recovering weakly modulated optical signals subject to significant environmental noise through dynamic video screen simulations. Based on Arduino, the system uses optical signal modulation, custom digital phase-locked algorithm for synchronous demodulation, and serial data transmission for analysis. The experimental results show that the proposed method can successfully extract the 1000 Hz modulated LED signal from the highly noisy sensor data, and the significant attenuation of spectral noise is verified by Simulink simulations. The study highlights the potential of this low-cost implementation in applications where cost-effectiveness is critical, such as educational tools and basic environmental sensing, while acknowledging limitations in real-time applications due to the inherent processing and serial communication delays of the Arduino platform. The consistency between the experiment and simulation results verifies the effectiveness of the digital lock-in amplifier based on Arduino for weak signal recovery in noisy environments.

Keywords: Lock-in Amplifier; Synchronous Detection; Arduino; Optical Sensor; Signal Processing
Published: July 4, 2025
DOI: 10.54254/2755-2721/2025.GL24775
Volume: ACE Vol.172
pp. 145-152
Download PDF

References

  1. Zappa, F., Tisa, S., Tosi, A., & Cova, S. (2007). Principles and features of single-photon avalanche diode arrays. Politecnico di Milano, Dipartimento di Elettronica e Informazione.
  2. Yu, D., Humar, M., Meserve, K., Bailey, R. C., Chormaic, S. N., & Vollmer, F. (2021). Whispering-gallery-mode sensors for biological and physical sensing. Nature reviews methods primers, 1(1), 83.
  3. Van Baak, D. A., & Herold, G. (2014). Response of a lock-in amplifier to noise. American Journal of Physics, 82(8), 785–797.
  4. Horowitz, P., & Hill, W. (2015). The art of electronics (3rd ed.). Cambridge University Press.
  5. Chaddad, A., Wu, Y., Kateb, R., & Bouridane, A. (2023). Electroencephalography signal processing: A comprehensive review and analysis of methods and techniques. Sensors, 23(14), 6434.
  6. Davies, J. H. (2012). Limitations of low-cost microcontrollers for high-speed data acquisition. Journal of Low Power Electronics, 8(2), 150–158.
  7. Lund, T. B., & Jensen, K. L. (2015). Impact of serial communication latency on real-time embedded systems. IEEE Transactions on Industrial Informatics, 11(4), 987–995.
  8. Senior, J. M. (2009). Optical fiber communications: Principles and practice (3rd ed.). Pearson Education.
  9. Oppenheim, A. V., & Schafer, R. W. (2010). Digital signal processing (3rd ed.). Pearson.
  10. Torzo, G., & Delfitto, G. (2022). The lock-in amplifier: what is it for? how to build one?. Revista Brasileira de Ensino de Física, 44, e20220072.