EPG Testing sequential pulsar using the Arduino

Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #175, on August 31st, 2011, 04:49 PM »
Quote from txqNL on August 30th, 2011, 03:59 PM
Quote from Casper on August 30th, 2011, 03:34 PM
Hey, bear with me please... How can i get this code into my arduino mega?

Casper
The current setup is a few steps something like these;
- Get Arduino IDE working. (http://arduino.cc/en/Guide/Windows)
- Create "PulseFire" sketch. (with the capitals)
- Close Arduino ide
- Download PulseFire 0.9-fix from forum
- Unpack PulseFire and move/copy all the *.pde/*.h files into the directory
  where the PulseFire sketch is. (I think "My Documents\sketechbook\PulseFire")
- Start Arduino IDE, select sketch and compile/flash into Arduino.
- Possible tweak IO settings in "vars_define.h" and flash again.
- Download PulseFire-UI from forum
- Unpack PulseFire-UI and run pulsefire.exe or run.bat

The 0.9-fix download is in this post; http://open-source-energy.org/?tid=56&pid=910#pid910

Quote from Casper on August 30th, 2011, 12:38 PM
What do you think about making a separate thread for the pulsebox software? that way new releases will be gathered in a nice structured list.
Yeap is almost time for that :) I wanted to do that when arrived at 1.0 or when release plugin is configed so it will be automaticly uploaded to distributed release servers on http://download.savannah.gnu.org/releases/pulsefire/
Quote from Rwg42985 on August 30th, 2011, 04:54 AM
to make it work i got to check the color. then close out and open it back up and then it works. is that right?
Yes, for realtime changes need to add some event listeners to the settings to support that.
Thanks a bunch! :)

txqNL

RE: EPG Testing sequential pulsar using the Arduino
« Reply #176, on September 13th, 2011, 03:53 AM »
Small status update have been hacking at the code to convert it to plain C code files for portability and freeing some memory for new stuff.
It builds now and have serial working again without arduino libary now moving code around to have all (avr) chip functions in one file.

Have been reading the datasheets for the Arduino MEGA board/chip and now have a feeling how to move the extended function to the extra pins on the mega.
Also some later release want to add the hardware pwms in pulsefire as option.

In the UI have added very simple audio scope function for 2 channels, want to try to make it work with 4 audio cards so I can scope 8 outputs at once to see if it is correct. (warning more earth-ground problems here)
Also have been trying to create a java based flash tool for Arduino so in ui zip file I can add some prebuild flash images so chip can be simple flashed/updated with one click.
But that didn't want to work yet.

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #177, on September 13th, 2011, 07:23 AM »
Quote from txqNL on September 13th, 2011, 03:53 AM
Small status update have been hacking at the code to convert it to plain C code files for portability and freeing some memory for new stuff.
It builds now and have serial working again without arduino libary now moving code around to have all (avr) chip functions in one file.

Have been reading the datasheets for the Arduino MEGA board/chip and now have a feeling how to move the extended function to the extra pins on the mega.
Also some later release want to add the hardware pwms in pulsefire as option.

In the UI have added very simple audio scope function for 2 channels, want to try to make it work with 4 audio cards so I can scope 8 outputs at once to see if it is correct. (warning more earth-ground problems here)
Also have been trying to create a java based flash tool for Arduino so in ui zip file I can add some prebuild flash images so chip can be simple flashed/updated with one click.
But that didn't want to work yet.
thanks for the update, hope all else it well!!!

~Russ

Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #178, on November 17th, 2011, 10:10 AM »
Hey yall :)

I have still not completed my sequential pulser, way to much work, to little time.
Anyways, i have an arduino mega and a 128x64-Graphic-LCD. I realize this kind of display isn't supported in the the released software (darn). I have the code to drive the lcd, but not the competence to embed it in the release. Would anyone be willing to help out with merging the graphic display driver code, and removing the old code for displays? Or should i just buy the same display ass u guys have used?

Best regards Casper

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #179, on November 17th, 2011, 03:12 PM »
Quote from Casper on November 17th, 2011, 10:10 AM
Hey yall :)

I have still not completed my sequential pulser, way to much work, to little time.
Anyways, i have an arduino mega and a 128x64-Graphic-LCD. I realize this kind of display isn't supported in the the released software (darn). I have the code to drive the lcd, but not the competence to embed it in the release. Would anyone be willing to help out with merging the graphic display driver code, and removing the old code for displays? Or should i just buy the same display ass u guys have used?

Best regards Casper
Hey Casper, good qustion, well see if txqNL is willing to try it!

If we can't get it I'll mail you a display, I have some from scraping out old stuff... :)  

Let see! ~Russ

txqNL

RE: EPG Testing sequential pulsar using the Arduino
« Reply #180, on November 19th, 2011, 07:57 AM »
Quote from Casper on November 17th, 2011, 10:10 AM
Hey yall :)

I have still not completed my sequential pulser, way to much work, to little time.
Anyways, i have an arduino mega and a 128x64-Graphic-LCD. I realize this kind of display isn't supported in the the released software (darn). I have the code to drive the lcd, but not the competence to embed it in the release. Would anyone be willing to help out with merging the graphic display driver code, and removing the old code for displays? Or should i just buy the same display ass u guys have used?

Best regards Casper
Check some displays data sheets I think when it is based on a KS0108B or semi-compatible it should be no problem to add it to the pulsefire lcd code.
The only thing is that those displays need a few more pins to connect, so it can work on the mega only.
With how many pins is your display connected ?
If you can paste the code here, I can try to add it with some extra #ifdef code.

I'll will try to add it to the almost ready 1.0-Beta code which is refactored to plain C without use of Arduino libs/functions.
But currently it is lacking mega support for that I'll start with creating the port/pin map for the mega. (which will be complete different then current mapping for hardware pwm usage on mega)

Best regards, Willem


Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #181, on November 20th, 2011, 05:50 AM »
Quote from txqNL on November 19th, 2011, 07:57 AM
Quote from Casper on November 17th, 2011, 10:10 AM
Hey yall :)

I have still not completed my sequential pulser, way to much work, to little time.
Anyways, i have an arduino mega and a 128x64-Graphic-LCD. I realize this kind of display isn't supported in the the released software (darn). I have the code to drive the lcd, but not the competence to embed it in the release. Would anyone be willing to help out with merging the graphic display driver code, and removing the old code for displays? Or should i just buy the same display ass u guys have used?

Best regards Casper
Check some displays data sheets I think when it is based on a KS0108B or semi-compatible it should be no problem to add it to the pulsefire lcd code.
The only thing is that those displays need a few more pins to connect, so it can work on the mega only.
With how many pins is your display connected ?
If you can paste the code here, I can try to add it with some extra #ifdef code.

I'll will try to add it to the almost ready 1.0-Beta code which is refactored to plain C without use of Arduino libs/functions.
But currently it is lacking mega support for that I'll start with creating the port/pin map for the mega. (which will be complete different then current mapping for hardware pwm usage on mega)

Best regards, Willem


As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.
[attachment=516]

Best regards, Casper

txqNL

RE: EPG Testing sequential pulsar using the Arduino
« Reply #182, on November 21st, 2011, 11:59 AM »Last edited on November 21st, 2011, 12:01 PM by txqNL
Quote from Casper on November 20th, 2011, 05:50 AM
As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.

Best regards, Casper
Wow thats a large library for a display that will take some time to understand, but I see defines for CS0-2 lines for KS0108B like displays but there are not on your pin diagram how do you connect it ? Which display/controller is it exactly ?
Have been looking around for simpler library and I think if you can make it work with this (url-removed) library I can try to port it.
Edit: forum does not like url; http :// en . radzio . dxp . pl / ks0108/


But have to say that using a regular lcd will get you faster up and running as the glcd will be in the experimental mega support in v1.
The port to mega has just become a bit more complicated for example I just found out that on mega I need to use timer5 instead of timer1 because the external clock pin of timer1 is not connected on mega board.


Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #183, on November 21st, 2011, 04:38 PM »
Quote from txqNL on November 21st, 2011, 11:59 AM
Quote from Casper on November 20th, 2011, 05:50 AM
As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.

Best regards, Casper
Wow thats a large library for a display that will take some time to understand, but I see defines for CS0-2 lines for KS0108B like displays but there are not on your pin diagram how do you connect it ? Which display/controller is it exactly ?
Have been looking around for simpler library and I think if you can make it work with this (url-removed) library I can try to port it.
Edit: forum does not like url; http :// en . radzio . dxp . pl / ks0108/


But have to say that using a regular lcd will get you faster up and running as the glcd will be in the experimental mega support in v1.
The port to mega has just become a bit more complicated for example I just found out that on mega I need to use timer5 instead of timer1 because the external clock pin of timer1 is not connected on mega board.
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"

I have some more documentation on the display if you want it:
This link will provide all the software and code related to the display, the driver code can be found under the "Project 8" folder.

If it's to much trouble, don't bother doing the porting. Maby Russ will be willing to donate a display in exchange for a donation to his projects. Looking forward for your reply, peace.




~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #184, on November 21st, 2011, 11:19 PM »
Quote from Casper on November 21st, 2011, 04:38 PM
Quote from txqNL on November 21st, 2011, 11:59 AM
Quote from Casper on November 20th, 2011, 05:50 AM
As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.

Best regards, Casper
Wow thats a large library for a display that will take some time to understand, but I see defines for CS0-2 lines for KS0108B like displays but there are not on your pin diagram how do you connect it ? Which display/controller is it exactly ?
Have been looking around for simpler library and I think if you can make it work with this (url-removed) library I can try to port it.
Edit: forum does not like url; http :// en . radzio . dxp . pl / ks0108/


But have to say that using a regular lcd will get you faster up and running as the glcd will be in the experimental mega support in v1.
The port to mega has just become a bit more complicated for example I just found out that on mega I need to use timer5 instead of timer1 because the external clock pin of timer1 is not connected on mega board.
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"

I have some more documentation on the display if you want it:
This link will provide all the software and code related to the display, the driver code can be found under the "Project 8" folder.

If it's to much trouble, don't bother doing the porting. Maby Russ will be willing to donate a display in exchange for a donation to his projects. Looking forward for your reply, peace.
yes, i have some I'm willing to pass along. i have salvaged them from old stuff. i have maybe 4 or so. i also have some big "panel" display's and everything is always 20 Pin...

you pay shipping and ill get it to you!  you in the us of A ?

No Prob! give and be given! its how the new world works!

Blessings!

~Russ

Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #185, on November 22nd, 2011, 03:14 PM »
Quote from ~Russ/Rwg42985 on November 21st, 2011, 11:19 PM
Quote from Casper on November 21st, 2011, 04:38 PM
Quote from txqNL on November 21st, 2011, 11:59 AM
Quote from Casper on November 20th, 2011, 05:50 AM
As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.

Best regards, Casper
Wow thats a large library for a display that will take some time to understand, but I see defines for CS0-2 lines for KS0108B like displays but there are not on your pin diagram how do you connect it ? Which display/controller is it exactly ?
Have been looking around for simpler library and I think if you can make it work with this (url-removed) library I can try to port it.
Edit: forum does not like url; http :// en . radzio . dxp . pl / ks0108/


But have to say that using a regular lcd will get you faster up and running as the glcd will be in the experimental mega support in v1.
The port to mega has just become a bit more complicated for example I just found out that on mega I need to use timer5 instead of timer1 because the external clock pin of timer1 is not connected on mega board.
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"

I have some more documentation on the display if you want it:
This link will provide all the software and code related to the display, the driver code can be found under the "Project 8" folder.

If it's to much trouble, don't bother doing the porting. Maby Russ will be willing to donate a display in exchange for a donation to his projects. Looking forward for your reply, peace.
yes, i have some I'm willing to pass along. i have salvaged them from old stuff. i have maybe 4 or so. i also have some big "panel" display's and everything is always 20 Pin...

you pay shipping and ill get it to you!  you in the us of A ?

No Prob! give and be given! its how the new world works!

Blessings!

~Russ
Of course i'll pay shipping, i'm actually half way around the world, in Norway.

We'll see what txqNL says about the added documentation before we do anything rash... A bitmap display would open possibilites for graphical rendering of active outputs (if the animations were on a toroidial model -it would look really awesome :cool:)

I am still waiting on my aluminium toroid halfes from Australia, and i havent found a good suplier of bismuth yet (thinkin about going to a shotgun-shell maker and see if they have any for sale)

Do any of you have an idea of where to get pure bismuth at a reasonable price?

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #186, on November 22nd, 2011, 10:18 PM »
Quote from Casper on November 22nd, 2011, 03:14 PM
Quote from ~Russ/Rwg42985 on November 21st, 2011, 11:19 PM
Quote from Casper on November 21st, 2011, 04:38 PM
Quote from txqNL on November 21st, 2011, 11:59 AM
Quote from Casper on November 20th, 2011, 05:50 AM
As you can see, the display has 20 pins.
I attached the code library so it will be easier too add.

Best regards, Casper
Wow thats a large library for a display that will take some time to understand, but I see defines for CS0-2 lines for KS0108B like displays but there are not on your pin diagram how do you connect it ? Which display/controller is it exactly ?
Have been looking around for simpler library and I think if you can make it work with this (url-removed) library I can try to port it.
Edit: forum does not like url; http :// en . radzio . dxp . pl / ks0108/


But have to say that using a regular lcd will get you faster up and running as the glcd will be in the experimental mega support in v1.
The port to mega has just become a bit more complicated for example I just found out that on mega I need to use timer5 instead of timer1 because the external clock pin of timer1 is not connected on mega board.
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"

I have some more documentation on the display if you want it:
This link will provide all the software and code related to the display, the driver code can be found under the "Project 8" folder.

If it's to much trouble, don't bother doing the porting. Maby Russ will be willing to donate a display in exchange for a donation to his projects. Looking forward for your reply, peace.
yes, i have some I'm willing to pass along. i have salvaged them from old stuff. i have maybe 4 or so. i also have some big "panel" display's and everything is always 20 Pin...

you pay shipping and ill get it to you!  you in the us of A ?

No Prob! give and be given! its how the new world works!

Blessings!

~Russ
Of course i'll pay shipping, i'm actually half way around the world, in Norway.

We'll see what txqNL says about the added documentation before we do anything rash... A bitmap display would open possibilites for graphical rendering of active outputs (if the animations were on a toroidial model -it would look really awesome :cool:)

I am still waiting on my aluminium toroid halfes from Australia, and i havent found a good suplier of bismuth yet (thinkin about going to a shotgun-shell maker and see if they have any for sale)

Do any of you have an idea of where to get pure bismuth at a reasonable price?
wow! well! to ship to you may bot be a good idea, you will have 50X the cost thank just buying one there :)

but that's up to you! and the cheapest shipping had no tracking... :(

any on that metal check here:

 http://www.rotometals.com/product-p/BISMUTH.htm

but i don't know if they ship world wide.

thanks! ~Russ

txqNL

RE: EPG Testing sequential pulsar using the Arduino
« Reply #187, on November 24th, 2011, 05:33 PM »Last edited on November 24th, 2011, 06:32 PM by txqNL
Quote from Casper on November 21st, 2011, 04:38 PM
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"

I have some more documentation on the display if you want it:
This link will provide all the software and code related to the display, the driver code can be found under the "Project 8" folder.

If it's to much trouble, don't bother doing the porting. Maby Russ will be willing to donate a display in exchange for a donation to his projects. Looking forward for your reply, peace.
Thanks now i understand, have created the mega pin mapping and wrote some experimental text only glcd code for ks0108 displays when it fully works it gives a 9x25 text display.

Here is what the mega pin layout looks like;
Code: [Select]

// PIN MAPPING FOR MEGA CONNECTION MODE
#define IO_MEGA_SERIAL_PORT      &PORTE
#define IO_MEGA_RX_PIN               0  // PIN 0 = Rx/Tx for serial is wired internally to USB
#define IO_MEGA_TX_PIN               1  // PIN 1

#define IO_MEGA_PIN_TRIG_PORT    &PORTD
#define IO_MEGA_PIN19_PIN            2  // PIN 19 = INT2  (def) off
#define IO_MEGA_PIN18_PIN            3  // PIN 18 = INT3  (def) off
#define IO_MEGA_PIN_CLK_PORT     &PORTL
#define IO_MEGA_PIN49_PIN            0  // PIN 49 = (def) enter menu
#define IO_MEGA_PIN48_PIN            1  // PIN 48 = (def) enter menu
#define IO_MEGA_PIN47_PIN            2  // PIN 47 = T5 (def) External clock source for pwm

#define IO_MEGA_DIC_PORT         &PORTL
#define IO_MEGA_DIC_PORT_IN       &PINL
#define IO_MEGA_DIC_0_PIN            4  // PIN 45
#define IO_MEGA_DIC_1_PIN            5  // PIN 44
#define IO_MEGA_DIC_2_PIN            6  // PIN 43
#define IO_MEGA_DIC_3_PIN            7  // PIN 42

#define IO_MEGA_LCD_DATA_PORT    &PORTC // PIN37-36-35-34 = D0-D3 (if no lcd then DIC8-15) (if glcd then 8bit data)
#define IO_MEGA_LCD_CNTR_PORT    &PORTC //
#define IO_MEGA_LCD_RS_PIN           6  // PIN 31
#define IO_MEGA_LCD_E_PIN            7  // PIN 30

#define IO_MEGA_DOC_PORT         &PORTB
#define IO_MEGA_DOC_0_PIN            0  // PIN 53
#define IO_MEGA_DOC_1_PIN            1  // PIN 52
#define IO_MEGA_DOC_2_PIN            2  // PIN 51
#define IO_MEGA_DOC_3_PIN            3  // PIN 50

#define IO_MEGA_OUT_PORT         &PORTA
#define IO_MEGA_OUT_0_PIN            0  // PIN 22
#define IO_MEGA_OUT_1_PIN            1  // PIN 23
#define IO_MEGA_OUT_2_PIN            2  // PIN 24
#define IO_MEGA_OUT_3_PIN            3  // PIN 25
#define IO_MEGA_OUT_4_PIN            4  // PIN 26
#define IO_MEGA_OUT_5_PIN            5  // PIN 27
#define IO_MEGA_OUT_6_PIN            6  // PIN 28
#define IO_MEGA_OUT_7_PIN            7  // PIN 29
#define IO_MEGA_EXT_OUT_DATA_PIN     0  // PIN 22 = output 0-7 and 8-15 via 2 chip casade
#define IO_MEGA_EXT_OUT_CLK_PIN      1  // PIN 23
#define IO_MEGA_EXT_OUT_E_PIN        2  // PIN 24
#define IO_MEGA_EXT_S2P_DATA_PIN     5  // PIN 27 = lcd D0-D3,RS,E, doc8, doc16
#define IO_MEGA_EXT_S2P_CLK_PIN      6  // PIN 28
#define IO_MEGA_EXT_S2P_E_PIN        7  // PIN 29

#define IO_MEGA_ADCL_PORT        &PORTF // ANALOG 0-7
#define IO_MEGA_ADCH_PORT        &PORTK // ANALOG 8-15 (if GLCD then limited)

#define IO_MEGA_GLCD_PORT        &PORTK
#define IO_MEGA_GLCD_E_PIN           7  // ANALOG-15
#define IO_MEGA_GLCD_RS_PIN          6  // ANALOG-14
#define IO_MEGA_GLCD_CS0_PIN         5  // ANALOG-13
#define IO_MEGA_GLCD_CS1_PIN         4  // ANALOG-12


This is a untested mega build with GLCD enabled;
[attachment=521]
This is a hex file which can be flashed manually with avrdude like this;
avrdude -p m1280 -P COMXX -c stk500v2 -V  -V  -U flash:w:/some/path/to/build/atmega1280-1608/pulsefire.hex

Please post the chip_info cmd output after connecting with serial monitor.(the 0.9 ui wont connect to newer versions)
And hopefully you will get some character looking pixels in the upper area of the display.


txqNL

RE: EPG Testing sequential pulsar using the Arduino
« Reply #189, on December 1st, 2011, 05:04 PM »
So the mega flash protocol looks like working so here is PulseFireUI-1.0.0-Beta1;
(Windows 32 and 64 bit)[attachment=555]
(Linux 32/64,macosx,windows32/64)[attachment=554]

Changed in version 1.0-Beta1:
- Converted project code to real C project.
- Removed Arduino C libary dependeny.
- Added SF_ENABLE_PWM flag to fully remove software pwm code.
- Implemented Arduino flash protocol in java and added firmware flash dialog.
- Moved compile option to config: lpm_relay_inv to inverse relay output signal.
- Moved compile option to config: lcd_size; 0=2x16,1=2x20,2=4x20
- Added dev_*_dot conf value for display and calc of volt/amp/temp.
- Created makefile with ~40 target firmware builds for in system flashing.
- Moved all chip IO functions to chip.h
- Upped max digital inputs from 8 to 16.
- Created Arduino MEGA support(non-tested).
- Made adc_value and dic_value use auto push for gui update.
- Fixed main loop speed bug was in Input_loopLcd().
- Removed SF_ENABLE_FRQ flag info_freq is always rest is moved to pwm flag.
- Changed req_pwm_freq from 3 to 2 parameters removed duty uses always pwm_duty now.

Found some errate;
- Freq request/calc is broken
- Graphs size+data is not nice
- The dev_*_dot(diverders) variables are not yet used.
- mega build is not tested on mega
- stk500v2 flash is not tested on mega but only on stk500 dev board.
- win32 flashing works only on first usage of com port and only once.
  (so flash before connecting and restart app before flashing again)

Not a lot of function changes this time, the main focus was on converting the project to C and removing all arduino dependencies to it can be compiled to different platforms.
Also the implemention of the arduino and mega flash protocol is a step forward because it removes the config and compile phase of the software, so now its only select the needed firmware and burn it into the chip.

There has been a lot of C code changes, so probably where will be some more bugs in there, there for this still a beta release.

Good luck,
Willem

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #190, on December 2nd, 2011, 03:47 AM »
Quote from txqNL on December 1st, 2011, 05:04 PM
So the mega flash protocol looks like working so here is PulseFireUI-1.0.0-Beta1;
(Windows 32 and 64 bit)
(Linux 32/64,macosx,windows32/64)

Changed in version 1.0-Beta1:
- Converted project code to real C project.
- Removed Arduino C libary dependeny.
- Added SF_ENABLE_PWM flag to fully remove software pwm code.
- Implemented Arduino flash protocol in java and added firmware flash dialog.
- Moved compile option to config: lpm_relay_inv to inverse relay output signal.
- Moved compile option to config: lcd_size; 0=2x16,1=2x20,2=4x20
- Added dev_*_dot conf value for display and calc of volt/amp/temp.
- Created makefile with ~40 target firmware builds for in system flashing.
- Moved all chip IO functions to chip.h
- Upped max digital inputs from 8 to 16.
- Created Arduino MEGA support(non-tested).
- Made adc_value and dic_value use auto push for gui update.
- Fixed main loop speed bug was in Input_loopLcd().
- Removed SF_ENABLE_FRQ flag info_freq is always rest is moved to pwm flag.
- Changed req_pwm_freq from 3 to 2 parameters removed duty uses always pwm_duty now.

Found some errate;
- Freq request/calc is broken
- Graphs size+data is not nice
- The dev_*_dot(diverders) variables are not yet used.
- mega build is not tested on mega
- stk500v2 flash is not tested on mega but only on stk500 dev board.
- win32 flashing works only on first usage of com port and only once.
  (so flash before connecting and restart app before flashing again)

Not a lot of function changes this time, the main focus was on converting the project to C and removing all arduino dependencies to it can be compiled to different platforms.
Also the implemention of the arduino and mega flash protocol is a step forward because it removes the config and compile phase of the software, so now its only select the needed firmware and burn it into the chip.

There has been a lot of C code changes, so probably where will be some more bugs in there, there for this still a beta release.

Good luck,
Willem
fantastic Willem! i will test it with my setup soon! blessings!
~Russ

Casper

RE: EPG Testing sequential pulsar using the Arduino
« Reply #191, on December 2nd, 2011, 06:19 AM »
Quote from txqNL on November 30th, 2011, 06:39 AM
Quote from txqNL on November 24th, 2011, 05:33 PM
Quote from Casper on November 21st, 2011, 04:38 PM
I connect it with trough serial ( do u want to know what pins i use?)

The display serial-number is "KXM12864J-4 Ver.2.0"
This is a untested mega build with GLCD enabled;
Hi Casper, did you get some pixels ?
Hey man :) Sorry for being so slow, been swamped with "real-world" work.

I'll get to testing when i get home from the library, and post the output i get. Do you have skype txq? will i need to use windows for AVRDUDE?




ET-001

RE: EPG Testing sequential pulsar using the Arduino
« Reply #192, on December 13th, 2011, 02:56 PM »Last edited on December 13th, 2011, 03:08 PM by ET-001
Hi everyone, for those who are actually starting at programming the arduino, here's what i got:
This program will let you adjust Frequency and Duty Cycle from 2 diff pots. This is quite basic but i'm new at this...
Anyway here it is:
#include
LiquidCrystal lcd(7,8,2,4,12,13);
const int analogInPin = A0;
const int analogPin1 = A1;
int sensorValue;
int timer = 0;
const int k[6] = {3,5,6,9,10,11};
int i,Duty;
int DC;
double A,B=1021,C=100, D,Z;

void setup()
{
  // use a for loop to initialize each pin as an output:
 lcd.begin(16,2);
 Serial.begin(9600);

  for (i=0;i<=5;i++)  
   {
     pinMode(k, OUTPUT);
   }
 }
void loop()
{

  for(i=0;i<=5;i++)  
  {
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  Duty = analogRead(analogPin1);
  DC = Duty;
  analogWrite(k, DC);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  delay(timer);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  analogWrite(k, LOW);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  A= (((sensorValue)/B)*C);
  D= C-A;
  Z= (((Duty)/(B+2))*C);
   lcd.clear();
   lcd.print("Speed=");
   lcd.print(D);
   lcd.print("%");
   lcd.setCursor(0,1);
   lcd.print("DuCycle=");
   lcd.print(Z);
   lcd.print("%");
      }
     
}


If you have any suggestions or anything, let me know at : erik_tremblay11@hotmail.com
See ya!

Quote from ET-001 on December 13th, 2011, 02:56 PM
Hi everyone, for those who are actually starting at programming the arduino, here's what i got:
This program will let you adjust Frequency and Duty Cycle from 2 diff pots. This is quite basic but i'm new at this...
Anyway here it is:
#include
LiquidCrystal lcd(7,8,2,4,12,13);
const int analogInPin = A0;
const int analogPin1 = A1;
int sensorValue;
int timer = 0;
const int k[6] = {3,5,6,9,10,11};
int i,Duty;
int DC;
double A,B=1021,C=100, D,Z;

void setup()
{
  // use a for loop to initialize each pin as an output:
 lcd.begin(16,2);
 Serial.begin(9600);

  for (i=0;i<=5;i++)  
   {
     pinMode(k, OUTPUT);
   }
 }
void loop()
{

  for(i=0;i<=5;i++)  
  {
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  Duty = analogRead(analogPin1);
  DC = Duty/4;
  analogWrite(k, DC);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  delay(timer);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  analogWrite(k, LOW);
  sensorValue = analogRead(analogInPin);
  timer = sensorValue;
  A= (((sensorValue)/B)*C);
  D= C-A;
  Z= (((Duty)/(B+2))*C);
   lcd.clear();
   lcd.print("Speed=");
   lcd.print(D);
   lcd.print("%");
   lcd.setCursor(0,1);
   lcd.print("DuCycle=");
   lcd.print(Z);
   lcd.print("%");
      }
     
}


If you have any suggestions or anything, let me know at : erik_tremblay11@hotmail.com
See ya!
I forgot de /4 at de DC=duty/4;

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #193, on January 7th, 2012, 12:59 AM »
hello everyone!

so back at it again with the EPG so i have some questions...

Willem, can i save the data log some how? if not will it take much work to make it so i can. this will give me the advantage i need for feed back in this EPG testing!!!

also, the new Pulse fire GUI don't work for me. can you repost it again with the latest updates so i can try it again?


still amazed on this build!!! you do some fascinating work!!! thank you!!!!!

muxar, here is the schematic in the ECH file format per your request,

for everyone else, you will need expresspcb to open it, its free, give it a Google.

thanks! ~Russ




Muxar

RE: EPG Testing sequential pulsar using the Arduino
« Reply #194, on January 7th, 2012, 11:53 AM »
Quote from ~Russ/Rwg42985 on January 7th, 2012, 12:59 AM
hello everyone!

so back at it again with the EPG so i have some questions...

Willem, can i save the data log some how? if not will it take much work to make it so i can. this will give me the advantage i need for feed back in this EPG testing!!!

also, the new Pulse fire GUI don't work for me. can you repost it again with the latest updates so i can try it again?


still amazed on this build!!! you do some fascinating work!!! thank you!!!!!

muxar, here is the schematic in the ECH file format per your request,

for everyone else, you will need expresspcb to open it, its free, give it a Google.

thanks! ~Russ
Thanks man!! it´s all i need!!
I can´t wait for seeing the epg tests!!
Muxar.

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #195, on January 7th, 2012, 08:07 PM »
Quote from Muxar on January 7th, 2012, 11:53 AM
Quote from ~Russ/Rwg42985 on January 7th, 2012, 12:59 AM
hello everyone!

so back at it again with the EPG so i have some questions...

Willem, can i save the data log some how? if not will it take much work to make it so i can. this will give me the advantage i need for feed back in this EPG testing!!!

also, the new Pulse fire GUI don't work for me. can you repost it again with the latest updates so i can try it again?


still amazed on this build!!! you do some fascinating work!!! thank you!!!!!

muxar, here is the schematic in the ECH file format per your request,

for everyone else, you will need expresspcb to open it, its free, give it a Google.

thanks! ~Russ
Thanks man!! it´s all i need!!
I can´t wait for seeing the epg tests!!
Muxar.
grate!!! :) you welcome!

~Russ

Steck

RE: EPG Testing sequential pulsar using the Arduino
« Reply #196, on February 11th, 2012, 02:02 PM »
can i use my arduino uno with the pulse fire .9 sketch. i am having trouble uploading. i am getting error (not in sync). please help me firure out what is going on. i just downloaded the ui and it looks great cant wait to try it.

~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #197, on February 11th, 2012, 06:04 PM »
Quote from Steck on February 11th, 2012, 02:02 PM
can i use my arduino uno with the pulse fire .9 sketch. i am having trouble uploading. i am getting error (not in sync). please help me firure out what is going on. i just downloaded the ui and it looks great cant wait to try it.
Try a lower version of pulse fire.

Also make sure you have the ardino softwere installed and the pulse fire softwere loaded in your ardino. Then turn on pulse fire GUI, and make sure your conected to the corect port....

I will upload the files I have working soon.

~Russ


~Russ

RE: EPG Testing sequential pulsar using the Arduino
« Reply #199, on February 13th, 2012, 10:54 PM »
Quote from Steck on February 11th, 2012, 06:17 PM
Thanks for the quick reply Russ. I will give it a shot. Will I be able to have different frequency on different pins.
the pulse " train" runs at the same frequency. its adjustable... but moth each pin. so no? but it dose so much other stuff that you may find a good way of using its other functions.

i still haven't go to get to those files... did you try what you have ? and did it work?

~Russ