Automotive Module

Note: this Module requires a specific license in addition to the basic HScope license.

What You Can Do

The Automotive Module provide a set of tools specifically made for Automotive diagnostic. It allow you to:

1. Continuous Long-Time Recording

The Automotive Module allows lengthy and continuous real-time acquisition at lower sampling rates. Although this acquisition method is usually used for car diagnostics, it can be used in several other applications. Max sampling rate varies by oscilloscope.

2. Labels Tool

This tool is useful to perform the relative compression test. You can set any number of cylinder and their firing order and compute power.

3. 360-720° Tool

This tool allow to add the overlay of 720 degrees of crankshaft rotation in pressure waveforms. A middle cursor is moveable to allow relative measure of the angle. An option button allow to use different visualizations.

Change Log

Known Issues

  • General workaround for issues: delete and reinstall the app.
  • License Activation problems found for some phones.
    Workaround: remove/close the app from Android tasks list and restart the app.
  • Feb 2019: Device not recognized after upgrade to Android 9 (Pie).
    Workaround: Unknown. It seems after some phone upgrade to Android 9 the USB OTG stops to work. Nothing is recognized.

TODO List

  • Advice for low sampling rate respect signal frequency.
  • Reference signal cannot enabled when HS101 connected by Bluetooth.
  • Add legend to cylinders timing overlay.
  • Enable CH-0 move on Automotive Module
  • Statistics hide away when the signal change –> keep on the screen
  • AUTO option in Rate (change according zoom level)
  • On saved file add information on enabled digital channels
  • Better Waveform Management for manage many files

2.4.4 (432 Beta) May, 2024

Current issues

  • When WiFi is enabled in HScope and no device is connected the file opening crash. Workaround: connect an oscilloscope or disable WiFi in HScope settings.

Improvements

  • Better zoom and scroll function
  • Improved THD function (Audio Module)
  • Improved Notes with better text on multiline management

Fixed bugs

  • Notes position not correct in Oscilloscope mode, after loading
  • Cut waveform in Automotive mode did not move correctly Notes and Flags
  • Wrong XML formatting in some case for the HXML files
  • Crash on reset HS502 calibration data

2.4.3 (429) Apr, 2024

Improvements

  • New device supported: WitMotion WT9011
  • Added velocity stat for Accelerometers (in mm/s)
  • Upgraded RS232 UART decoder (digital module – update 2024)
  • New RS485 MODBUS decoder (digital module – update 2024)
  • New LIN decoder (digital module – update 2024)
  • Better labels for vertical cursors (update 2024)
  • Report supports longer file names
  • Improved CAN decoder
  • Channel 1 can be moved in Automotive Mode
  • Higher resolution design for bigger screens
  • Upgraded digital module management (major upgrade)
  • Added modules and settings button in Automotive Module
  • New Share via Cloud V2.0
  • UART decoded signal can be Exported in .CSV

Fixed bugs

  • HS101 Bluetooth oscilloscope did not work on latest Android versions (> O version)
  • HS-ACCEL DIY version could not connect
  • Issue in scaling Math Channel in Automotive module
  • Fixed driver for Hantek 6074
  • Could not enable bluetooth in Android 14
  • Crash due to Bluetooth in some device
  • Crash in report creation in Automotive mode
  • Bluetooth authorization not recognized for devices without GPS
  • Fire Order Overlay could not move well in some case

2.4.2 (408) Dec, 2023

Implemented enhancements

  • Added inH2O unit for probes
  • Optimized CC-80 Current Probe settings (need to download again the probe configurations)
  • Added Zoom behaviour option among XY or only Y (Update 2023)
  • Removed auto zoom and time set on acquisition start (the screen keep last zoom level and position)
  • Added Amplitude Zoom on mouse wheel scroll
  • Automotive Pages for high rates (Update 2023)
  • Improved Zero Offset function in Automotive Module (at acquisition start)
  • Improved vertical cursors (can enable/disable labels)
  • Improved Automotive view management
  • Can set/load/save Report Title for each waveform (Update 2023)
  • Automotive module don’t hide scroller during recording
  • FFT data can be exported to CSV (Update 2023)
  • Digital channel can be used in Automotive Module
  • Flag button trigger also Automotive Manual Start
  • Improved messages for Bluetooth Trigger Button

