Oscilloscope
For my project, I decided to use a cheap Hantek 6022BE oscilloscope. This is a two-channel oscilloscope with a bandwidth of up to 20 MHz. The device is used in conjunction with a laptop computer and is connected via a USB 2.0 port. The same port is used to power the device. The device can analyze, measure and save parameters to a file for various types of periodic signals. The vertical resolution of the device is 8 bits. Maximum input voltage up to 35 volts. To measure higher voltages, various voltage divider probes are used. The brain is the Cypress cy7c68013a-100axc microcontroller. Microcontroller based on 8051 core with High-speed USB interface. In principle, an understandable choice. High speed from the processor is not needed, because all processing takes place on the computer side, but fast USB is needed. Although this oscilloscope is not as powerful, with a little programming it is capable of doing interesting things. User -johoe on reddit was able to use this library and scope to launch a successful side-channel attack on his TREZOR bitcoin device, and extract the device's private keys.
{gallery}Oscilloscope |
---|
Logic analyzer
I have a cheap 8-channel 24 MHz logic analyzer for a long time, one of the clones of Saleae Logic. This logic analyzer allows you to analyze digital signals from 0 to 5.5V, the threshold voltage is 1.5V. For most digital signals, this is sufficient. The logic analyzer is made on the CY7C68013 chip, next to it is EEPROM, with the controller settings. Still noticeable are 24 MHz quartz and a buffer element with strapping.
{gallery}Logic analyzer |
---|
Software installation
Both of these devices are interesting in that each time they are turned on, they download the program from the computer via USB into their RAM. And, in fact, you can do anything from them, without flashing in the usual sense of the word, when other microcontrollers need a programmer or a special add-on. The program that comes with the oscilloscope is not of the best quality, and besides, it comes only for Windows. But fortunately there is an open source program OpenHantek available under Linux, and for the logic analyzer I will use Sigrok PulseView is a project aimed at creating a portable cross-platform free / free / open source signal analysis software package that supports various types of devices (for example , logic analyzers, oscilloscopes and many others). Both of these programs are in the Raspberry Pi repository and you don’t have to build and compile anything from source.
{gallery}Software |
---|