Re: miniscope v3

Hacking multi-tool. Get one for $30, including worldwide shipping.

miniscope v3

Postby siklosi » Sat Oct 16, 2010 7:35 am

I saw miniscope v3 on the net and contacted Tomasz Ostrowski asking about Bus Pirate support... Since he does not have Bus Pirate I gave him access to my computer with Bus Pirate attached to it... He made dll for BusPirate... and it's available for download alongside of miniscope at:

http://tomeko.net/miniscope_v3/index.php 

For now it only has only  manual trigger. Features that can be added are: rising/falling edge trigger, "continuos trigger" (continuous streaming), variable sampling rate (Bus Pirate has single sampling frequency but library could simulate lower sampling frequencies by data decimation)
siklosi
Newbie
Newbie
 
Posts: 22
Joined: Tue Aug 17, 2010 3:10 am
Location: Kragujevac, Serbia

Re: miniscope v3

Postby ian » Sat Oct 16, 2010 8:13 am

Fantastic, thanks! I'll post this up.
Got a question? Please ask in the forum for the fastest answers.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: miniscope v3

Postby Tomasz Ostrowski » Fri Oct 22, 2010 3:40 pm

I've updated library with slope trigger and continuous sampling mode. I think data decimation would not interest anyone (buffer capacity is not a problem as it is software defined and zooming in/out is a part of a GUI). Most interesting function would be recording samples stream to binary file for further browsing - samples are divided into blocks, but multiple blocks can be selected for viewing at once (working with 1M samples should be no problem for less than 8 years old PC with OpenGL supporting graphics card).

Just for convenience I've put together minimal (binaries only) package: http://tomeko.net/bin/miniscope_v3/miniscope_v3_bp.7z, use 7-zip (http://www.7-zip.org/) to unpack it. Edit device/bus_pirate.cfg file to change COM port number if needed and it's ready to run.

Thanks to Siklosi for testing, any problem reports or usability confirmations would be welcome.
Tomasz Ostrowski
Newbie
Newbie
 
Posts: 1
Joined: Fri Oct 22, 2010 1:58 pm

Re: miniscope v3

Postby ian » Sat Oct 23, 2010 3:22 am

Thanks Tomasz,

This is a really neat app, nice work! I started a wiki page for notes about the Bus Pirate and miniscope use. I added basic setup info and a screenshot:
http://dangerousprototypes.com/docs/Bus ... niscope_v3
Got a question? Please ask in the forum for the fastest answers.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: miniscope v3

Postby Windrider » Sun Oct 24, 2010 2:52 am

I'm a  newbie with the Bus Pirate. Today I ran the self-test and Voltmeter (D), both working fine. Tried Miniscope V3 for the Bus Pirate. It doesn't plot, nothing at all. Miniscope appears to be communicating with the Bus Pirate, as the log shows it receives some start-up bytes. Assumed I connect power to measure to the ADC pin and ground pin, is this correct? Miniscope app doesn't close when I try to exit, instead it becomes unresponsive. What should I try next?
Windrider
Newbie
Newbie
 
Posts: 3
Joined: Sun Oct 24, 2010 1:23 am

Re: miniscope v3

Postby Sjaak » Sun Oct 24, 2010 3:10 am

Which version of buspirate you are running? You can check this with the 'i' command.

Make sure you are running (at least) version 5.8. If you need to upgrade the procedure is described in the wiki:

http://dangerousprototypes.com/docs/Ds30_Loader_GUI

This describes the procedure when upgrade v4+ firmwares, if you have an older upgrade the bootloaders first: http://dangerousprototypes.com/docs/V2_to_v4_upgrades
For my projects and failures see my blog: http://SMDprutser.nl/
User avatar
Sjaak
Fellow
Fellow
 
Posts: 3291
Joined: Sun Jan 03, 2010 2:45 pm
Location: Hiero

Re: miniscope v3

Postby Windrider » Sun Oct 24, 2010 4:49 pm

Sjaak, Much appreciate your reply. Although I bought my Bus Pirate in July from SEEDStudio, it has V4.2 firmware. I tried to upgrade to V5.8 firmware, but something happened to corrupt the bootloader, so no luck. I'm not sure how to reload the current bootloader. The instructions to reload the bootloader are confusing for me, as the pages I found are obsolete and out of date. I need to reload the newest version of the bootloader. I realize that I may have only ONE chance to do this  via USB, if this is even possible.... please advise!