Fixed bugs

  • Wrong voltage values for FOSC53B
  • Automotive waveform disappear in some case (ie. if inverted)
  • Update 2023 button did not appear in some case
  • HS502 multiplier could not be calibrated (now need to use stabilized 5V source)
  • Stats wrong for channel > 1 (Automotive Module)
  • HS-ACCEL (DIY edition) has wrong units (V instead of G)
  • Automotive Zero Level has wrong values
  • Math module bug in Automotive Module
  • Empty visualization on loaded file in Automotive Module
  • Oscilloscope mode could not load files first time without oscilloscope connected or Demo mode
  • Menu UI fixed for Android 13
  • Crash in Android 14
  • Cloud service don’t work
  • HS402 wrong values on start for V/A device
  • App restart when Bluetooth device get connected or disconnected
  • HS502 freeze on voltage change + roll-mode + trigger
  • Automotive mode auto-size waveform function (3) did not work

2.4.2 (389) Sep, 2023

Implemented enhancements

  • Some design detail improved
  • Updated Google and Huawei libraries at latest versions
  • Duty Cycle Math function (update 2023)
  • Support for new Fosc53C WiFi oscilloscope
  • Support for new HS512
  • Added Time/Div control in Automotive Module (update 2023)

Fixed bugs

  • HS502 block in some case
  • Wrong pin for custom AC/DC mod on Hantek 6022BL
  • Automotive Module not enabled for HS502 in case the user has no other licenses
  • Wrong calibration data for latest LOTO OSC-H02

2.4.2 (380 Beta) Mar, 2023

Implemented enhancements

  • HS402 supports new hardware variation (V/A Logger)
  • System Settings show also Data and Cache size and allow to clear the cache (Update 2022/2023)
  • Improved file manager performances (need to clear the cache first time after update)
  • New Histogram stats function (Update 2022/2023)
  • Probes Management keep always x1 probe

Fixed bugs

  • HS402 rate error when enable/disable channel
  • Math Module issues in Oscilloscope Mode
  • Digital module did not show the list of available analog channels
  • HS502 Licensing
  • Crash on Math Channel statistics

2.4.1 (375) Feb, 2023

Implemented enhancements

  • HS502 can run on any android device without app store
  • Better colors for Horizontal Cursors on White Background
  • File Explorer show the presence on the Digital Channels in the waveform
  • Better visualization for Calibration Data
  • Better Fire Order Overlay design (Automotive Module)
  • Filters introduce zero-phase shift
  • Improved WAV exporter
  • Improved Math Demodulation function
  • Can apply filters to the result of Math operation (Update 2022/2023)
  • Improved Logger UI
  • Added support for Fosc53B

Fixed bugs

  • HS402 fast switch of rates caused halt
  • HS502 asked license for some new feature
  • Automotive module could not save waveform in some case
  • Horizontal cursors did not work in some case
  • Automotive module wrongly show Digital Channels in some case
  • HT 1008 fixed data error if started with 4 channels
  • Logger CSV import crash
  • Logger channels not updated according selected probe
  • Signal Invert Filter issue (button don’t reflect the actual status)
  • Filters not working is some condition in Automotive Module
  • WAV exporter crash in some case, data could be corrupted
  • Report didn’t show Math channel info in Automotive Module
  • Solved bugs on Logger

2.4.0 (363) Dec, 2022

Implemented enhancements

  • Custom Channel Names can be imported from file
  • Channel Names and Probes are automatically imported when SET an existing working folder
  • Channels signal can be inverted with Filters (Update 2022/2023)
  • Can add pictures to the Waveform from the phone Gallery (Update 2022/2023)
  • Can delete pictures from the Waveforms (Update 2022/2023)
  • Add cursor stabilizer for 360/720 Automotive Tool
  • Possibility to set Automatic or Manual start for Automotive recording (Update 2022/2023)
  • Auto-Update Waveform list when the Document Folder is modified outside HScope (Update 2022/2023)
  • Digital Module can convert result of the Math Module to digital signal and process (i.e. for CAN)
  • Digital Module: improved analog to digital conversion
  • Improved PDF Report
  • Better control of 720/360 graph (measurement cursor has the priority over the side cursors)

