Showing posts with label buspirate. Show all posts
Showing posts with label buspirate. Show all posts

Saturday, 18 September 2010

BusPirate oscilloscope python script

Some time ago I wrote a simple oscilloscope script for Bus Pirate.
Pygame and pyBusPirateLite libraries are needed to run it. Unfortunately the BusPirate firmware sends data collected by ADC very slowly so it's working rather as a live-plot than a real oscilloscope but even though it may be useful.


v 1.0

v 1.2



Usage:
edit this line in oscope.py so it points to BusPirate
BUS_PIRATE_DEV = "/dev/ttyUSB0"
Connect ADC and GND lines.
Run and have fun :)

Download here:
oscope.py

>>EDIT<<
New version: oscope_v1.2.py
Working only with modified firmware (ADC modification 20.09.2010):
BPv3-Firmware-v5.8-adc.hex.zip
New features:
- trigger on rising/falling slope
- time scaling