(Maybe I caused the bootloader corruption- at first I used the original ds30 Loader without the settings.xml etc files to attempt the firmware update as the link to this app is on the Bus Pirate firmware page. I didn't see that there is a special version of ds30 made just for the Bus Pirate, included with the Bus Pirate firmware!)

Otherwise, my Bus Pirate is still working ok, it passes the self test, etc.

-Ken
Windrider
Newbie
Newbie
 
Posts: 3
Joined: Sun Oct 24, 2010 1:23 am

Re: miniscope v3

Postby Sjaak » Sun Oct 24, 2010 5:22 pm

I'm sorry for the old firmware, but upgrading is fairly simple (and safe) as long as you follow the instruction precisely. I don't think you broke the bootloader, since the buspirate still functions (if the bootloader was damaged, you won't)

you need the windows pq24 instead of the ds30 loader to load the bootloader installer. the proces is described here: http://dangerousprototypes.com/docs/V2_to_v4_upgrades

After upgrading to the new bootloader you can flash v5.8.
For my projects and failures see my blog: http://SMDprutser.nl/
User avatar
Sjaak
Fellow
Fellow
 
Posts: 3291
Joined: Sun Jan 03, 2010 2:45 pm
Location: Hiero

Re: miniscope v3

Postby Windrider » Sun Oct 24, 2010 9:08 pm

Sjaak,

Dangerous indeed, for newbees! Actually, the bootloader is fine and apparently up-to-date V4.2. My problem was that the Windows firmware GUI upgrader just couldn't find the bootloader. So, I set-up and tried the Pirate-Loader console program http://dangerousprototypes.com/docs/Pirate-Loader_console_upgrade_application_%28Linux,_Mac,_Windows%29 which worked flawlessly to upgrade this BusPirate from V4.2 to V5.8.

Miniscope V3 is now working for me with this minor quirk, that the app doesn't close until the BusPirate is disconnected.

Thanks for this cool BusPirate app.
Windrider
Newbie
Newbie
 
Posts: 3
Joined: Sun Oct 24, 2010 1:23 am

Re: miniscope v3

Postby ian » Mon Oct 25, 2010 1:00 am

Hi Windrider - glad you got it, thanks for the update. The v4.+ bootloader is super resilient, it's pretty hard to hurt it.
Got a question? Please ask in the forum for the fastest answers.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: miniscope v3

Postby int0x13 » Mon May 09, 2011 9:33 am

Hi there, i'm trying to understand miniscope using with buspirate but it's kinda hard because of the lack of documentation about miniscope and how to configure it and how to plug the pins of the BP with the electrical object we want to probe. Anyway, i have a question about a picture in the wiki page here:
http://dangerousprototypes.com/docs/Bus_Pirate:_miniscope_v3
I'm wondering how and where did you probe to get a perfect sinusoidal signal like that:
Image
It is alternate current, isn't it?
Keep up the good work for BP and Miniscope
Regards
int0x13
Newbie
Newbie
 
Posts: 17
Joined: Thu Apr 28, 2011 10:48 am

Re: Re: miniscope v3

Postby ian » Mon May 09, 2011 12:27 pm

Hi int0x13,

The documentation was donated by the author of Miniscope, I'd guess this is an example from other hardware.

Miniscope should measure through the ADC probe pin.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: Re: miniscope v3

Postby int0x13 » Wed Nov 23, 2011 10:46 am

would it be possible to have more than one input into the scope? (i'm not sure it's hardware or software restriction as it's using internally the same command that the d/D command,not sure).
int0x13
Newbie
Newbie
 
Posts: 17
Joined: Thu Apr 28, 2011 10:48 am

Re: Re: miniscope v3

Postby ian » Fri Nov 25, 2011 2:41 am

Hi int0x13,

I'm not sure about software support, but the current Bus Pirate firmware only has one ADC probe (measured with the d/D command). Vpu also has an ADC on it, though it is not intended for that purpose :) It could be added if firmware and software support came together.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am


Return to Bus Pirate Support