Fixed bugs

  • Problems when using a device without Google Play
  • Crash for HS-ACC in some case
  • Filter let signal disappear in roll mode
  • Crash on set app folder
  • Waveform preview image did not refresh when overwrite waveform
  • Digital signals could not be loaded from saved waveform
  • Cloud ID could not be copied automatically from clipboard in some case
  • Bluetooth permissions on Android 12
  • Crash if selected the wrong documents folder
  • Overvoltage was not shown correctly
  • Crash with several dialogs
  • Bugs on Digital Module
  • PWM window could not resize correctly according menu width
  • Re-save waveform did not keep the photos

2.3.9 (346) Ago, 2022

Implemented enhancements

  • Automotive Module: is it possible to set the allocated RAM up to 2GB (Update 2021/22)
  • Enhanced Automotive Module performances.
  • Correct visualization of FPS statistic.
  • Enhanced freq function (Automotive module)
  • Automotive Module auto-zoom consider the actual data range (relative range for a better zoom)
  • Waveform explorer can load single files (HScope .zip format)
  • Enhanced white theme in Data Logger page
  • Normal Trigger allowed in Roll Mode (HS402 and Hantek 6074) (Update 2021/22)
  • Enhanced XY module: better auto-viewport, point measure, possibility to set V/div (Update 2021/22)
  • Avoid Labels overlap in Vertical Cursors
  • Labels on vertical cursors can be hidden in 100/360/720 deg. Tool
  • Automotive Module can export PDF Report (Update 2021/22)
  • Possibility to change Probes order (Update 2021/22)
  • Can open HScope ZIP files from other apps to HScope (Update 2021/22)
  • Improved DataLogger
  • Improved PDF Report with probes information and waveform author, channel coupling, filters, notes
  • Can import digital data from saved waveforms
  • Improved Probes Cloud Downloader to work also Offline
  • Improved Performances / Memory usage
  • Can add photos to the Waveforms files
  • Added support for Android 12
  • Added CAN Decoder (Digital Module)
  • Supported latest OWON 1022 hardware
  • Improve Math Demodulator to adapt automatically to the signal
  • Improved PDF Report
  • Added possibility to rename Channels
  • Automotive Channels can hide if not used
  • Channels can be hidden when load a waveform
  • Can trigger on Channel-3 & 4 in case Channels-1 and 2 are OFF

Fixed bugs

  • Fixed crashes on Automotive module due to lack of memory.
  • Fixed rates for Hantek 6074, crashes with roll mode trigger
  • Crash on too much memory allocated for Automotive Module
  • PDF Report export is not recognized in Google Drive
  • Load waveform button did not work in Data Logger page
  • Bug on XY Module – frequency relation data wrong in some case, graph Y unit wrong in some case, wrong data export, wrong thumbnail image
  • Wrong voltage selection on Channel 2 – Automotive Module
  • Crash in phones with limited RAM when they import waveforms generated with phones with larger RAM
  • XY Module: Delay computation run indefinitely also after module close
  • Wrong Labels position in Vertical Cursors with 2 channels
  • Imported waveform could not be filtered in Oscilloscope screen
  • Crash for Hantek iDSO1070
  • Voltmeter color error (stays always red after first time)
  • Fixed crash on Freq function (Automotive Module)
  • Fixed trigger on Channel-2
  • Flags could not be removed on new acquisition or file loading

2.3.8 (305) Apr, 2022

Implemented enhancements

  • New driver for Hantek DSO-2xx0 Oscilloscopes (DSO-2090, DSO-2150, DSO-2250)
  • Added Flag tool during Automotive recording (Update 2021/22, see guide for usage)
  • Notes content can be changed
  • Flags can be saved/loaded
  • 720 Degree Tool cursors can be moved also on the top part of the screen
  • Scroller Window is hidden during Automotive recording and then restored
  • Waveform position and zoom is saved and can be loaded
  • Turned OFF Channels get reduced in Oscilloscope mode
  • Voltage ranges for each channel is more “user friendly”
  • Voltmeter show Duty Cycle
  • White color scheme for Voltmeter
  • Enhanced 720 degrees graph
  • Enhanced Phosphor effect
  • Enhanced Cloud waveform sharing
  • Enhanced contrast in White UI for AC/DC/OFF buttons
  • New report created on screenshot for Oscilloscope screen (update 2021/22)
  • Enhanced notes tool (update 2021/22)

Fixed bugs

  • Issue on ON/OFF button for Math panel in Automotive module
  • Automotive Labels tool graph outside graph area
  • Horizonal Cursor values was not referred to the axis unit (did not scale)
  • Wrong visualization of Channel 4 panel in Automotive screen
  • Normal/Single Trigger did not work on ISDS205.
  • THD Processor remove DC component for more accurate result.

2.3.7 (291) Oct, 2021

Implemented enhancements

  • Possibility to set Waveform name upon Save
  • Audio Module can import WAV files (Update 2021)
  • Added the THD calculator in the Audio Module (Update 2021)
  • Added 0-100% vertical cursors
  • Math Module output display some known units as result of the operation (Watt, Ohm)
  • Added Time column in CVS Export
  • Added BandPass and BandStop Filters
  • Better text input dialog (for file names and other)
  • Hantek 6022 (BE/BL) added hardware option for AC Coupling
  • Waveform scroller can be zoomed with fingers. Added position of cursors and tools.
  • Improved digital module
  • Digital data can be saved / loaded together with analog data
  • CSV can exports up to 4 channels data
  • Added dialog to confirm file deletion
  • Automotive module can record digital data
  • Audio module allow to use microphone to acquire data
  • Hantek 6074 real-time rate up to 125KSa/s with 4 channels
  • Hantek 6074 supports Audio Output
  • Improved Auto Voltage function
  • Optimized freq() function (Math Module)
  • Better arrangement for Probes on Cloud

Fixed bugs

  • Crash on file export in other formats (XML, CSV, WAV)
  • Crash on folder import on Android 8
  • White color for PWM Module
  • Font size in logger graph
  • Crash in case load a waveform just with second channel
  • Crash on save waveform after loading
  • AUTO Voltage did not work with FX2 Experimental Mode
  • Hantek 6074 input voltage wrong when enable channel
  • Channel 4 voltage selector did not show correctly
  • Autoscroll in Automotive Module

2.3.6 (274) Sep, 2021

Implemented enhancements

  • 360′ Tool show also RPM information
  • Added 1 decimal to Duty Cycle value
  • iDSO1070 added lower rates (slow rates, 1, 2, 5KSa/s)
  • Waveform Explorer can zoom the thumbnails (Update 2021)
  • Automotive Module shows units for loaded waveforms

Fixed bugs

  • Waveform loading did not remove previous tools on the screen
  • Wrong data read for old saved waveform (2019)
  • Vertical cursors cannot be used on loaded waveforms
  • Visualization error in statistic (of second type)
  • Horizontal cursors did not move in FFT
  • Crash in Automotive module (in some case)
  • Automotive module did not show Channel-4
  • Color error in 360 and 720 Tools
  • XY Plot button not enabled
  • Saved files did not show in Data Logger
  • Automotive Module saved empty files from second save
  • Data logger could not open saved CSV for some locale

2.3.6 (269) Aug, 2021

Implemented enhancements

  • Added Math computation to Automotive Module (Update 2021)
  • Automotive Module allow to set zero offset before recording starts (Update 2021)
  • Added 4 Channels support for Hantek 6074
  • Added support for new HS-ACC WiFi Accellerometer
  • Added 360° Automotive Tool
  • Enhanced Automotive Label Tool
  • Improved Automotive Fire Order Tool
  • Menu size can be configured (both Oscilloscope and Automotive screens)
  • White UI (both Oscilloscope and Automotive screens) (Update 2021)
  • Added filter buttons in Automotive menu
  • Show distance among 3 horizontal cursors
  • Interface buttons hidden when take screenshot
  • Improved load/save data speed
  • Channels can have arbitrary names (according hardware)
  • Added info on the memory available for the app (in Settings->System. Device dependant)
  • Don’t need DEMO mode to open and process saved waveforms
  • File explored detect correct file versioning

