Difference: Hantek6022BEScope (2 vs. 3)

Revision 32017-02-11 - uli

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

The Hantek 6022BE Digital Storage Oscilloscope

For the course on embedded systems we need an oscilloscope to be able to see certain signals created by micro-controller code. These signals are have a signal level of either 5V or 3.3V and are rather slow. These means that a rather limited but cheap scope is good enough for us.
The Hantek 6022BE has a sampling rate of 48 MHz or a bandwidth of some 20 MHz. To make things really cheap it uses an USB interface and the display capabilities of a PC to display scope traces and a graphical user interface (GUI) of the PC to control timebase, signal sensitivity and trigger level. Don’t expect features you will get on a 10 kUS$ Textronix scope, you will quickly hit the limitations of the 6022BE, however it should meet the requirements imposed by the course exercises.

Hantek6022be.png


The Hantek 6022BE has 2 DC coupled input channels, a calibration signal generator emitting a square signal and it is delivered with 2 80 MHz probes and a USB cable to connect it to the PC. In addition to this you get a mini CD with Windows software implementing a GUI based control program and a software development kit which allows to implement your own code.
The scope is based on a Cypress CY7C68013A chip, which is essentially a 8051 μ Controller with built in RAM, I2C and USB interface. An external I2C EPROM is used to store USB Vendor and Product ID as well as a few calibration parameters.
When the scope is plugged into the Windows PC a driver is started downloading firmware into the Cypress RAM making it ready for operation. The code is stored in RAM and must therefore re-loaded each time the scope is powered. Once the firmware is loaded the Vendor ID is changed making the scope looks like a different device.

Added:
>
>
This is how the Windows application looks like:

windowsSoft.png

Channel B is connected to the calibration signal which tells us that this is a 1 kHz square wave.
The horizontal time base can be selected between 1,2,5,10,20,50,100,200,500 ns/division up to
1,2,5 s/division. Of course 1 ns/division is pretty useless on 20 MHz scope.

The vertical sensitivity can be selected from 20 mV to 5V per division.

You can trigger the scope in

  • auto mode
  • normal mode
  • or single shot
and you can trigger on channel A or B and select the trigger slope. The trigger is done purely in software: First data is taken on the scope, then transferred via USB to the PC where the triggering is computed in software.

The scope can run in normal y(t) mode showing the time dependence of the signal or in X/Y mode, where the X axis corresponds to the signal read on the second channel. There are some mathematical functions that can be executed on the signals:

  • channel A + channel B
  • channel A - channel B
  • channel A * channel B
  • channel A / channel B
  • FFT (Fast Fourier Transform) showing the frequency content of the signal
The signal trace can be exported to an ASCII file and re-imported.
 

Running the Hantek 6022BE under Linux

Just like in the Windows case we must first first load the scope with its firmware. There are different ways to do this:
use udev rules to load the firmware using the fxload program
make the application program load the firmware if it is not loaded yet

When is scope is plugged in without the firmware being loaded it announces itself as a Cypress Semiconductor device with Vendor ID 0x04b4.

Line: 29 to 51
 
META FILEATTACHMENT attachment="lsusb-2.png" attr="" comment="lsusb after loading firmware" date="1485290888" name="lsusb-2.png" path="lsusb-2.png" size="35312" user="uli" version="1"
META FILEATTACHMENT attachment="pulseview.png" attr="" comment="pulseview" date="1485291051" name="pulseview.png" path="pulseview.png" size="52022" user="uli" version="1"
META FILEATTACHMENT attachment="Hantek6022be.png" attr="" comment="" date="1486657922" name="Hantek6022be.png" path="Hantek6022be.png" size="1208911" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="windowsSoft.png" attr="" comment="" date="1486813598" name="windowsSoft.png" path="windowsSoft.png" size="107144" user="uli" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback