Loading...
  Show Posts
Pages: 1 ... 13 14 [15] 16 17
211  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 23, 2009, 01:04:23 pm
Ok, i'm totally new with Xcode but i've successfully modified the sketch and java code to generate arduinsocope.jar running at 57600 baud. Now, the scope image works fine, no freezing at all smiley

The double channel views works for Prescaler of 128, 64 & 32 but stops working properly at Prescaler 16 (some green & yellow pulse glitches on both views plus yellow view has incorrect low level value having in mind I generate PWM signal).

If I select single channel with Prescaler 16 & 8, it works fine but gives incorrect views with Prescaler 4 or 2.

Thank you for everything.
212  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 22, 2009, 01:41:12 pm
Ok ALvaro, I've finally figured out why i could not run or find ant on my Macintosh.
Xcode developper Tools were in my Tiger DVD so I installed on my Mac.
Got many tools now and among them, ant works fine.
I just typed ant and building went succesfully with build.xml file you provided me after creating a lib directory containing RXTXcomm.jar file.

Only bad news, screen scope still freezes after a while smiley-sad I was hoping my Mac java compile version would have created a more stable jar code than the one you made via PC.
213  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 21, 2009, 06:27:33 am
Ok, I've tried with this new release but still after a while, screen freezes smiley-sad

I think to have found the problem which seems to appear on Mac but not in PC sinc eyou said it always worked on PC. When java scope scree freezes, i quit your arduino-scope.jar then relauch it & it works ok then after a while it freezes again. Looking at the structure of your arduino.pde, wether I launch or not lauch java scope, it just spools via loop() any activity coming from Mac or PC.

If you don't mind, could you send me a zip with a Mac oriented java builder script along with your java scope libraries.

Thank you
214  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 16, 2009, 10:26:38 pm
it says access denied smiley-sad
215  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 13, 2009, 06:03:52 am
Quote
It's also there, in the downloads section.
I've downloaded the all thing but cannot see any *.jar !
Can you provide direct link to it inside http://github.com/alvieboy/arduino-oscope
Thx
216  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 13, 2009, 12:06:45 am
Quote
Not sure, I'll ask him. I remember he had to switch to Java 32 bit, cause he's on a 64-bit platform.
I'm using Mac OS X version 10.4.11 on 1.8GHz powerPC G5 and also on a 2.0 GHz PowerPC G5. I don't understand or know how to swtich Java 32bit versus 64 bit smiley-sad

Quote
You can always get the latest version here: http://github.com/alvieboy/arduino-oscope
I'll try your new sketch (.pde and .h) but I cannot find your new arduino-oscope.jar !
What should i do to compile or build arduino-oscope.jar from your java files on my Macintosh ?
217  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 12, 2009, 02:53:21 pm
Quote
I had a friend testing this on a Mac, and he did not experience any freeze.
I'm using iMac G5 running with Mac OS Tiger, what is your friend Mac & OS ?

I'm using arduino version 15, what is your arduino version to compile then download ?

Quote
You tested again with my latest sketch, right ?
I believe so, tested the sketch you sent me by mail yesterday but to be sure, please send me again your last sketch.

BTW. Do you happen to have a java scope window providing time scale ?

Quote
Do you have any errors in "dmesg" about the ftdi driver ? I often have.
We did test together via skype chat yesterday, no error message at all.
218  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 12, 2009, 06:16:22 am
Hi Alvaro - The freezing happens with both mega or duamilanove boards. I'm glad to hear it is not related to Mac or Java but only arduino sketch because i really hope success with arduino scope for many of us wether PC, Linux, Mac,...

To answer your query and after many trials yesterday & this morning: it freezes after a while without intervention on my side and as I mentionned to you privately, there is no packet loss detected by software when I lauch Mac terminal shell. To lauch again the scope, I usually press one time, sometimes two times the dual channel button with my mouse so it works again then freezes after a while but the working duration is random (can be a few seconds, sometimes one minute).

Hope it helps
219  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 11, 2009, 10:43:35 pm
Right now, Alvaro's arduino scope dual channel scope works fine on both MEGA or DUAMILANOVE boards except for some reason, it freezes after a while which means no more scope display along with no more RX/TX between Mac and arduino board.

I would be interested to know if other Mac's users have similar issue on Mac OS 10.4 Tiger and arduino 15 version.