Fixed bugs

  • Document folder link loose on phone reboot
  • DSP Filter error at the beginning of the Waveform
  • Save calibration data crash on Android < 10
  • Waveform align buttons didn’t work when Math module is enabled with just 1 channel
  • Filters and Math operations can be applied just 1 time in Automotive Module
  • Crash due to lack of memory in Automotive Module
  • PSO2020 wrong hardware settings when connected the device
  • Crash on Automotive module new Zero Offset feature
  • Cloud Download did not save file in Public Folder

2.3.5 (245) Jun, 2021

Implemented enhancements

  • HS402-Wifi DIY Oscilloscope driver – faster WiFi connection
  • Added support for Android 11 (new file management)
  • Screenshot on the voltmeter screen take all the controls
  • Added Gravity unit (G) for accelerometer sensors

Fixed bugs

  • Calibration Multiplier crash for OFF channels
  • Calibration error for HT1008
  • Wrong number of samples for HT1008
  • Crash on file delete (new file management Android 10+)
  • Data Logger wrong MAX and MIN values in some case

2.3.4 (235) Apr, 2021

Implemented enhancements

  • HS10X supports PWM output (it requires Firmware v10.2)
  • HS402-Wifi DIY Oscilloscope driver
  • Data can be exported also from XY Module.
  • XY Module can show also data saved.
  • Improved Labels Tool buttons
  • Improved Settings screen, added a specific section for Oscilloscope settings
  • Improved Vertical Cursors & disable Auto Vertical Cursors
  • Extended export capabilities of the CSV format up to 1ML samples (old license owners requires Update 2020)
  • Faster UI coloring for channels
  • Added Cloud sharing for saved Waveforms, improved Cloud Waveform Downloader
  • Improved visibility of values on the Vertical Cursor
  • Bigger buttons, enlarged Settings menu and texts for Tablets
  • FFT allow to select the active channel, UI updated
  • Math integrate new Demodulation function (for low frequency, eg. vibration sensor)
  • Added statistics for 2 Vertical Sensors
  • Added Harmonic Cursors for FFT Vertical Ruler

Fixed bugs

  • DUAL mode not working for HS10X
  • Bug on duty cycle
  • Bugs with Automotive Module (wrong scaling, crashes,…)
  • FPS did not show after next app openings
  • Block on HS402 WiFi if it starts with DEMO running
  • HS402 annotation for current adc resolution (HD512, HD1024,…)
  • Crash on Automotive Labels Tool if selected labels < 2
  • Crash on Automotive Tools (if opened many times)
  • Data Logger wrongly ask license when try to open files
  • Wrong event management on channels graph lead to errors
  • Wrong values for Horizontal Cursor in second scale
  • Fixed FX2 Experimental Mode for Loto OSCA02 and OSC802
  • Fixed wrong text position on the vertical cursors
  • Could not click on + button after enabling the Automotive Labels tool
  • Wrong button size in automotive tools (Labels and Fire Order tools) after change font size
  • XY Graph size issues for big screens (eg. Tablets)
  • Horizontal Cursor alarm icon disappear after click
  • FFT disappear in some case, UI issues.

2.3.2 (211) Jan, 2021

Implemented enhancements

  • Implemented 4 Channels management (Oscilloscope Mode, Automotive Module, Import/Export)
  • Updated Automotive Module UI
  • Hantek 1008 support 4 channels (old license owners requires Update 2020)
  • Improved 720 Degree Automotive tool
  • Improved XY Module (old license owners requires Update 2020)
  • Improved HS402 driver (real-time rate)
  • Math module signal can be moved in the screen
  • Signals can show infinity values (due to operations with Math module)
  • Increase channel modification timeout to 3secs.
  • Improved axis labels

Fixed bugs

  • Fixed bug on crash when probe deleted
  • Fixed wrong scaled when resize channel
  • Fixed Math module doesn’t show
  • Fixed crash on Math module if used with other 4 channels active
  • Fixed voltage spinner on probe change
  • Fixed bug on Hantek 1008 crash

Audio Module Intro

Before You Start

This Module license is in addition to the basic HScope license for the supported oscilloscope model.

What You Can Do

The Audio Output Module allow to:

1. Import WAV Files

WAV Files can be imported, analysed, processed and exported in HScope.

2. Hear on the Phone the Signal from the Oscilloscope

