Show Posts
Pages: [1] 2 3 ... 18
1  Using Arduino / Project Guidance / Re: Can Arduino output 20kHz PWM with varying duty cycle? on: September 08, 2013, 12:16:08 pm
Quote
Not directly I understand what your saying, the timers have the required resolution so as not to introduce nasty harmonics due to stepping when the mod index is changed, the issue comes from execution times 32 bit uC are well adapted to do the advanced maths thats needed in minimum times many have dedicated FPU's to do this

Clock speeds are much faster so the hardware works much quicker, one day when I have spare time I do plan on trying to do SVM with an AVR it would be possible I am sure but its a definite challenge, at 17us per ADC conversion it will be open loop V/Hz control thats for sure

The question I have, is it possible to have 3 phase timer generation with arduino due ?

I mean here, not with interrupt but really with low level register set up to get very low jitter.

It seems not possible with arduino mega besides the fact we need more CPU to deal with computing the sensor values then update upon a specific control law the timers.

Quote
But the power rating of the machine thats controlled is irrelevant to the processor, its the hardware (inverter)that has to be man enough to run the machine surely thats a different discussion all together? or did I misunderstand??

Yes of course, all the projects we do have 3KV isolated or isolation barrier between the arduino TTL outputs and the power driver igbt and power diodes.  Maybe take a look on our open source eagle file http://www.tantratron.tk these special topologies are more performant than IR21834 because fully gate drive isolate, we're using for each igbt or mosfet an IL610, a RK-0515S and MCP1403

Quote
What modulation strategy did you use? what strategy would you like to use?

I'm considering to start with a classic 3 phases, so far i'm using a single frequency generator feeding a 3 phase demux built with 74HC's gate but would prefer arduin to generate the 3 PWM rails.

Albert

2  Using Arduino / Project Guidance / Re: Can Arduino output 20kHz PWM with varying duty cycle? on: September 08, 2013, 05:06:39 am
The issue is not really 8 bit uC or 32 bit uC when driving 3PH transformer or motor.

Take arduino mega, it is 8 bit uC but it does have few 16 bits timer being similar as independent uC specialized unit or virtual uC. So once you low level or assembly program one of these timers, you have 16 bits precision. In my own projects, got very good results using them on 2 phases power transformer and motor, I mean with few KVARs and KWs at frequency beyond 20 KHz.

The HUGE problem with 3 phase drivers and arduino mega: the 16 bits register command of the mega 2560 are not meant for this but they're really good for 2 phases.

I do have an arduino due, still not tried to look at its timers possibilities and see if I can go after 3 phase power electronic project.

Albert

3  Using Arduino / Project Guidance / Re: Can Arduino output 20kHz PWM with varying duty cycle? on: September 07, 2013, 03:35:22 am
If you need to have a 3-phases or 3 full H-bridge with 6 igbt's at such speed (20 KHz) along with digital PLL (Phase Locked Loop), I think not possible even with arduino mega.

I've been using mega to generate isolated TTL signals controlling full H-bridge, loose coupled flyback ringing at peaks of 800V and 10A at 20 KHz and more thanks to the 16-bit timers but it only works on 2 phases or 2 legs full H-bridge (4 igbt's), requires as suggested by dancombine to directly program the timer registers otherwise forget it.

Even if you forget about the control loop, PLL, it seems the arduino mega timer are not meant to generate 3 phases full H-bridge, maybe arduino due could do it !
4  General Category / General Discussion / Re: graphical interface help on: September 07, 2013, 03:26:13 am
How do you plan to communicate with your GUI and the arduino: USB ?
There are Java solution if you're interested.
Albert
5  Using Arduino / Programming Questions / Re: Java Application with Arduino on: September 07, 2013, 03:14:51 am
You might  want to try this open source GUI
http://forum.arduino.cc/index.php?topic=182442
https://github.com/selfonlypath/Arduino-ElectroShaman

The true power of this GUI:
- 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 8 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 8 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, instead of juggling around with adjusting the parameters in your sketch, reprogram and reload, you just do it live from the GUI.

Albert
6  Using Arduino / Programming Questions / Re: Arduino GUI on: September 07, 2013, 03:09:33 am
You might  want to try this open source GUI
http://forum.arduino.cc/index.php?topic=182442
https://github.com/selfonlypath/Arduino-ElectroShaman