I've found a more easy install version of RXTX via this link
http://www.efianalytics.com/TunerStudio/mac/MacInstructions.html
taking care of RXTXcomm.jar & librxtxSerial.jnilib

For those interested in generating specific PWM frequency and duty cycle outside of standard arduino PWM libraries, i've used 16-bit timer on my mega board to generate both channels then connect both pin outputs via 10K resistor towards both analog inputs (0 and 1). I take this opportunity to fix a little error on my other threads found thanks to arduino scope:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252073278/15#28
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1257113480/0#9

On a side note with MEGA board, just use
Code:
PRR0 &= ~BIT(PRADC);
instead of using on DUAMILANOVE board
Code:
PRR &= ~BIT(PRADC);
which means Alvaro's scketch is universal on both boards.
220  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (Mac only) on: November 11, 2009, 04:08:32 am
Excellent news, i've "commented out" the line
Code:
PRR &= ~BIT(PRADC);
so compilation then loading on MEGA works now succesfully smiley-wink

Please confirm i'm using your last sketch version which I downloaded from http://github.com/alvieboy/arduino-oscope/

Same question about your last java version which I downloaded from http://www.alvarolopes.com/resources/oscope

Please instruct a simple self-generation or testing so I can see scope signal change on my screen.

Muito obrigado
221  Forum 2005-2010 (read only) / Exhibition / New oscilloscope for arduino (Mac only) on: November 11, 2009, 03:48:33 am
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 http://github.com/alvieboy/arduino-oscope/

Mac Scope display java software downloaded from http://www.alvarolopes.com/resources/oscope/

RXTX package downloaded from http://jlog.org/rxtx-mac.html

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
Code:
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:
Code:
arduino-oscope.jar
fixperm-217.sh
librxtxSerial.jnilib
RXTXcomm.jar

Opened a Mac terminal window then launched
Code:
$ cd Desktop     (or the folder where you downloaded the script)
$ sudo sh ./fixperm-217-leo.sh
Password: <your administrator password>

Then lauched
Code:
$ java -jar arduino-oscope.jar
which gave these results
Code:
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
Code:
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
Code:
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
Code:
New prescaler 5 (32)
New prescaler 7 (128)

Clicking "dual channel" seems to not work and gives this result on terminal shell
Code:
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
222  Forum 2005-2010 (read only) / Exhibition / Re: Perpetual Pendulum on: May 02, 2010, 04:05:20 am
Quote
You should look at the Bedini Motor. It claims free energy, but is an extremely efficient pulsed DC motor.
One of my friends has successfully implemented Bedini with arduino http://www.wilhoit-az.com/mark/free_energy/MAllen7424.php

I myself also use arduino for similar projects except with plasma aetheric reactors instead of a ferro-resonant aethric reactor http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1256402716
223  Forum 2005-2010 (read only) / Exhibition / Re: I am porting Arduino to atXmega128A1 on: March 15, 2010, 09:40:40 pm
Do you know if your porting will also work on a atXmega128a3 board http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1261282972
224  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (linux-only for now) on: November 23, 2009, 03:42:14 pm
How do you understand the sentence "Switching to Free Running mode (ADTS[2:0]=0) will not cause a trigger event, even if the ADC Interrupt Flag is set." on page 266 ?

Figure 23-7 on page 255 really shows only 13 cycles per conversion on Free running mode so Free running might not be related with auto-triggering since no trigger event will be generated !

This poses the question about your software on how it really handles trigger.

I might be wrong but just trying to understand the spec of Free running mode smiley-sad
225  Forum 2005-2010 (read only) / Exhibition / Re: New oscilloscope for arduino (linux-only for now) on: November 23, 2009, 01:58:00 pm
Quote
Max sampling speed is maximum ADC sampling speed in Free Running Mode - which is 13 ADC clock cycles + 1 for the self-trigger. If you use the max. prescaler (128) you get an ADC clock speed of 125KHz. This makes about 9Ksamples/second. Doubles whenever you divide the prescaler by two (meaning a prescaler of 64 will give you almost 18ksamples/s). See page 254 of ATMEGA datasheet for more details.
Are you sure Free Running mode uses 13+1=14 cycles because diagram on page 255 shows 13 cycles !
Why is there one cycle lost by self-triggering on Free Running mode ?
Pages: 1 ... 13 14 [15] 16 17