Library for Integration in LabVIEW and Firmware for Data Acquisition Card Control
Keywords:
firmware, LabVIEW, library, microcontroller, virtual instrumentation.Abstract
Data acquisition cards are digital electronic systems that, when controlled by a computer or digital system, capture or measure digital and analog signals from the physical environment. The objective of this project was to design and implement a virtual instrumentation library, compatible with LabVIEW, and firmware to control a data acquisition card based on the PIC18F4550 microcontroller and manage its resources, such as its digital and analog ports and its asynchronous serial communication port, without requiring the microcontroller to be reprogrammed each time it is used for different tasks. Firmware was designed and implemented to allow commands to be entered via the USB port of a DAQPIC18F4550 card based on the PIC18F4550 microcontroller, enabling control of its digital and analog ports and its asynchronous serial port. A LabVIEW library was designed and implemented as a user library, containing function blocks to control the five digital input/output ports of the DAQPIC18F4550 board, a function block for data acquisition via its analog ports, and a function block for asynchronous serial communication. The developed library and firmware enable the DAQPIC18F4550 board to perform basic low-speed data acquisition functions, with up to five digital ports and 30 input/output pins, up to 13 analog input channels, and a bidirectional asynchronous serial communication port that allows remote control and data acquisition by connecting a Bluetooth or radio-frequency communication module. The DAQPIC18F4550 has more digital and analog pins than development boards like the Arduino UNO and can operate wirelessly, which is an advantage compared to data acquisition boards like the NI USB-6008. Virtual test instruments were created in LabVIEW to verify the functionality of the library and firmware using the DAQPIC18F4550 board. Virtual instruments were run that combined control, data acquisition, and remote communication tasks using low sampling rates, on the order of 400 samples/s.
References
[1] Miron C., Olteanu S. C., Christov N. and Aitouche A., (2018), “Architecture for Embedded Supervisory System of Distributed Renewable Energy Sources”, 2018 7th International Conference on Systems and Control (ICSC), Valencia, Spain, pp. 258-262, doi: 10.1109/ICoSC.2018.8587771.
[2] Abdelsattar A., Park E. J. and Marzouk A., (2022), “An OPC UA Client/Gateway-Based Digital Twin Architecture of a SCADA System with Embedded System Connections”, 2022 IEEE/ASME International Conference on Advanced Intelligent Mechatronics (AIM), Sapporo, Japan, pp. 798-803, doi: 10.1109/AIM52237.2022.9863367.
[3] Royandi M. A., Effendi I. A., Komara A. I., and Hung J. P., (2024), “Development of low-cost wireless monitoring system and its implementation on computer numerical control machine tool”, Sensors and Materials, vol. 36, no. 3, pp. 957–971, doi:10.18494/SAM4386
[4] Suresh S., Yaswant S., Narendra Reddy T., and Vinod P., (2024), “Preliminary investigation on the development of low-cost vibration-based condition monitoring DAQ system in industry 4.0”, MTT, vol. 23, no. 5-6, pp. 1–7, doi:10.58368/MTT.23.5-6.2024.1-7
[5] Azúa-Barrón M., Vázquez-Peña A., Arteaga-Ramírez R. and Hernández-Saucedo R., (2017), “Sistema de adquisición de datos de bajo costo con la plataforma Arduino”, Rev. Mexicana cienc. agric., vol. 8, no. 1, pp. 1-12, doi:10.29312/remexca.v8i1.67.
[6] López-Vargas A., Fuentes M., García M. V. and Muñoz-Rodríguez F. J., (2019), “Low-Cost Datalogger Intended for Remote Monitoring of Solar Photovoltaic Standalone Systems Based on Arduino™”, IEEE Sensors Journal, vol. 19, no. 11, pp. 4308-4320, doi: 10.1109/JSEN.2019.2898667.
[7] Martins S. A. M., (2023), “PYDAQ: Data acquisition and experimental analysis with Python”, Journal of Open Source Software, vol. 8, no. 92, p. 5662, doi:10.21105/joss.05662
[8] Ojeda-Misses M. A. and Jarquín-Jiménez N., (2021), “Development of a Platform with Real-Time Performance for Electrical Circuits Education”, IEEE Lat. Am. Trans., vol. 19, no. 12, pp. 2147–2155, doi:10.1109/TLA.2021.9480158.
[9] Kamat P., Shah M., Lad V., Desai P., Vikani Y., and Savani D., (2021), “Data acquisition using IoT sensors for smart manufacturing domain”, in Innovations in Information and Communication Technologies (IICT-2020), Singh P. K., Polkowski Z., Tanwar S., Pandey S. K., Matei G., and Pirvu D., Eds. Cham, Switzerland: Springer, doi: 10.1007/978-3-030-66218-9_46.
[10] Ambrož M., (2007), “Raspberry Pi as low-cost data acquisition system for human powered vehicles”, Measurement, vol. 100, pp. 7-18, doi:10.1016/j.measurement.2016.12.037.
[11] Microchip Technology Inc., PIC18F2455/2550/4455/4550 Data Sheet, 2009. [Online]. Available: https://ww1.microchip.com/downloads/en/devicedoc/39632e.pdf
[12] Terzioğlu H., Herdem S., and Bal G., (2015), “The designing of data acquisition card through PIC18F4550 and an interface study”, in Applied Mechanics and Materials, vol. 752–753, Kim D., Hu J. W., Jung J., and Seo J., Eds. Stafa-Zurich, Switzerland: Trans Tech Publications Ltd., pp. 1191–1197. doi: 10.4028/www.scientific.net/AMM.752-753.1191.
[13] Hercog D. and Gergič B., (2014), “A flexible microcontroller-based data acquisition device”, Sensors, vol. 14, no. 6, pp. 9755-9775, doi:10.3390/s140609755.
[14] Kale A. V., Bankar S. A. and Jagtap S. R., (2014), "Design of PIC microcontroller-based data acquisition module with lab VIEW interfacing", 2014 International Conference on Communication and Signal Processing, Melmaruvathur, India, pp. 858-861, doi: 10.1109/ICCSP.2014.6949965.
[15] Sarma P., Singh H. K., and Bezboruah T., (2018), “A real-time data acquisition system for monitoring sensor data”, International Journal of Computer Sciences and Engineering, vol. 6, no. 6, pp. 539–542, doi:10.26438/ijcse/v6i6.539542
[16] Atmane I., El Moussaoui N., Kassmi K., Deblecker O., and Bachiri N., (2021), “Development of an innovative cooker (hot plate) with photovoltaic solar energy”, J. Energy Storage, vol. 36, Art. no. 102399, doi:10.1016/j.est.2021.102399.
[17] Hamil H., Azzaz M. S., Sakhi S., Kaibou R., and Hamil A., (2023), “Design of a thermal stabilizer based on USB data acquisition and control using LabVIEW and PIC microcontroller”, in Proc. 2023 Int. Conf. Adv. Electron., Control Commun. Syst. (ICAECCS), Blida, Algeria, pp. 1–6, doi:10.1109/ICAECCS56710.2023.10104863.




