For previous history & correspondance, please see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1256923269
Macintosh running with OS 10.4 (Tiger) and arduino-15 version.
Sketch downloaded from GitHub - alvieboy/arduino-oscope: A simple yet useful oscilloscope for arduino duemilanove
Mac Scope display java software downloaded from http://www.alvarolopes.com/resources/oscope/
RXTX package downloaded from RXTX for Mac OS X
ARDUINO SIDE
Two arduino boards have been tested.
Duamilanove with Atmega328: sketch compiles then dowloads correctly
Mega: sketch does not compiles due to following error
In function 'void setup_adc()':
PRR &= ~BIT(PRADC); /* Disable ADC power reduction */
error: 'PRR' was not declared in this scope
MAC SIDE
Created a folder on desktop containing:
arduino-oscope.jar
fixperm-217.sh
librxtxSerial.jnilib
RXTXcomm.jar
Opened a Mac terminal window then launched
$ cd Desktop (or the folder where you downloaded the script)
$ sudo sh ./fixperm-217-leo.sh
Password: <your administrator password>
Then lauched $ java -jar arduino-oscope.jar
which gave these results
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
found /dev/tty.modem
found /dev/cu.modem
found /dev/tty.usbserial-A9007U6Z
found /dev/cu.usbserial-A9007U6Z
found /dev/tty.Nokia6131-NokiaPCSui-1
found /dev/cu.Nokia6131-NokiaPCSui-1
found /dev/tty.Nokia6131-Dial-upnetwor-2
found /dev/cu.Nokia6131-Dial-upnetwor-2
found /dev/tty.Bluetooth-PDA-Sync
found /dev/cu.Bluetooth-PDA-Sync
found /dev/tty.Bluetooth-Modem
found /dev/cu.Bluetooth-Modem
found /dev/tty.Nokia6131-NokiaPCSuite-1
found /dev/cu.Nokia6131-NokiaPCSuite-1
The Arduino Oscope was succesfully launched then selection of /dev/tty.usbserial-A9007U6Z giving this result on terminal shell
Select
RXTX Warning: Removing stale lock file. /var/lock/LK.001.009.016
Port /dev/tty.usbserial-A9007U6Z open successfully
Pinging device
Moving a bit "trigger level" with mouse gives this result on terminal shell
New trigger 0
New trigger 2
New trigger 3
New trigger 5
New trigger 6
New trigger 8
New trigger 9
New trigger 11
New trigger 11
New trigger 11
New trigger 9
New trigger 6
New trigger 5
New trigger 3
New trigger 0
New trigger 0
Moving "holdoff samples" with mouse does not display anything on terminal shell.
Moving "prescaler" with mouse gives this result on terminal shell
New prescaler 5 (32)
New prescaler 7 (128)
Clicking "dual channel" seems to not work and gives this result on terminal shell
Num samples: 962
Invalid packet 135 in state PING, expecting 227
P.S. Double-clicking on "arduino-oscope.jar" icon lauches scope without need to lauch terminal.
Directly connecting 5V pin from duamilanove to Analog pin0 does not show any change on display so I'm not sure scope is working or if I've missed some set up on my Mac.
I wanted to insert Capture Screen Shot (JPEG) on this post but does not know how to do it ?
Thank you in advance