Skip to content
main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Jun 29, 2021

If you are actually looking for the Scopy Oscilloscope by Analog Devices you can find it here.

Scoppy

Scoppy is an oscilloscope that consists of an Android App for your phone/tablet and firmware for your Raspberry Pi Pico. Signals are measured by the Pico and the waveforms are displayed on the Android device. No programming is required and both the app and firmware are free to download.

The aim of the Scoppy project is to give electronics novices and hobbyists access to an ultra cheap oscilloscope that is useful for viewing low voltage, low frequency signals.

See the Wiki for documentation and Discussions for ... well ... discussing Scoppy.

What you'll need

  • An Android device that's running Android version 6.0 (Marshmallow) or higher. The device must also support USB OTG (On-The-Go) - most modern phones/tablets do (if you don't see the app when browsing the Play Store then your device probably doesn't support this feature)
  • A USB OTG adapter/cable compatible with your phone/tablet
  • A Rasperry Pi Pico board

Important

Please use the latest versions of the App (v1.010) and Firmware (v2). Older versions of the firmware will not work with the latest version of the app and vice versa

Quick Start

1. Install the Scoppy Android App

Install the Scoppy Android app from the Play Store.

2. Install the firmware onto your Pico

Download the firmware onto your computer. It is here: pico-scoppy-v2.uf2. Press the bootsel button on your Pico and connect it to your computer. Copy the pico-scoppy-v2.uf2 file onto your Pico. The onboard LED should start blinking.

3. Connect the Pico to your Phone/Tablet

Attach the OTG adapter/cable to the USB input of the Android device. The other end attaches to the USB cable you have connected to your Pico.

4. Start Scoppying!

Attach the +ve output of your signal source to GPIO26 of the Pico and the ground to gnd. This will allow you to measure signals between 0V and 3.3V. Of course the signal voltage should be within the allowed range of the ADC pins of the RP2040. See section 5.2.3 of the RP2040 Datasheet for more information. For Channel 2, attach a probe to GPIO27. You might want to insert a current limiting resistor (eg 100R) between the signal source and the pico ADC, just to be safe.

If you don't have a suitable signal source you can view the test signals on GPIOs 16 and 18 (pins 21 and 24) by connecting one or both of them directly to the ADC pins (GPIO 26 and 27). GPIO 16 is a 1kHz square wave with a duty cycle of 50%. GPIO 18 is a 800Hz square wave with a duty cycle of 20%.

Detailed installation instructions

See the Wiki for more detailed installation instructions.

Measuring different voltage ranges

To remove the 0-3.3V input voltage limitation (and do whatever signal conditioning magic takes your fancy) you’ll need to add an analog front end. This can be as simple as a voltage divider or as complex as you want it to be. The Wiki contains some examples of simple (naive?) AFE designs and you are encouraged to share your own front end designs and ideas with other Scoppiers. Just head to the forum.

Tips

  • If the traces or grid lines look too narrow then you can change the width in Settings (tap Menu to see the Settings option)
  • Long-pressing most of the control buttons will set the corresponding setting to a default value eg. long-pressing the horizontal position button will reset the horizontal position back to zero. Long-pressing the trigger level button will set the trigger level to the centre of the waveform.
  • Long-pressing any of the +/- buttons will continuously change the corresponding value. The longer you press it the faster the value will change.
  • Tapping/dragging anything on the grid won't work! That functionality is yet to be implemented. For now you need to use the control buttons.

Quirks

  • If the screen turns off or the app is no longer in the foreground the run mode will change to STOPPED (to prevent draining the battery). You will need to tap RUN to restart the scope.
  • The OFF trigger mode prevents all triggering and Scoppy will set the horizonal position so that it is displaying the most recent samples (it normally tries to find a trigger point near the centre of the sample record). This may or may not be useful for viewing very slowly changing signals.

Troubleshooting

  • If the Pico doesn't seem to be connecting try the following:
    • tap STOP and then RUN
    • OR
    • unplug the USB cable and plug it back in
  • If your phone has a Micro-USB connecter then check that the Micro-USB plug of the OTG cable/adapter is plugged into the phone and not into the Pico.
  • If it's still not working then it's possible that your phone/tablet doesn't support USB OTG. You can test this by attaching a USB thumb drive to the OTG cable/adapter. You should be able to browse the files on the drive.

Missing Functionality

I'll look at adding the following if there is enough interest in the app:

  • Better touch interface eg. dragging the trigger indicator to change trigger level and swiping to change horizontal position.
  • More trigger settings eg. falling edge
  • Cursors

Specifications

  • Max. Sampling Rate: 500kS/s (shared between channels)
  • Time/Div: 5us - 20secs
  • Memory depth depends on sampling rate. It ranges between 2kpts (shared between channels) and 20kpts in Run mode and up to 100kpts for Single shot captures.

Known Bugs

  • When long-pressing the + or - buttons, moving your finger laterally will have the same effect as lifting your finger off the button. The only workaround is to keep your finger stready when long-pressing these buttons.

Advertising and in-app purchase

The free version of the app is one channel and a single banner ad may be displayed at the top of the screen (but no popups I promise!). To enable the 2nd channel and remove all advertising, a small in-app purchase is required. The one-channel version of the app is completely free and all functionality is available without restriction.

Gallery

Scoppy App Part way through a single capture.

Scoppy Development Scoppy under development. From left to right: Arduino Uno, AD9833 waveform generator and associated paraphenalia, Pico acting as debugger, Pico running an early version of the scoppy-pico firmware, the Scoppy app on a Nokia 2.1

More photos are here...

About

Turn your Rasperry Pi Pico and Android Phone into an Oscilloscope

Resources

Releases

No releases published

Packages

No packages published