Next Article in Journal
Deep Learning for the Prediction of Temperature Time Series in the Lining of an Electric Arc Furnace for Structural Health Monitoring at Cerro Matoso (CMSA)
Previous Article in Journal
A New MDPI Proceedings Series Journal: Engineering Proceedings
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Student Sensor Lab at Home: Safe Repurposing of Your Gadgets †

Department Engineering and Mathematics, Sheffield Hallam University, Sheffield S1 1WB, UK
*
Author to whom correspondence should be addressed.
Presented at the 7th International Electronic Conference on Sensors and Applications, 15–30 November 2020; Available online: https://ecsa-7.sciforum.net/.
Eng. Proc. 2020, 2(1), 7; https://doi.org/10.3390/ecsa-7-08268
Published: 14 November 2020
(This article belongs to the Proceedings of 7th International Electronic Conference on Sensors and Applications)

Abstract

:
The COVID-19 pandemic imposed various restrictions on the accessibility of conventional teaching laboratories. Enabling learning and experimenting at home became necessary to support the practical element of students’ learning. Unfortunately, it is not viable to provide or share a fully featured sensor lab to every student because of the prohibitive costs involved. Therefore, repurposing electronic devices that are common to students can bring about the sought-after practical learning experience without the hefty price tag. In distinction to the conventional lab instruments, however, consumer-grade devices are not designed for use with external sensors and/or electronic circuitry. They are not professionally maintained, do not undergo periodic safety tests, and are not calibrated. Nevertheless, nearly all modern computers, laptops, tablets or smartphones are equipped with high-quality audio inputs and outputs that can generate and record signals in the audible frequency range (20 Hz–20 kHz). Despite cutting off the direct currents completely, this range might be sufficient for working with a variety of sensors. In this presentation we look at the possibilities of making sure that such repurposing by design prevents any potential harm to the learner and to her or his personal equipment. These features seem essential for unsupervised lone experimenting and avoiding damage to expensive devices.

1. Introduction

Getting hands on experience with various sensors is essential for instrumentation and measurement students, and most electrical and electronic engineering students as well. Traditionally, this experience was gained within a controlled environment of a staffed laboratory, where the relevant equipment is regularly serviced and maintained as appropriate. The COVID-19 pandemic severely limited lab access, student numbers and support available, requesting development of “make do” alternatives where possible. Nowadays most of the students either possess or have access to computing means like personal computers, laptops, tablets and/or smartphones. These devices can potentially be utilised for experimenting with sensors as they all have some audio capabilities, at least headphone output. Personal computers commonly provide line stereo and microphone mono inputs, whilst the other above mentioned devices frequently have built in microphone and Bluetooth audio sourcing and sink capabilities. Audio hardware operates over the audible (sound) frequencies, i.e., 20–20,000 Hz; direct current and lower alternative current frequencies are blocked off, which, although limiting potential use of audio devices for sensor experimentation, still allows using, among others, both Wheatstone and Wein bridges.
Audio signals, produced by computer equipment, are of quite low level, and should not normally harm a person, who uses these for experimentation. However, there is always some potential possibility of malfunctioning power supply and/or internal wiring, which can result in higher voltages applied to the wires, delivering the audio signal, that the experimenter might accidentally touch. As home experimentation is unattended and unsupervised, any potential possibility of harming the learner should be eliminated by design in order to enable the use of some setups in the context of a university module.
Another mandatory requirement for repurposing home equipment for lab use is ensuring no harm to the equipment can happen no matter what. A top of the range smartphone’s damage could be costlier to rectify than getting a complete lab kit. When experimenting with electronic components, it is not uncommon to short wires accidentally, which can destroy a connected audio output, not equipped with suitable protection.
Other factors, that need to be considered, include availability of the additional parts off the shelf, their delivery time, purchase price etc., but these are to be considered if and only if the safety of the learner and her/his equipment is maintained.
The conventional way to achieve safety by design is to provide suitable electrical isolation between the wires that can be touched and a potential source of harmful voltage (for human safety), and ensuring that the output of audio equipment never drives a load of too low impedance. Fortunately, there are inexpensive solutions available to satisfy these requirements.
The paper is organised as follows. The second section discusses free software that can be used to generate/acquire waveforms using conventional audio equipment. The following section considers the direct use of ground loop isolators with conventional wired audio connectors. The third section outlines ways of interfacing and audio cable to a custom circuit. The safe use of external universal serial bus (USB) sound cards is considered in Section 4. Section 5 presents the use of wireless (Bluetooth) audio. The final section presents the summary and conclusions.

2. Free Software to Generate and/or Acquire Audio Waveforms

