Loading...
Pages: 1 [2]   Go Down
Author Topic: New oscope - new UI, new features  (Read 852 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 126
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you wish to take a peek at the code (development), I uploaded it to github:

Arduino sketch + GTK+ UI:
http://github.com/alvieboy/arduino-oscope/tree/serpro

SerPro library:
http://github.com/alvieboy/arduino-serpro/tree/development

Álvaro
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 136
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank You !  

I can download from github, but still do not really know
how this works. e.g. How to download a single file ?

and another problem:
make: *** No rule to make target `digitalscope.h', needed by `display.o'.  Stop.
..alvieboy-arduino-oscope-d53a673/UI>

cheers wally
« Last Edit: March 07, 2010, 11:05:40 am by wally123 » Logged

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 254
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
As for buttons, somebody came up with a "multi-turn pot" for Processing that is pretty cool.  Useful for adjusting PID parameters tightly. It takes quite a few lines of Java code to implement them though.

http://www.openprocessing.org/visuals/?visualID=7905
Does someone knows how to convert this code into a java which could be then called from a higher level java UI running on my Macintosh which is compiled via Xcode ?

Thank you
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 126
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, I did not provide instructions on how to build it. I also switched to autotools for UI build, commited just a minute ago.

I'm still working on a nice build system. Until I have that figured out, do like this (linux):

Code:
mkdir oscope
cd oscope
git clone git://github.com/alvieboy/arduino-oscope.git -b serpro
git clone git://github.com/alvieboy/arduino-serpro.git -b development
cd arduino-oscope
for i in ../arduino-serpro/*.{cpp,h}; do ln -s $i; done
cd UI && ./configure && make

You will need gtk-2.0, cairo-xlib and optionally ffwt3 to build the UI.

Let me know if you run into trouble.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 126
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Does someone knows how to convert this code into a java which could be then called from a higher level java UI running on my Macintosh which is compiled via Xcode ?
Working on it. It can be built without processing, but I need to figure out some stuff first.  I'm now to update java version of oscope, and I'll use parts of that design (or as a whole, provided it works good without Processing).

Either that, or I need to port my app to processing, which is not probably hard at all.
Álvaro
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 126
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And a new screenshot, with two new features (requested by wally, who also has been kind enough to test the beast).



So there's a PWM generation function, with two outputs. PWM frequency uses timer1, and goes from 1Hz to 80KHz. It uses a non-linear (exponential) knob. PWM is generated using frequency and phase correct mode. The two outputs (OC1A and OC1B) have a min. resolution of 100 bits for PWM duty cycle. This duty cycle can be set from 0 to 100.

There's also a new "Screenshot.." button which will write a PNG file with current waveform. Files are named sequentially so not to overwrite previous screenshots.

Hope you all like it. I'd also love more people to use the Linux GTK UI. This before I move to updating Java one.

Álvaro
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 136
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

if there are problems with git, i use the following command
sequence for downloading and build.

Code:
mkdir oscope
cd oscope

git clone git://github.com/alvieboy/arduino-serpro.git
git clone git://github.com/alvieboy/arduino-oscope.git

cd ./arduino-serpro
git pull origin development

cd ../arduino-oscope
git pull origin serpro

for i in ../arduino-serpro/*.{cpp,h}; do ln -s $i; done
cd UI && ./configure && make

cd ../..

ln -s ./arduino-oscope/oscope.pde
ln -s ./arduino-oscope/protocol.h
ln -s ./arduino-oscope/SerPro.h
ln -s ./arduino-serpro/SerProHDLC.h
ln -s ./arduino-serpro/preprocessor_table.h
ln -s ./arduino-serpro/crc16.cpp
ln -s ./arduino-serpro/crc16.h
ln -s ./arduino-serpro/Packet.h
ln -s ./arduino-serpro/SerProCommon.h
Now you can open /oscope/oscope.pde with Arduino IDE
and upload to Arduino Duemilanowe or Arduino Mega.

Connect using a 10K resistor
on Arduino Duemilanowe:
Pin   9 -->  10k --> a0
pin 10 -->  10k --> a1

on Arduino Mega:
Pin 11 -->  10k --> a0
pin 12 -->  10k --> a1

start scoping:
./arduino-oscope/UI/oscope /dev/ttyUSB0
« Last Edit: March 17, 2010, 02:21:32 am by wally123 » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A little feedback.
I've successfully built the application on a Fedora Core 12.
Only thing I had to do is to edit Makefile.in which explicitly reference g++-4.3, I've removed the "-4.3" part to make it work.

I've connected a 433Mhz RF receiver to the A0 pin of my duemilanove to visualize the signal of an RF remote. I can see the signal clearly, though trigger and hold doesn't seems to work on this version.
I've used a previous java version on Windows and I could get the trigger to work even though the data acquisition was not really stable, sometimes it was freezing.

An idea that I would like to see implemented is a recording function.
In a first time it could just be a dump of the data in a WAV file so it would be easy to display/edit the data with other software.

Anyway, it's a very interesting project.
Big thanks for your work.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've successfully built too the application on a Ubuntu 9.10.
I've removed the "-4.3" in Makefile.in and works very fine
Thanks
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

works well on Sidux (debian sid) ;D
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: