Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline

scope

This is a simple Oscilloscope logger for the Raspberry Pi.

The main program RasPi_logGPIO.sh logs digital signals from the GPIO pins into a text file. By calling RasPi_normalizeGPIO.py, this file gets converted into a file readable for xoscope.

Before you can use it, you have to compile RasPi_logGPIO.cpp (on the Raspberry Pi or at least for ARMv6):

g++ -o RasPi_logGPIO RasPi_logGPIO.cpp

After that, you can call RasPi_logGPIO.sh with the GPIO pins as an argument (on the Raspberry Pi, as root):

./RasPi_logGPIO.sh 14 31 23 > logfile_14_31_23.txt

This will log the values of GPIO14, GPIO31 and GPIO23 as fast as possible into logfile_14_31_23.txt until you abort with Ctrl+C.

It's important to know that this program doesn't use a static sample rate and that you have to normalize it with the Python program to get usable data. You should do this on another computer, because the script needs relatively much RAM and CPU time:

./RasPi_normalizeGPIO.py logfile_14_31_23.txt > logfile_14_31_23.dat

Now, logfile_14_31_23.dat is an xoscope file. You can open it and recall the saved channels. In this example, GPIO14 will be in Memory A, GPIO31 in Memory B and GPIO23 in Memory C.

Examples

I used this program to log the sensor values of the Epson Model-620, a printer for a calculating machine.

The signals don't have a really big frequency, but I got pretty good results (revision 24dd853 with xoscope 2.0): Scale: 1x Scale: 2.5x

Morty Proxy This is a proxified and sanitized view of the page, visit original site.