The oscilloscope signal can be sent to the phone speaker through real-time data streaming. While hearing the signal you can still analyse the signal with the other functions. Since the oscilloscope can acquire low voltages this function is useful to check low signals in initial amplifier stages.

Note: this function is not supported by all the oscilloscopes. Check your model under the oscilloscopes list.

3. Compute the Output Power of an Audio Amplifier

The Audio Module can compute the output Power (RMS Power) of a Audio Amplifier by connecting the probe to the speaker connections and by selecting the impedance of the speaker in HScope. The maximum power is indicated in the Audio module panel and depends from the oscilloscope maximum input voltage. For increasing it, set a higher oscilloscope input voltage or use a x10 / x20 / x100 probe. The result is shown in real-time on the graph under the RMS value. For this measure you should input a sine wave in the amplifier. This signal could be produced by a portable MP3 player or by another phone App.

Pay attention: the sound generator cannot be the same phone running HScope since it cannot share the same GND of the oscilloscope.

Pay attention: the output of an audio amplifier could have high voltages. The GND of the probe should be connected to the GND of the amplifier or to the speaker wire connected to the GND. If both speaker wires are floating (neither one on GND), then the oscilloscope GND and phone box could be at a dangerous voltage. In this case you may look to some insulation solution like to use capacitors in series both to the probe tip and to the probe GND. (see EEVBLOG)

4. Compute the THD of the Signal

For pure sinusoidal signals you can compute the Total Harmonic Distortion.

5. Input data from Microphone

You can acquire data from microphone input. Available only on phones with at least Android 6.0.

Resources

Automotive Waveforms

Here some sample of automotive waveform captured by users.

Automotive Module

This module is not supported by all the oscilloscopes and it is not supported in the same way. Check more under each oscilloscope page.

The Automotive Module allows lengthy and continuous real-time acquisition at lower sampling rates. Although this acquisition method is usually used for car diagnostics, it can be used in several other applications. Max sampling rate varies by oscilloscope.

Before You Start

The Automotive Module license is in addition to the basic HScope license for the supported oscilloscope model.

The minimum requirement for this module is a device with 4GB RAM or more.

1. Start Recording

Rate and channel parameters to be configured prior to a recording start.

Maximum recording time is sample rate dependent and displayed under the recording button.

Recording automatically starts when a significant change in the input signal is detected.

After the recording start the parameters cannot be changed unless you run a new recording.

2. Analyze The Data

Recorded data can be zoomed and scrolled with fingers. Cursors appears as you click with 1 or 2 fingers on the horizontal axis.

Labels Tool

This tool is useful to perform the relative compression test. You can set any number of cylinder and their firing order. Example below:

720° Tool

This tool allow to add the overlay of 720 degrees of crankshaft rotation in pressure waveforms. Pink cursor is moveable (on bottom part). By clicking on the gray labels is possible to show or hide the text.

Annotations

Coming soon

Cylinder Timing Overlay

This overlay allow to visualize the cylinder status at a certain time. More info in the following demo.

3. Import / Export

This module allow export and import of waveform in an efficient open format. Waveforms are saved in .zip format in the following phone folder: /Download/HScope/Automotive
Users can share the saved waveforms just by copying from and to this folder. Filenames can be changed with Android file explorer. Waveform preview is available to remember the waveform before importing.

Import / Export Tool

Other

Hardware Limitations

This functionality is not commonly found in commercial oscilloscopes which are mostly ‘memory based’ and not ‘data streaming based’. Continuous Data Acquisition capability and speed depends strongly on hardware architecture of each oscilloscope model and the ability to ‘overclock’ its drivers.

For example the Hantek 1008 allows a maximum rate of 2KSa/s with this module, sufficient for crank position sensor diagnostics. HS10X DIY Oscilloscope Series allow up to 100KSa/s. FX2 Chipset based oscilloscopes allow a maximum continuous sampling rate up to 125KSa/s.

Resources

Audio Module

Note: this Module requires a specific license in addition to the basic HScope license.

What You Can Do

The Audio Output Module allow you to:

1. Import WAV Files

WAV Files can be imported, analysed, processed and exported in HScope.

2. Hear the input signal from Channel-1 on phone

