12th Anniversary Sale 12% Off in July & August with the voucher code "SUMMER12" *excludes trade customers
Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Simple oscilloscope program

The ADC Pi is an Analogue to Digital converter for the Raspberry Pi

27/07/2015

Posted by:
McCannon01

McCannon01 Avatar

Location:
Rochester, NY USA

I wrote a python3 simple oscilloscope routine for the ADC Pi and Pi+. Runs well on Pi B+ and Pi 2 (don't know about others). I'd like to upload an image of the faceplate GUI, but don't know what to enter for the source when I click in the "Insert/Edit Image" icon. I also don't mind uploading the code for anyone who is interested. Although I've been writing code for manufactuing systems since 1972, this is my second Pi-linux-python-tkinter experiment. A few features:
1) Select the i2c addresses where the ADC board is located
2) Select SPS
3) Select ADC channel 1-8
4) Select continuous or single sweep
5) Set a threshold on the analog input level so the sweep changes from green to red over threshold
6) Select manual trigger for single sweep
7) Select 1 of 8 possible GPIO pins as a trigger
8) Select an input voltage level to act as trigger
9) Select x-axis time from 0.5 to 4.0 seconds

27/07/2015

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Thank you for sharing your oscilloscope project with us, it is always interesting to see what people are doing with our expansion boards.

We don't have the ability to store images on this forum so the best way to add an image to your post would be to upload it to Imgur, copy the direct link URL and then use the insert image button and paste the URL in the source box.

The best place to put the code would be on GitHub so people can easily download it and share any changes they make with you.

28/07/2015

Posted by:
McCannon01

McCannon01 Avatar

Location:
Rochester, NY USA

Thanks, Andrew. I never used the imgur.com site before and had to open an account on github.com.
An image of the face plate GUI is now on http://i.imgur.com/DtlCFgl.png
I created a repository on github called Simple_Scope_ABE and the code is in the file S_Scope_ABE.py
Have fun with it.

28/07/2015

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Thanks for posting the code. I have added links in below to the GitHub page so people can easily find it.

Simple Scope ABE

forum image

Sign in to post your reply


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.