Pages: [1]   Go Down
Author Topic: Java GUI compatible with arduino MEGA and arduino DUE  (Read 1072 times)
0 Members and 1 Guest are viewing this topic.
France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 266
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please find a new release of the sketch and javas as requested 6 months ago in this github thread https://github.com/arduino/Arduino/pull/1267 where now the java GUI offers much more sliders, checkboxes as well as LOG console directly communicating with arduino MEGA or DUE being the client
http://www.tantratron.tk/Arduino-Java-SerPro/GUI_MEGA_DUE_v2.05.zip

ElectroShaman v2.0.5
   
A communication tool between a host (Windows/Mac/Linux) and Arduino (as client),
to have life update of operational parameters from host to control Arduino behaviour.
ElectroShaman is primary focused on updating pin status, PWM configurations, digital potentiometers, ...
ElectroShaman consists of 2 parts:
   - GUI on the host (written in Java)
   - interface embedded within Arduino sketch
   
Copyright (C) 2010-2013
   Dan Combine (protocol & GUI enhancements)
   Selfonlypath (ElectroShaman foundations)
   Alvaro Lopes (SerPro protocol)
   www.tantratron.tk
   
for Windows/Mac/Linux
Open Source software

runs on Arduino MEGA and Arduino DUE
is used to control ZPE boards
requires ElectroShaman v2.0.5 on Win/MAC to manage operational parameters
Logged

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

Please find the GitHub open source version https://github.com/selfonlypath/Arduino-ElectroShaman
Logged

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

Please find detailed video instructions on how to modify the arduino sketch to Java control a full H-bridge driver

Runs on Arduino MEGA, requires ElectroShaman v2.0.5 on Win/MAC to manage operational parameters

Full H-bridge driver, the PWM rails are generated by timer4, frequency and duty cycle controled by ElectroShaman GUI
        
Almost fully compatible on Arduino DUE requiring only to change timer4 initialization and ISR4 (Interrupt routine).
« Last Edit: September 05, 2013, 03:58:59 am by selfonlypath » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Albert,

Many people have read your post, but I believe they do not understand yet the true power of this GUI.

For the sake of clarity to everyone:
- there is a part which runs on Windows or Mac - this part is called the GUI
- there is part which runs on the Arduino (Mega, DUE, ...) - and is part of the sketch
- between the GUI and the sketch, there is USB communication (the standard one used by Arduino), and a proper protocol for exchanging data

In the Arduino sketch, you define what parameters you would like to use in teh GUI:
   - there are 12 sliders on which you can set the min, max and default values
   - in addition there are 6 checkbox controls
   - lastly there is a console text section
Once you start your GUI, you get a default screen.
Upon establishing the connection the Arduino (is just selecting the right serial port), the setup parameters are exchanged.
From then onwards, you can adjust all your desired Arduino parameters LIVE from your GUI!

As an example, you can life-update the PWM frequency, or duty-cycle of any timer (you just program in the sketch what you want to get).
Same with the 6 checkbox. This acts like an on/off switch, where you can command just anything to your Arduino.
The console section, is to receive text messages from your Arduino, as you have programmed it in your sketch.
Suppose you have a system programmed with a PLL, you could send a message to the GUI telling the "PLL is locked".
Use your imagination!!

It's a very flexible thing.
In stead of juggling around with adjusting the parameters in your sketch, reprogram and reload, you just do it live from the GUI.
It's all Open Source for use.

-Dan

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


just another note:

see also this tread, which takls about the porting the Mega timers to the DUE:
http://forum.arduino.cc/index.php?topic=186389.0

-Dan
Logged

Pages: [1]   Go Up
Jump to: