GithubHelp home page GithubHelp logo

anfractuosity / flipperscope Goto Github PK

View Code? Open in Web Editor NEW
132.0 8.0 3.0 1.64 MB

Attempt at an oscilloscope application for the flipper zero

C 100.00%
flipperzero oscilloscope adc dma scope flipperscope flipper-zero

flipperscope's Introduction

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

Signal Generator

Flipper Zero running flipperscope

Rigol

Flipper Zero running flipperscope

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
  • FFT
  • ...

Inspiration

flipperscope's People

Contributors

anfractuosity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flipperscope's Issues

Improve displaying of waveforms

We have to currently wait for the whole buffer to be filled, which is 128 samples. For long
time periods, e.g 1s time period, that would be 128 seconds before display is updated.

Flipper crashes

The flipper crashes, sometimes when measuring, sometimes just after using the "run" function. I don't know if that's important but it crashed many times in a row when measuring 90hz at 1ms. Using it on the unleashed firmware. It is possible to use it, sometimes it doesn't crash for sometime. After rebooting, flipper shows: "MPU fault, possibly stack overflow". Anyway, thank you for making this cool application.

Increased sample rate

I tried to use it for some signal debugging and experienced that the resolution is a bit low for higher speed signals. (~600KHz)
If you could increase the maximum sample rate to the theoretical limit of 4.26MSamples per second or even 7.11 with lower resolution this would help a lot. Also introducing some lines to see the time resolution would be great.
After all, amazing work you've done so far, the tool is great!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.