Shop OBEX P1 Docs P2 Docs Learn Events
Experiments with Renewable Energy, Real World — Parallax Forums

Experiments with Renewable Energy, Real World

riverdanriverdan Posts: 21
edited 2007-10-05 01:33 in BASIC Stamp
In the Experiments with Renewable Energy using all the parts and plots, as is, it works just fine, I have a real system and reduced battery volts from 0-12vdc to input 0-5vdc the generator from 0-20vdc to 0-5vdc to match the original design. In the plot I may show 2.5vdc when the real volts are 6vdc.How do I change this in the plot and code to reflect the real values? Has anyone seen a schematic to make this permanent? I’ll work on the amps.
·
Thanks Old Riverdan
rolleyes.gif·

Comments

  • Martin HebelMartin Hebel Posts: 1,239
    edited 2007-10-01 12:26
    If you open up the macro using Notepad (a feature in the macro menu of StampPlot), you'll see code tha t looks like:


      ^AchN 1,[noparse][[/noparse](AINVAL1),*,0.02],(RED)(;)
    
    



    This code takes the value sent by the Stamp and multiplies it by 0.2 to be plotted.

    You can modify the value to match what you really need.

    Also in the macro you'll see:


    ' Set analog span
    !SPAN  0, 2.5
    
    



    This sets up the analog (Y) range.

    If you change things, save to another file name before testing just in case...

    -Martin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    StampPlot - GUI and Plotting Software
    Southern Illinois University Carbondale, Electronic Systems Technologies
  • riverdanriverdan Posts: 21
    edited 2007-10-01 15:14
    this is great i think i am catching on, the 0.02 is milivolts. the span was easy, i hate to ask but i don't see where where i can change the scale on the gauges that are 0 to 1 and 0 to 5 volts. i see the (AINVAL3,*,.02) in gaugeBCI -- OGAUGE but does not seem to change anything.

    Thanks Again
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2007-10-01 23:14
    It's in the gauge creation code lower down:
    !POBJ oGauge.gauLeft=72.,71.,12.,47.,0,2,0,100
    
    



    For parameters are : Left, top, width, heigh, min, max, low alarm, high alarm.

    Glad it helps! Sorry for taking a while, busy day.
    -Martin

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    StampPlot - GUI and Plotting Software
    Southern Illinois University Carbondale, Electronic Systems Technologies
  • riverdanriverdan Posts: 21
    edited 2007-10-02 12:11
    thanks a bunch, i knew it had something to do with gauges so i found the 0,2 changed it and it worked. the main thing is you got me headed in the right direction. now that i am getting some good information to compare i can make some really good changes to improve the whole setup.

    thanks again Riverdan
  • Martin HebelMartin Hebel Posts: 1,239
    edited 2007-10-02 13:47
    Also, that text has a pretty decent addendum on using StampPlot, such as creating your own interfaces and such that may be of assistance.

    Glad you found it!
    -Martin
    ·
  • riverdanriverdan Posts: 21
    edited 2007-10-05 01:33
    Thanks one and all, project resolved...........
Sign In or Register to comment.