PicBerry: Oscilloscope and Function Generator
By Russell Barnes. Posted
Cornell students use a Raspberry Pi to create Digital Oscilloscope and Function Generator.
PicBerry is a Digital Oscilloscope and Function Generator created by students at Cornell University.
Function Generators are used to create different types of electrical waveforms. They're incredibly handy when learning how to diagnose and test problems with electrical equipment.
The waveforms created by a function generator are observed using an oscilloscope.
Advitya Khanna, Jeff Witz and Danna Ma are researchers at Cornell University. They've used a Raspberry Pi to create a device that performs both tasks at once. This is ideal for learning how electrical waveforms work.
"We created an affordable Digital Oscilloscope and Function Generator that is able to plot and produce (at the same time) generated electric signals (voltage) changing over time along a calibrated scale," says the group.
See also: Cornell University: PicBerry
A PIC32 is used to create the waveform. It uses the DMA Channel to create a waveform without using any CPU cycles of the Raspberry Pi.
This leaves the Raspberry Pi free to monitor the waveform and produce a digital display and interface.
Building a PicBerry Oscilloscope
Accordingly, you control the frequency and amplitude of the waveform from the Raspberry Pi. This is then displayed back on the screen, and you can zoom in and out of the display.
"Our Digital Oscilloscope and Function Generator provides a simple, easy to use alternative,"the Cornell students explain. It "provides the functionality from both these devices for less than $50."
"Even better, you can carry our device with you in your backpack," they note. "So that you do not need to come into lab" to learn how waveforms work.
As a result of this low cost approach, you don't need much to build a PicBerry:
- PIC32
- Raspberry Pi
- DAC
- Potentiometer
"The Raspberry Pi is responsible for the plotting of data onto a desktop monitor," say the students. "The PIC32 is exploited for its real-time properties of being able to sample the ADC and generate analog functions (waveforms)."
If you want to make a PicBerry, you'll find diagrams and each component on the project website, along detailed descriptions of the components.
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Make your RAM go further – Raspberry Pi OS memory optimisation tips
In issue 164 of Raspberry Pi Official Magazine we have been playing around with the new Raspberry Pi 5 1GB RAM. While the RAM shortage caused by the demands of AI infrastructure is annoying beyond belief, this has been a great chance for us to really get to grips with RAM. Generating images in Stable […]
Read more →
Mighty Projects – 1GB Computer in Raspberry Pi Official Magazine 164
It’s normal for computers to get faster and more pwerful, but the new-ish Raspberry Pi 5 1GB is a step in the other direction: it has all the processing power and the same GPIO pins of its more costly siblings, but with only 1GB of RAM it’s at a price that’s friendlier on the wallet […]
Read more →
Win one of five 256GB Raspberry Pi Flash Drives
If you’ve been around long enough, you know that every Raspberry Pi accessory is top quality, and the latest Flash Drive is no different. Fancy a big one? We have five up for grabs, and you can enter below… Win 1 of 5 256GB Raspberry Pi Flash Drives
Read more →