Няма описание

anfractuosity 67322b652e Fix deprecated call warning преди 1 година
.github 7f8318652e Create FUNDING.yml преди 3 години
docs 2ef509e93d Update changelog and readme преди 1 година
icons 77ee1e9357 Play and pause icons преди 2 години
photos d323363c1c Update readme преди 1 година
scenes 94a90e5def Bump interval to 150ms, to give more time for FFT преди 1 година
screenshots b184cc95b1 Screenshots преди 2 години
README.md dc64393528 Update readme преди 1 година
application.fam 665600a614 Bump version преди 1 година
scope.c 67322b652e Fix deprecated call warning преди 1 година
scope_10px.png e3ff8565e4 Initial scope app преди 3 години
scope_app_i.h 15eef4b609 Simple FFT spectrum analyser преди 1 година

README.md

flipperscope

To compile and install

cd flipperzero-firmware/applications_user
git clone https://github.com/anfractuosity/flipperscope.git
cd ..
./fbt DEBUG=1 VERBOSE=1 fap_scope
./fbt launch_app APPSRC=applications_user/flipperscope

Alternatively the binary can now be installed from https://lab.flipper.net/apps/flipperscope or the Flipper Mobile App.

Provide signal to pin 16/PC0, with a voltage ranging from 0V to 2.5V and ground to pin 18/GND.

Press the 'ok' button (button in the centre of joypad) to pause/unpause the waveform display.

Demo showing three different waveform types from a signal generator.

Also see Derek Jamison's demonstration of this app as well as other interesting projects.

Measurements

  • Measures frequency of waveform in hertz
  • Measures voltage: min, max, Vpp
  • FFT option provides simple spectrum analyser

Signal Generator

Flipper Zero running flipperscope

Rigol

Flipper Zero running flipperscope - showing voltage measurements

In the following photo attached a MAX9814 electret microphone module to the flipper zero and used the spectrum analyser functionality, with an FFT window size of 1024 and played a 3kHz sine wave tone from a computer.

Flipper Zero running flipperscope - showing spectrum analyser

Processing captures

You can use the following simple Python script, for processing the captured waveforms, from flipperscope.

import matplotlib.pyplot as plt
import numpy as np
import struct

fig, ax = plt.subplots()
data = open("Sine.dat", "rb").read()
y = [(float(x[0]) / 2500) * 2.5 for x in struct.iter_unpack("<H", data)]
x = np.arange(len(y))

ax.plot(x, y, label='Voltage')
ax.set_xlabel('Sample')
ax.set_ylabel('Voltage / V')
ax.set_title('ADC Voltage')
ax.set_ylim([0, 2.5])
ax.legend()
plt.show()

Captured waveform

To Do

  • Customisable input pin
  • Trigger type mode

Inspiration