The oscilloscope signal can be sent to the phone speaker through real-time data streaming. While hearing the signal you can still navigate in the Oscilloscope graph or switch to the FFT graph. It works at sampling rates 25KSa/s and 50KSa/s. Since the oscilloscope can acquire low voltages this function is useful to check low signals in initial amplifier stages.

Note: this function is not supported by all the os

3. Compute the Output Power of an Audio Amplifier

The Audio Module can compute the output Power (RMS Power) of a Audio Amplifier by connecting the probe to the speaker connections and by selecting the impedance of the speaker in HScope. The maximum power is indicated in the Audio module panel and depends from the oscilloscope maximum input voltage. For increasing it, set a higher oscilloscope input voltage or use a x10 / x20 / x100 probe. The result is shown in real-time on the graph under the RMS value. For this measure you should input a sine wave in the amplifier. This signal could be produced by a portable MP3 player or by another phone App.

Pay attention: the sound generator cannot be the same phone running HScope since it cannot share the same GND of the oscilloscope.

Pay attention: the output of an audio amplifier could have high voltages. The GND of the probe should be connected to the GND of the amplifier or to the speaker wire connected to the GND. If both speaker wires are floating (neither one on GND), then the oscilloscope GND and phone box could be at a dangerous voltage. In this case you may look to some insulation solution like to use capacitors in series both to the probe tip and to the probe GND. (see EEVBLOG)

4. Compute the Audio Distortion (THD+N)

The primary job of any audio device is to faithfully reproduce or transmit the audio signal that is input to it. An ideal, linear audio device will produce an output signal that is an identical scaled version of its input signal. Anything that alters the input signal in any way, other than changing its magnitude, is known as distortion.

A classic means of detecting audio signal distortion is to stimulate a device under test (DUT) with a pure sine wave and then conduct a spectral analysis of the DUT output. Sine waves are used because a pure sine signal has the unique property that all its energy is concentrated at a single point in the frequency spectrum. This makes it easy to analyze the output from the DUT for unwanted distortion components. When a single sine wave is used as the stimulus, nonlinearities in the DUT cause harmonic distortion, wherein distortion components occur at harmonics (integer multiples of the sine signal’s frequency, or fundamental frequency).

Total Harmonic Distortion Plus Noise (THD+N)

The THD+N technique is the most common method of measuring harmonic distortion. In its basic form, it is implemented with a sharp notch filter tuned to the fundamental sine frequency, a bandwidth limiting filter, and an rms level meter. The notch filter removes the fundamental sine signal, leaving a residual signal which consists of the harmonics and noise. The THD+N Ratio is calculated as the bandwidth limited rms level of the residual divided by the rms level of the entire signal.

Samples for testing

If you want to test the THD processor you can import WAV files with known distortion. For example the file you can find at this link.

Resources

PWM Module

This module is available just for few oscilloscopes as:

  • Loto Oscilloscopes (OSC 482, OSC 802, OSC A02)
  • Hantek 6022 (BE & BL)
  • HS10X & H40X DIY Oscilloscopes
  • HS502

It allow to use the output calibration pin (generally set to 1KHz square wave) to generate a PWM output signal. Max frequency and duty cycle range depends on the device (detail are in each oscilloscope page).

Example of usage as this video.

XY Plot

You can use this module only when the first 2 channels are active.
Channel-1 → plotted on X axis
Channel-2 → plotted on Y axis

Features

  • Real-time processing
  • Fading graphic effect
  • Big graph space

On the left you can see 5 periods of both channel signals with the information about amplitude and frequency.

On the right there is the XY Plot with comparison information of the two signals. The phase shift is calculated with the Lissajous method and it is valid just for Sinusoidal Waveforms with same frequency.

Calculation of Time Delay

If you want to calculate the time delay for an arbitrary signal from 2 points of a circuit under analysis, just press the yellow/blue text and you will see this value obtained from the Cross-Correlation of the two signals.

Invert the Signals

If you want to invert one or both the signals, just Invert it in the Filter panel available for each channel.

Proof of Concept

The following video show the real-time capacity of this module.

Screenshots

Comparison test between HS-402 and Tektronix-465 oscilloscopes with PNP and NPN transistors.

FFT