The true power of this GUI:
- 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 8 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 8 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, instead of juggling around with adjusting the parameters in your sketch, reprogram and reload, you just do it live from the GUI.

Albert
7  Products / Arduino Due / Full H-bridge (mega = > due) controlled by ElectroShaman Java GUI on: September 05, 2013, 05:35:50 am
Please find detailed video instructions on how to modify the arduino sketch to Java control a full H-bridge driver



http://github.com/selfonlypath
http://github.com/selfonlypath/Full-H-bridge-arduino-mega
http://www.tantratron.tk

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

Almost fully compatible on Arduino DUE requiring only to change timer4 initialization and ISR4 (Interrupt routine).

If somebody would be willing to migrate these three parts of the code from MEGA to DUE where 99% of the code is already due compatible and USB java.

Thanks in advance, Albert

Code:
// select output pins & initialize timer4
  pinMode(outputPinH1H2, OUTPUT);
  pinMode(outputPinH3H4, OUTPUT);
  TCCR4A = B00111001; // Phase and Frequency correct at OCR5A
  TCCR4B = B10001;    // prescaling by 1 the system clock
  TIMSK4 = B1; // ISR management to detect OverFlow
  TIFR4 = B1;

Code:
// always use TCNT different than ZERO because of multiple TCNT's AVR bug not updating correctly if TCNT=0
  cli();
  TCNT4=1;
  OCR4A=LocalFreqPWM;
  OCR4B=LocalHbridge12;
  OCR4C=LocalHbridge34;
  sei();

Code:
ISR(TIMER4_OVF_vect)
{
  if(token == 1){
    OCR4A=LocalFreqPWM;
    OCR4B=LocalHbridge12;
    OCR4C=LocalHbridge34;
    token++;
  }
}
8  Products / Arduino Due / (Full H-bridge driver) Java GUI compatible with arduino MEGA and arduino DUE on: September 05, 2013, 03:42:24 am
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).
9  Products / Arduino Due / Re: Java GUI compatible with arduino MEGA and arduino DUE on: September 02, 2013, 01:20:39 am
Please find the GitHub open source version https://github.com/selfonlypath/Arduino-ElectroShaman
10  Products / Arduino Due / Java GUI compatible with arduino MEGA and arduino DUE on: August 12, 2013, 10:54:02 pm
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
11  Products / Arduino Due / Re: Garbage using serial functions in Arduino Due on: August 12, 2013, 10:51:36 pm
Following this github thread https://github.com/arduino/Arduino/pull/1267 please find a new release of the sketch and javas as requested 6 months ago 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
12  Using Arduino / Project Guidance / Re: Arduino reset upon serial Java connection on: August 02, 2013, 02:59:47 am
Hello moderators,

I suggest this topic be moved to improvments arduino http://forum.arduino.cc/index.php?board=21.0 because it has nothing to do with personal project !

This issue seems strong tabou for lot of people worldwide wether arduino or not arduino, the real issue being of RXTX java not being maintained, still open sourced and the DTR effect has been solved so far always using Quick & Very Dirty tricks which will create more and more confusion through time.

One suggestion would be that arduino community rewrite a specific RXTX where it will be parametered (DTR rise or not) so arduino IDE or whatever other Java GUI would software program the behaviour of DTR.

Just my 2 cents, Albert
13  Products / Arduino Due / Re: Garbage using serial functions in Arduino Due on: February 24, 2013, 06:47:02 am
All right, working much better now with new USB firmware https://github.com/arduino/Arduino/pull/1267#issuecomment-14058478
14  Products / Arduino Due / Re: Updating 16u2 USB firmware on: February 24, 2013, 06:46:09 am
All right, working much better now with new USB firmware https://github.com/arduino/Arduino/pull/1267#issuecomment-14058478
15  Products / Arduino Due / Re: IDE 1.5.2 released! on: February 18, 2013, 01:21:49 am
hm looks like I can't upload to mega 2560, is it just me?

I've tested both my mega 2560 rev 2 and rev 3, uploading works.

Now as posted before, mega 1280 does not upload because IDE can't find its USB port !
Pages: [1] 2 3 ... 18