EDIT: If I use Logic Sniffer under Windows, the detection of my Arduino Mego Logic Analyser works.
Is there something wrong in the OSX version?
I want to use Gillham's fantastic logic analyser sketch on an Arduino Nano v3 clone (with an ATMega328p inside).
In OSX 0.9.7.2 version of Logic Sniffer:
I choose "Arduino Mega Logic Analyser"
I click on "Show device metadata", without success.
=> I always receive a "Detection failed" error.
I tried some configuration changes, to parameters like portdelay, portdtr, but nothing helps.
Is this sketch working with such Arduino?
If yes, should I do something special to make it working?
I tried everything you've mentioned, but still cannot get it to work.
Greetings
Matthias
Hi gillham,
Thanks for the great software, I've used it several times on an Uno to help with project debug, it works great. I have a project where I need the bigger buffer of the Mega 2560. I'm having same issues as Matthias under 1.0.6. The board checks out ok with test serial sketches. I've tried commenting out #define DEBUG and commented out the '?' debug println's, still no luck.
I've been meaning to eval moving to 1.6, so I'll give that a try and report back.
Compiled logic_analyzer on Uno, tested on ols-0.9.7.2, works great.
Compiled logic_analyzer on Mega 2560, compiles with:
Sketch uses 150,674 bytes (59%) of program storage space. Maximum is 253,952 bytes.
Global variables use 7,812 bytes (95%) of dynamic memory, leaving 380 bytes for local variables. Maximum is 8,192 bytes.
Low memory available, stability problems may occur.
Works from Arduino serial monitor now, response to "1" and "2" commands. Looking good.
Now tested under ols-0.9.7.2, and......works!
But...timing might be off. For same signal I get 9mS pulse width on an Uno, and 8.822ms on Mega. Will keep testing.
Did some more testing. Using an ATMega328P Uno, recording the same test PPM generator (a Turnigy 9x ATMega128A running Er9x software, measuring PXX module output) I got the following results:
logic_analyzer.ino compiled under 1.0.6:
pulse frame start to pulse frame start = 10.03 mSec - 1.03 mSec = 9.00 mSec
logic_analyzer.ino compiled under 1.6.3:
pulse frame start to pulse frame start = 9.8 mSec - 0.91 mSec = 8.89 mSec
So slightly different results for the two builds, same host board and same test article but different Arduino revision.
And here is a screen cap of the same hardware generated pulse stream, using a Saleae Logic to capture the pulse stream, confirms a fairly precise 9.0 mS spacing.
I am also using it for capturing a signal, but when I start capturing on Logic Sniffer, It displays capture from generic I/O started but nothing happens afterward. Please help me?
Also there are no options for trigger or device or anything in client (mac version 9.7.2). I only see 4 fileds
set device path (I set this to /dev/cu.usbmodem1421 arduino usb path), I get to set
Sampling rate (I set this to 500K)
sample depth (this is set to default 256)
sample width (this is set to default 1)
Also I tried it on windows PC options are same but client show capture failed Data readout interrupted EOF
Please help me