Experiments with renewable energy BS2px
Is there still support available for The "Experiments with renewable energy" project files?
I am haviing trouble getting the data to plot from my bs2px to stamplot pro.
Here is my source code:
' Experiments with Renewable Energy v1.0 - PlotIt.bs2
' Transmits acquired data to StampPlot software for plotting.
' {$STAMP BS2px}
' {$PBASIC 2.5}
'
'· Declarations
'
'
For Plot_It Subroutine
· ch0········· VAR···· Byte················· 'Voltage reading from A/D CH0
· ch1········· VAR···· Byte················· 'Voltage reading from A/D CH1
· ch2········· VAR···· Byte················· 'Voltage reading from A/D CH2
· ch3········· VAR···· Byte················· 'Voltage reading from A/D CH3
· checkSum···· VAR···· Byte················· 'Sum of all of above readings
'
'· Main Routine
'
Main:
DO
· GOSUB Exp_1······························· ' Programmable Battery Charger
· GOSUB Exp_2······························· ' Dueling Solar Cells
· GOSUB Exp_3······························· ' Solar Cell Sun Tracker
· GOSUB Exp_4······························· ' Half&Full Wave Rectification
· GOSUB Exp_5······························· ' Three-Phase AC Alternator
· GOSUB Plot_It····························· ' Plot Data w/ StampPlot Pro
LOOP
'
'· Subroutines
'
'
'· Experiment 1: Programmable Battery Charger
'
Exp_1:
Exp_1_End:
· RETURN
'
'· Experiment 2: Dueling Solar Cells
'
Exp_2:
Exp_2_End:
· RETURN
'
'· Experiment 3: Solar Cell Sun Tracker
'
Exp_3:
Exp_3_End:
· RETURN
'
'· Experiment 4: Half and Full Wave Rectification
'
Exp_4:
Exp_4_End:
· RETURN
'
'· Experiment 5: Three-Phase AC Alternator
'
Exp_5:
Exp_5_End:
· RETURN
'
'· A/D Converter Routine
'
A2D:
A2D_End:
· RETURN
'
'· Plot Acquired Data Using StampPlot Software
'
Plot_It:
· checkSum = ch0 + ch1 + ch2 + ch3·········· ' Compute checksum for StampPlot
· DEBUG ch0, ch1, ch2, ch3, checkSum········ ' Transmit data to StampPlot
· PAUSE 250································· ' Give StampPlot time to plot data
· ch0 = 25··································· ' Reset voltages and checkSum
· ch1 = 50
· ch2 = 75
· ch3 = 100
· checkSum = 0
Plot_It_End:
· RETURN
I am able to get data in stamp editor debug and hyperterminal.
Can't figure out why not in stamplot???
Suggestions?
Thanks in advance.
·
I am haviing trouble getting the data to plot from my bs2px to stamplot pro.
Here is my source code:
' Experiments with Renewable Energy v1.0 - PlotIt.bs2
' Transmits acquired data to StampPlot software for plotting.
' {$STAMP BS2px}
' {$PBASIC 2.5}
'
'· Declarations
'
'
For Plot_It Subroutine
· ch0········· VAR···· Byte················· 'Voltage reading from A/D CH0
· ch1········· VAR···· Byte················· 'Voltage reading from A/D CH1
· ch2········· VAR···· Byte················· 'Voltage reading from A/D CH2
· ch3········· VAR···· Byte················· 'Voltage reading from A/D CH3
· checkSum···· VAR···· Byte················· 'Sum of all of above readings
'
'· Main Routine
'
Main:
DO
· GOSUB Exp_1······························· ' Programmable Battery Charger
· GOSUB Exp_2······························· ' Dueling Solar Cells
· GOSUB Exp_3······························· ' Solar Cell Sun Tracker
· GOSUB Exp_4······························· ' Half&Full Wave Rectification
· GOSUB Exp_5······························· ' Three-Phase AC Alternator
· GOSUB Plot_It····························· ' Plot Data w/ StampPlot Pro
LOOP
'
'· Subroutines
'
'
'· Experiment 1: Programmable Battery Charger
'
Exp_1:
Exp_1_End:
· RETURN
'
'· Experiment 2: Dueling Solar Cells
'
Exp_2:
Exp_2_End:
· RETURN
'
'· Experiment 3: Solar Cell Sun Tracker
'
Exp_3:
Exp_3_End:
· RETURN
'
'· Experiment 4: Half and Full Wave Rectification
'
Exp_4:
Exp_4_End:
· RETURN
'
'· Experiment 5: Three-Phase AC Alternator
'
Exp_5:
Exp_5_End:
· RETURN
'
'· A/D Converter Routine
'
A2D:
A2D_End:
· RETURN
'
'· Plot Acquired Data Using StampPlot Software
'
Plot_It:
· checkSum = ch0 + ch1 + ch2 + ch3·········· ' Compute checksum for StampPlot
· DEBUG ch0, ch1, ch2, ch3, checkSum········ ' Transmit data to StampPlot
· PAUSE 250································· ' Give StampPlot time to plot data
· ch0 = 25··································· ' Reset voltages and checkSum
· ch1 = 50
· ch2 = 75
· ch3 = 100
· checkSum = 0
Plot_It_End:
· RETURN
I am able to get data in stamp editor debug and hyperterminal.
Can't figure out why not in stamplot???
Suggestions?
Thanks in advance.
·
Comments
We do not have the Renewable Energy kit anymore, however you can still download the PDF to review (see link below). Regarding StampPlot; what is the COM port that you are using for the BASIC Stamp 2px module? Also, what version of Windows do you have currently running?
"Experiments with Renewable Energy" v1.0 (310 pp.)
http://www.parallax.com/Portals/0/Downloads/docs/books/edu/Web_EWRE%201.0a.zip.zip
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Respectfully,
Joshua Donelson
www.parallax.com