Shop OBEX P1 Docs P2 Docs Learn Events
Experiments with Renewable Energy, Basic Plot — Parallax Forums

Experiments with Renewable Energy, Basic Plot

riverdanriverdan Posts: 21
edited 2007-10-14 10:49 in BASIC Stamp
I am using a 10k pot as a voltage divider, when shorted to 5vdc it plots a correct reading of 5vdc.
Now when I turn the pot half way I plot 2.5vdc “Great” Now then I have a servo motor that generates 0 to 15vdc. I don’t what to go over 5vdc to the stamp so I adjust the pot down to the point of 1/3. In the plot I read 1/3 5v but my real volts are 15v. How do I make them match? BS2 code or Macro?
The plot is linear volts up plot up, volts down plot down, “Great”
·
Thanks Old Riverdan Everyone has been a great help.

smurf.gif··

Comments

  • riverdanriverdan Posts: 21
    edited 2007-10-14 10:49
    If anyone is interested here is the macro code I changed, in notepad, to keep the volts under 5v on the LTC0834 and still read true volts on the 15v plot. The volts can now be fine tuned with the 10k pot. This was very important as I can now compare outputs on two generators and two different blade designs. In the BS2 code I made active all 4 channels.
    ·
    '-- Event Code
    !POBJ DA_Hidden.C='Local Channels([noparse];)[/noparse]
    ([noparse];)[/noparse]
    'Plot on channel 0 1st byte([noparse];)[/noparse]
    ^AchN 0,[noparse][[/noparse](AINVAL0),*,0.02],(ORANGE)([noparse];)[/noparse] from this to this >>>>·· ,*,0.11·· <<<<<
Sign In or Register to comment.