Clicking on FFT button is possible to see the rapresentation of the signal in the Frequency Domain only for the first Channel. The range of visible frequencies on screen can be selecting zooming-in or out with the fingers on the screen.

Activating the STATS button is possible to see the top 3 frequencies in the selected frequencies range. These values are corresponding to the computed FFT values and not to the real values that can be checked better with the ruler.

FFT Windows

It is possible to select between standard windows and Flat Top windows for the FFT. Flat Top windows (HFT90D and HFT248D) are used when is required to determine the exact amplitude of a sinusoidal component in the input signal. They have bandwidths W3dB of about 3 . . . 5 bins, roughly twice as wide as non-flat-top windows with comparable sidelobe suppression, but very low maximum amplitude error emax.

WINDOWS SUMMARY
BartlettW3dB = 1.2736 bins
emax = −1.8242 dB = −18.9430 %
HanningW3dB = 1.4382 bins
emax = −1.4236 dB = −15.1174 %
HFT90DW3dB = 3.8320 bins
emax = −0.0039 dB = 0.0450 %
HFT248DW3dB = 5.5567 bins
emax = 0.0009 dB = 0.0104 %
Sample FFT Windows

Harmonic Cursor

When you use one single Vertical Cursor in the FFT module, it will show also the Harmonics of the selected frequency, up to the 10th harmonic.

Math Channel

To add a math channel, just click select MATH in the modules and you will see the Math configuration panel. You can quickly select one of the built-in functions, such as inversion or addition. All the standard arithmetic functions are supported along with more complex functions like demodulation and instant frequency of the signal.

With HScope currently you have available only 1 math channel.

List of functions

Basic functions:– A (invert)
A + B (sum)
A – B
(difference)
A x B
(multiply)
A : B
(divide)
Advanced functions:demod (demodulation)
freq
(instant frequency)

Amplitude Demodulation

For some signals (for example from vibrations sensors), the information is carried by the amplitude (or envelope) of the signal. The demod() function allow to do this operation. Following is the equivalent circuit of this operation.

Envelope Detector

Instant Frequency

Visualize the instant frequency variation of the signal along time. The freq() function is useful for signal where frequency variation bring the useful information.

Sample application of this function to detect missfire with Automotive Module (detected 1 missfire event during long period recording):

Credits

  • freq() function (or Instant Frequency) has been developed with the support of: Denis, Ravindra

Introduction – Oscilloscope Modules

Click on the “red cube” button to access the additional modules for the Oscilloscope.

  1. Math Module: allow to compute Math operations among the first 2 channels.
  2. FFT: allow to compute the FFT operation.
  3. XY Plot: for comparing signals and compute phase shift.
  4. Audio Module: for listening the input signal with the phone speaker and compute Amplifiers Power. Instructions here.
  5. Digital Module: for analize digital signals.
  6. PWM Module: if available in the oscilloscope hardware it control the PWM output.

HScope on Raspberry Pi

HScope can run on Rasperry Pi with Android system installed on. Following are the example of implementations provided by the users.

HScope on Pi3

By Denis.

HScope on Pi4

By Dave D.

This setup has been made with a Raspberry Pi 4B inside a Argon ONE case. Attached are several pictures of a HS101 BLT, HS101 and HS402 all in action. The PI 4B has built in Bluetooth so it is possible to connect up the HS101 BLT.

Install Android 11 on Pi4

Here is the link to the Lineage OS 18.1 which is android version 11.

Here is link to google play store that will need to be installed. Dave found it easier to put the file on a USB drive and recommend putting this file on a separate USB drive for use later in the installation.

Tips

  1. Install Android to microSD or to external SSD that uses USB. I tried a USB stick and android kept locking up.
  2. Put the Google Play store file on a USB stick. I had significant issues trying to download the play store onto the Raspberry. Using a PC to download Google Play store and having it on the USB stick allowed installation per leepspvideo.
  3. I tried separate USB mouse and keyboard. Mouse wouldn’t work. I had to use a logitech K400+ integrated touchpad and keyboard.
  4. There is no pinch zooming. Its android thing. I mention this because you can double left click on the oscilloscope trace and HScope will zoom right in. But you have no way to zoom back out. What I learned to do was to toggle through “Auto/Norm/Single” selection. Then hit the play button. Then the trend zooms back out.