Essential electronic laboratory equipment includes an oscillator and signal generator. There are many apps that handle sound generation and/or acquisition. We selected two feature-rich Windows apps (Soundcard scope [1] and WaveForms [2]) that do not require any external hardware, allow both generating and acquiring waveforms and are free of charge for personal use. The first app takes some screen space for controls but might be more familiar for some users and more straightforward to control (Figure 1) whilst the second one maximises the oscilloscope’s screen area (Figure 2). Both apps allow selecting audio inputs and outputs, if such options are available, and provide most features of a conventional lab oscilloscope.
Apps for Android are limited mainly to sound generation because most of the devices do not have audio line input, and even the external microphone input is rare. We found Function Generator [3] an easy-to-use app with a sleek interface (Figure 3), although some users reported that the audio sampling frequency (44.1 kHz) was insufficient for their needs at the higher end of the operating range. Another inconvenience is that the app should be active to operate as switching to another app halts the audio transmission.

3. Using Ground Loop Isolators

Ground loop isolators are used in analog for reducing low-frequency hum noise caused by the differences in the ground potential of connected analog audio devices. Most of the isolators cater for stereo sound thus consist of two identical channels. Each channel consists of a direct current blocking capacitor and a transformer for the audible range (Figure 4). The transformers ensure galvanic isolation between the input and output of the isolators of above 1000 V where specified. This isolation seems to ensure more than adequate protection of both the human and audio equipment from possible malfunctions. Figure 1 presents a diagram for galvanically isolated custom sensor circuit connections to personal audio equipment, stating restrictions on the number of channels for every option. Both the linear out and smartphone’s headphone outputs provided up to 300 mV p-p whilst the PC’s headphone output provided up to 1.8 V p-p. Combination of the PC line out and line in connections, if these are available, seems the most convenient and inexpensive option. As audio transformers cannot perform equally well at every audio frequency, the output signal of a loaded ground loop isolator needs to be measured for calibration; this applies to all the other methods discussed below.

4. Connecting Consumer Audio Cables to a Custom Circuit

Consumer audio cables come with the tip 3.5 mm in diameter and can have from two to four wires (Figure 5).
Most microphones are connected using TS (tip-sleeve) cables and sockets (mono, 1 channel), whilst stereo equipment uses at least TRS (tip-ring-sleeve) one. TRSS (tip-ring-ring-sleeve) cables and connectors can be used for complete headsets (microphone + stereo headphones). Their another common use is to detect stereo cable insertion as in this case the rings on the socket became shorted. In order to cover all the possible options, the best way of connecting consumer audio cables to custom electronics seems to be by using TRSS sockets/breakout boards/screw terminal adapters (Figure 6). TRSS sockets themselves are easy to source and inexpensive to buy but require soldering of wires to connect to, for example, a breadboard.

5. Using External Universal Serial Bus (USB) Sound Card

Significant numbers of modern laptops, tablets and smartphones use only built-in microphones for audio input. Moreover, some devices no longer offer the headphone output. These shortcomings can be rectified by using external USB sound cards that provide at least microphone input and headphone output, using either TS and TRS sockets or a single TRSS one (Figure 7). The latter option can be convenient for using with a custom protection board with transformer isolation but cannot be used with off-the-shelf ground loop isolators. The former option requires two ground loop isolators, one for each of the external USB sound card’s sockets. Another possibility is to use USB isolators, which are to be connected between the laptop/PC and the card. They are rated at 1500 V isolation voltage and more, remove the need for ground loop isolators and need to support the chosen external USB card (USB 2.0 (full speed) operation is required). The cost of a branded USB isolator is likely to be higher than the cost of two branded ground loop isolators.

6. Using Wireless (Bluetooth) Audio

Wireless connections to a custom circuit provide ultimate isolation and thus safety of both the learner and personal equipment. The recent trend in consumer audio is to replace wired connections with wireless ones, and Bluetooth audio profile (Advanced Audio Distribution Profile—A2DP) seems to be the most popular in the consumer devices despite having shortcomings (for example mentioned in [4]). Some other Bluetooth profiles, also featuring wireless audio, transmit additional information (like video or compressed speech), which results in consumption of some bandwidth at the cost of lower audio quality. For the purposes of this paper we are interested in consumer stereo A2DP Bluetooth devices with consumer audio TRS (or TRSS) sockets. Most inexpensive devices either act as an A2DP receiver or can alternate between the receiver and transmitter function. Some devices need to be externally powered through a USB connector whereas others have built in rechargeable battery, which is more convenient for our intended use. A custom development would require having either separate transmitter and receiver modules or a full duplex audio module, along with a rechargeable battery and battery charging and protection module all on the same board to fully realise the safety features of the wireless solution.
Some of the devices and modules that we acquired and used are presented in Figure 8. They operated appropriately with an Android smartphone and a laptop with built in Bluetooth adapter. We found that a Bluetooth 4.0 USB dongle worked well on our PC but a similar Bluetooth 5.0 dongle did not, maybe because appropriate drivers did not install properly.

