Troubleshooting and repairing Switch Mode Power Supplies

Android Smartphone-Based Function Generator | Full DIY Project

Android smartphones are rapidly becoming popular in the education industry. Some can even be used as signal or function generators. Bulky signal generators available in the market are costly and complex to operate. Android smartphones can be used as signal generators to perform basic tasks. Android-based function generators are not as advanced as standalone function generators, but these are a good option for basic applications.

This Android-based function generator output is in the range of audio frequency signals (20Hz-20,000Hz), available at the audio output port of cellphones. Most cellphones have 3.5mm audio jack output ports. You can use an audio cable with the audio jack between the cellphone and external devices or any other applications.

Signals can also be amplified using a suitable amplifier, if required, for interfacing with other devices. While interfacing with external devices, a proper protection circuit must be used to prevent any damage to the smartphone.

Android-based function generator

Android smartphones are capable of generating audio frequency range signals and tones. Digital signal processing (DSP) hardware available on Android smartphones can be used as a function generator, but with some limitations.

Functions available on the smartphone-based function generator are square-wave, sinewave, triangular-wave, sawtooth-wave and supported frequency range from 20Hz to 20,000Hz. Signals generated using an Android smartphone can be tested using a digital storage oscilloscope (DSO) and Windows PC-based CRO software (Zelscope).

Requirements for function generation

Requirements for testing

Function Generator app installed on Android smartphone along with audio and crocodile cables for connection to DSO is shown in Fig. 1.

Steps to perform signal generation

Function Generator app

Download Function Generator app by Keuwlsoft from Play Store, and install it on your smartphone. Function Generator app running on cellphone is shown in Fig. 2.

AM signal of amplitude-modulated sinewave on DSO is shown in Fig. 6.

Sound Generator app

Sound Generator app (from Alok Mandavgane) is another option for sawtooth-wave, square-wave, triangular-wave and sinewave signals. White noise generation option is also available on this app. The Output is available at the phone’s loudspeaker.

The app has a simple interface and is easy to understand. Frequency and volume control sliders are provided at the top of the app, and function type settings are provided at the bottom, as shown in Fig. 7.

It supports signal range from 20Hz to 20,000Hz. Select the frequency and switch on/off button to activate the signal and then select the type of wave-like sinewave, square-wave and so on. A 522Hz square-wave signal generated using the Sound Generator app is shown in Fig. 7.

Testing the signals on DSO

Signals can be tested or analysed on a standalone digital oscilloscope, or PC-based oscilloscope software. Follow the steps given below for testing the signals on DSO. Connections with DSO are shown in Fig. 8.

Connect DSO with Android phone’s 3.5mm jack using suitable cables (aux and crocodile).

537Hz square-wave output as observed on oscilloscope
Fig. 10: 537Hz square-wave output as observed on oscilloscope

Testing the signals on PC

You can also use PC-based CRO software, such as Zelscope Demo Version, to analyse the generated signals mentioned above. Frequency signal values and waveforms are obtained on Zelscope software.

A USB sound card is used in this case, as it minimises any damage caused to the internal sound card of the PC if a high-value signal is applied. Options to save waveform images and text values are also available in this software.

Connect the audio jack from the cellphone output port to the microphone port of the laptop/PC. If the waveform is not obtained on Zelscope software, adjust the microphone settings on the PC.

Analysis of 440Hz sinewave signal

The output from the 3.5mm jack of Android smartphone is given to the PC through a USB sound card. A 440Hz sinewave signal generated on Android app, which is to be analysed on Zelscope, is shown in Fig. 11.

The 440Hz sinewave signal tested on Zelscope software is shown in Fig. 12.

Analysis of 440Hz square-wave signal

Similarly, a 440Hz square-wave signal generated using the Android App and its corresponding frequency on Zelscope software is shown in Fig. 13.

Noise generated on the PC-based software is less than that observed on the DSO. It can be minimised using a good audio source and good-quality cable.

Use a proper protection circuit while connecting an Android smartphone to the PC for Function Generator application. It is recommended to use a USB sound card instead of directly connecting the smartphone audio output to mic/audio input of the PC or laptop.

Madhuram Mishra is pursuing ME (digital communication) from NITTTR, Bhopal. He has keen interests in circuit design and Arduino boards.

This content was originally published here.

Troubleshooting and repairing Switch Mode Power Supplies
LCD Monitor Repair Secrets
Electronic Repair Information

Check Also

Electronics Projects: Configurable RS232 To TTL To I2C Adaptor

RS232 signals cover a much longer distance than standard TTL and I2C signals. Also, RS232 …

Leave a Reply

Your email address will not be published.