Submitted:
26 November 2024
Posted:
28 November 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Spectrometer Fundamentals
2.1. C12666: The Chosen Spectrometer
3. Readout System Specifications and Architecture
4. Implementation and Component Selection
4.1. FPGA-Driven Enhancements and Innovations
4.2. Analog-to-Digital Converter
- Resolution: Determines the number of bits used to represent the digital signal, which affects the precision of the conversion.
- Sampling rate: Indicates the frequency at which the ADC samples the analog signal, which is critical for accurately capturing fast-changing signals.
- Linearity: Reflects the ability of the ADC to produce a digital output that is linearly proportional to the analog input.
4.3. BeagleBone Board
- High-performance processor: The ARM Cortex-A8 core provides sufficient processing power to handle real-time data acquisition and processing tasks.
- Connectivity: The BB offers multiple input/output (I/O) interfaces, including USB, GPIO (General Purpose Input Output), and SPI (Serial Peripherical Interface), which facilitate integration with the spectrometer and other peripheral components.
- Support community: The extensive developer community using the BB provides numerous resources, code examples, and technical support, which can accelerate project development [28].
4.4. Digital Buffer
4.5. Operational Amplifier
4.5.1. Transformer
4.5.2. Digital Isolator
4.5.3. Voltage Regulator
4.5.4. Connectors
5. Schematic of the Spectrometer Board
6. ADC PCB Design
7. Beaglebone Startup
8. Software
8.1. SSH Connection to Beaglebone
8.2. Signal Acquisition
| Listing 1. Definition of the libraries used by the readout system. |
![]() |
9. Processing and Communication on the Server
- Flask: A lightweight web framework for Python.
- os, base64, datetime, mmap, struct: Standard Python library modules for file handling, encoding/decoding, date management, memory mapping, and binary data manipulation, respectively.
- numpy: A library for handling arrays and mathematical operations.
- PIL: A library for image manipulation.
- io: A library for input/output operations in memory.
- flask_socketio: A Flask extension for handling real-time communications using WebSockets.
- threading: A module for handling threads in Python.
10. Graphical Interface
11. Results
-
Initial Setup:
-
Navigate to the directory where the acquisition program was developed and load the scripts that configure the pins and load the firmware:cd /var/lib/cloud9/pspi/pru0sudo bash pins.shsudo bash loadfirm.sh
-
-
Server and Web Application Startup:
-
Move to the directory containing the code for launching the server and web application interface:cd /var/lib/cloud9/pspi/clientsudo gunicorn3 -k gevent -w 1 -b 0.0.0.0:5000 app:app
- After executing these steps, open a web browser and access the server address to observe the spectrum.
-
12. Potential Improvements
12.1. Potential Improvements Using FPGA Technology
- Enhanced Data Processing Speed: The parallel processing capabilities of FPGAs allow multiple operations to be executed simultaneously. This characteristic can be exploited to accelerate the signal processing tasks, such as data normalization and digital filtering, which are currently performed in software. By implementing these algorithms directly on the FPGA, the latency introduced by software execution can be minimized, resulting in a more responsive system capable of real-time data processing.
- Improved Timing Control and Synchronization: FPGAs provide precise control over timing, making them suitable for applications that require accurate synchronization of multiple signals or devices. In the context of the PRU (Programmable Real-time Unit), FPGAs can be used to generate high-precision timing signals, ensuring that the acquisition system operates with greater accuracy. This would be particularly beneficial for coordinating the acquisition with external hardware, such as spectrometers or light sources, to achieve better measurement synchronization.
- High-Speed Data Acquisition: The FPGA’s ability to interface directly with high-speed data converters (e.g., ADCs) allows for the acquisition of data at rates significantly higher than those achievable by software-based systems. This capability can be employed to increase the temporal resolution of the measurements, enabling the system to capture rapid changes in the signal that may otherwise be missed. Additionally, FPGA-based acquisition can reduce the load on the CPU by offloading the data transfer and initial processing tasks.
- Custom Hardware Acceleration for Signal Processing: With an FPGA, it is possible to implement custom digital signal processing (DSP) algorithms in hardware. This approach allows for the acceleration of computationally intensive tasks, such as Fourier transforms or spectral analysis, which are commonly required in spectrometry applications. Hardware-accelerated processing can significantly reduce the time required to compute these operations compared to traditional software implementations.
- Increased System Flexibility and Scalability: The reconfigurability of FPGAs offers a flexible platform for future system upgrades. New functionalities, such as additional data processing algorithms or support for new sensor types, can be implemented through firmware updates without the need for major hardware changes. This adaptability facilitates rapid prototyping and iterative development, allowing for continuous improvement of the system based on experimental results.
- Lower Power Consumption for Intensive Computations: Compared to a general-purpose CPU, FPGAs can achieve lower power consumption for specific tasks by using custom hardware implementations that are optimized for the required computations. This can be particularly advantageous in embedded systems or portable devices where power efficiency is a critical consideration.
12.2. Potential Improvements Using Fuzzy Logic
12.3. Potential Improvements Using the White Rabbit Protocol
- High-Precision Time Synchronization: The White Rabbit protocol offers sub-nanosecond accuracy in time synchronization, which would allow the system to align measurements across different hardware components with extreme precision. This is especially important in spectrometry applications where the timing of data acquisition must be synchronized with external events, such as triggering light sources or coordinating multiple sensors. The improved timing accuracy could result in more consistent and reliable measurement results, enhancing the overall quality of the data collected.
- Improved System Coordination and Distributed Data Acquisition: By enabling precise time alignment across multiple nodes, the White Rabbit protocol facilitates the coordination of distributed measurement systems. In cases where multiple acquisition units are used to capture different aspects of a phenomenon (e.g., multi-spectral or multi-channel data), the protocol ensures that all units are synchronized to the same time base. This capability supports the development of distributed spectrometric systems or sensor networks, where time-coordinated data from various locations can be integrated seamlessly.
- Reduced Timing Jitter and Enhanced Signal Integrity: In traditional synchronization methods, timing jitter can introduce errors in the measurement, affecting the accuracy and repeatability of the results. The White Rabbit protocol significantly reduces jitter through a combination of frequency locking (using SyncE) and phase alignment (using PTP). This would enhance the signal integrity of the spectrometer by minimizing timing uncertainties, thereby improving the fidelity of time-dependent measurements such as transient spectral analysis [29].
- Simplified Integration with Existing Network Infrastructure: As an Ethernet-based protocol, White Rabbit can be implemented over existing network infrastructure without the need for specialized cabling. This simplifies the system’s integration with existing network hardware while still achieving high-precision synchronization. It also allows for greater flexibility in expanding the system, as additional synchronized nodes can be added to the network without significant changes to the physical setup.
- Support for Real-Time Data Processing and Feedback Loops: With sub-nanosecond synchronization, the White Rabbit protocol can enable real-time feedback mechanisms in the system, allowing for dynamic adjustments based on the acquired data. For example, if the system detects rapid changes in the spectral signal, it can trigger immediate adjustments to measurement parameters (e.g., acquisition speed or exposure time). Such real-time processing is crucial in applications requiring adaptive control, such as active spectroscopy or automated calibration.
- Increased Scalability and Modularity for Large-Scale Systems: The White Rabbit protocol allows for the synchronization of a large number of nodes across a wide area while maintaining precise timing. This makes it suitable for scaling the system to accommodate more measurement channels or distributed sensor arrays without sacrificing synchronization accuracy. The modularity provided by this protocol supports the development of complex measurement systems where components can be added or removed with minimal reconfiguration.
13. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Szolga, L.A.; Sascau, C.S. VIS Spectrometer Based on the Diffraction Grating and Raspberry Pi Camera. In Proceedings of the International Conference on Sensing and Electronic Control (ICSEC); 2023. [Google Scholar] [CrossRef]
- Liu, Y.; Xiong, H.; Dong, C.; Zhao, C.; Zhou, Q.; Li, S. Real-time signal processing in field programmable gate array based digital gamma-ray spectrometer. Rev. Sci. Instruments 2020, 91, 104707. [Google Scholar] [CrossRef]
- Mukhopadhyay, D. Field Programmable Gate Arrays (FPGA). 2016. [CrossRef]
- Sperandio, P.; De Luca, M.; Catini, A. The greenBag, the new solution in waste separation. Int. J. Adv. Sci. Eng. Inf. Technol. 2018, 9, 1238–1243. [Google Scholar] [CrossRef]
- Yamamoto, M.; Shimojo, S. The Brain Knows enough to take into account Light and Shadow. bioRxiv Cold Spring Harbor Laboratory. 2020. [Google Scholar]
- Capuano, R.; Serafini, C.; Papale, L.; Allegra, V.; Di Natale, C.; Catini, A. Multi-Sensor System for Saffron Quality Identification. Proceedings 2024, 97, 103. [Google Scholar] [CrossRef]
- Jiao, Y.; Zhang, Q.; Luo, X.; Liang, Z. ; Fruit ripeness detection based on miniature spectral sensor. In Proceedings of the 2021 International Symposium on Computer Technology and Information Science (ISCTIS); 2021; pp. 93–98. [Google Scholar] [CrossRef]
- Sabry, Y.M.; Hassan, K.; Anwar, M.; Alharon, M.H.; Medhat, M.; Adib, G.A.; Dumont, R.; Saadany, B.; Khalil, D. Ultra-compact MEMS FTIR spectrometer. 2017.
- Kraft, M.; Kenda, A.; Sandner, T.; Schenk, H. MEMS-based compact FT-spectrometers - a platform for spectroscopic mid-infrared sensors. 2008 IEEE Sensors, 2008; 130–133. [Google Scholar] [CrossRef]
- A. Kenda, et al., "MEMS-based spectrometric sensor for the measurement of dissolved CO2," 2008 IEEE Sensors, 2008.
- Wang, W.; Chen, J.; Zivkovic, A.S.; Xie, H. A Fourier Transform Spectrometer Based on an Electrothermal MEMS Mirror with Improved Linear Scan Range. Sensors 2016, 16, 1611. [Google Scholar] [CrossRef] [PubMed]
- Zhou, G.; Qi, Y.; Lim, Z.H.; Zhou, G. Single-Pixel MEMS Spectrometer Based on Compressive Sensing. IEEE Photonics Technol. Lett. 2020, 32, 287–290. [Google Scholar] [CrossRef]
- J. Newman, et al., "MEMS programmable spectral imaging system for remote sensing," 2006.
- Algamili, A.S.; Khir, M.H.; Dennis, J.O.; Ahmed, A.Y.; Alabsi, S.S.; Ba Hashwan, S.S.; Junaid, M.M. A Review of Actuation and Sensing Mechanisms in MEMS-Based Sensor Devices. Nanoscale Res. Lett. 2021, 16, 16. [Google Scholar] [CrossRef] [PubMed]
- https://www.hamamatsu.com/content/dam/hamamatsu-photonics/sites/documents/99_SALES_ LIBRARY/ssd/c12666ma_kacc1216e.
- Real, D.; Calvo, D. Nanobeacon: A time calibration device for KM3NeT. EPJ Web Conf. 2019, 207, 07002. [Google Scholar] [CrossRef]
- Wright, A. An inexpensive acoustic data acquisition system using a single-board microcomputer. J. Acoust. Soc. Am. 2017, 142, 2729. [Google Scholar] [CrossRef]
- McPherson, A.; Zappi, V. An environment for submillisecond-latency audio and sensor processing on BB. J. Audio Eng. Soc. 2015. [Google Scholar]
- Lee, S.; Lee, H. Design of portable functional near-infrared spectroscopy-based brain monitoring system. In Proceedings of the 2019 International Conference on Electronics, Information, and Communication (ICEIC); 2019; pp. 1–2. [Google Scholar] [CrossRef]
- S. Barrett et al., Bad to the Bone: Crafting Electronic Systems with BB, Second Edition, 2015.
- Y. Barbosa et al., BB for X8-VB Quadcopter Attitude Control, IECON 2019 - 45th Annual Conference of the IEEE Industrial Electronics Society, 2019.
- A. Mcpherson et al., An Environment for Submillisecond-Latency Audio and Sensor Processing on BB, Journal of The Audio Engineering Society, 2015.
- J. Bogacz et al., Convolution Neural Network on BB Wireless for Machine Learning Applications, 2022 IEEE MIT Undergraduate Research Technology Conference (URTC), 2022.
- N. He et al., Experience of teaching embedded systems design with BB board, 2016 IEEE International Conference on Electro Information Technology (EIT), 2016.
- C. Gang-qiang et al., The Debug Environment of TI-RTOS Based on BB, 2019 12th International Conference on Intelligent Computation Technology and Automation (ICICTA), 2019.
- N. He et al., The Use of BB Board in Engineering Design and Development, 2014.
- S. Chakravarty et al., LoRa Mesh Network with BB, 2020 Fourth World Conference on Smart Trends in Systems, Security and Sustainability (WorldS4), 2020.
- V. S. Machhi et al., IoT Based Environment Parameter Monitoring Using BB, INROADS- An International Journal of Jaipur National University, 2016.
- Real, D.; Calvo, D.; Zornoza, J.d.; Manzaneda, M. White Rabbit Expansion Board: Design, Architecture, and Signal Integrity Simulations. Electronics 2023, 12, 3394. [Google Scholar] [CrossRef]








Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