7. Results and Discussion

We tried several consumer audio-enabled devices (a smartphone, a tablet, a laptop and a PC) in order to output and input test waveforms, suitable for experimenting with sensors using, for example, a breadboard, and demonstrated a possibility of safe unattended experimentation at home with these by a learner. The cost of implementing such an operation depends on the selected brands but the bottom line can be estimated at around $10 for unbranded items shipped directly from the People’s Republic of China. In our opinion, this cost enables a viable solution for strengthening practical hands on learning experience whilst using a fully featured sensor laboratory is restricted but it is a complementary and not an alternative solution.

8. Conclusions

We presented several low-cost ways of enhancing hands on experience of an instrumentation and measurement student by repurposing her/his personal audio equipment, ensuring the safety of both the learner and equipment by design. Because of the vast variety of devices available to learners, it is difficult to recommend a single solution that will cover any eventuality. We believe the safest, most cost-effective solution should be based on custom development utilizing a full duplex audio Bluetooth module. Finally, it is important to stress that the proposed approach cannot fully substitute learning experience in a proper laboratory with fully specified and calibrated instruments, and should be treated as a complementary one.

Acknowledgments

This research is supported by the teaching enhancement research grant, awarded by the college of Business, Technology and Engineering of the Sheffield Hallam University.

References

  1. Christian Zeitnitz. Soundcard Osclloscope. Available online: https://www.zeitnitz.eu/scope_en (accessed on 15 October 2020).
  2. Waveforms. Available online: https://tinyurl.com/tdn2gpa (accessed on 15 October 2020).
  3. Function Generator from KEUWLSOFT. Available online: https://www.keuwl.com/FunctionGenerator/ (accessed on 15 October 2020).
  4. ValdikSS. Audio Over Bluetooth: Most Detailed Information about Profiles, Codecs, and Devices. Available online: https://habr.com/en/post/456182/ (accessed on 15 October 2020).
Figure 1. User interface of the Sound scope [1].
Figure 1. User interface of the Sound scope [1].
Engproc 02 00007 g001
Figure 2. User interface of the Waveforms [2].
Figure 2. User interface of the Waveforms [2].
Engproc 02 00007 g002
Figure 3. User interface of the Keuwlsoft function generator [2].
Figure 3. User interface of the Keuwlsoft function generator [2].
Engproc 02 00007 g003
Figure 4. Encased ground loop isolator (left), audio transformer (centre) and isolation board without direct current (DC) blocking capacitors (right).
Figure 4. Encased ground loop isolator (left), audio transformer (centre) and isolation board without direct current (DC) blocking capacitors (right).
Engproc 02 00007 g004
Figure 5. Examples of stereo audio cables (TRSS on the left, two other are TRS).
Figure 5. Examples of stereo audio cables (TRSS on the left, two other are TRS).
Engproc 02 00007 g005
Figure 6. Examples of stereo audio sockets and adapters.
Figure 6. Examples of stereo audio sockets and adapters.
Engproc 02 00007 g006
Figure 7. Examples of universal serial bus (USB) sound cards. The card in the centre features TRSS socket with stereo output and microphone input.
Figure 7. Examples of universal serial bus (USB) sound cards. The card in the centre features TRSS socket with stereo output and microphone input.
Engproc 02 00007 g007
Figure 8. Examples of Bluetooth audio modules (left), switchable receiver and transmitter and receiver (two latter devices feature built in rechargeable batteries).
Figure 8. Examples of Bluetooth audio modules (left), switchable receiver and transmitter and receiver (two latter devices feature built in rechargeable batteries).
Engproc 02 00007 g008
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kalashnikov, A.N.; Elyounsi, A.; Holloway, A. Student Sensor Lab at Home: Safe Repurposing of Your Gadgets. Eng. Proc. 2020, 2, 7. https://doi.org/10.3390/ecsa-7-08268

AMA Style

Kalashnikov AN, Elyounsi A, Holloway A. Student Sensor Lab at Home: Safe Repurposing of Your Gadgets. Engineering Proceedings. 2020; 2(1):7. https://doi.org/10.3390/ecsa-7-08268

Chicago/Turabian Style

Kalashnikov, Alexander N., Ali Elyounsi, and Alan Holloway. 2020. "Student Sensor Lab at Home: Safe Repurposing of Your Gadgets" Engineering Proceedings 2, no. 1: 7. https://doi.org/10.3390/ecsa-7-08268

Article Metrics

Back to TopTop