Serial data collection and presentation in graphical form is something a lot of people desire. If this included yourself consider the free sources
available on an Australian site as being used for logging wind driven generator data including Volts, RPM, Amps etc.
http://www.thebackshed.com/Windmill/PicLog4.asp down the bottom of this page is a download link to the circuits & code.
Basically the system uses a simple 8 pin PICAXE circuit (08M) to collect the data as both AC & DC Volts or Pulse Input - Refer to downloadable circuit.
The PICAXE Basic code collects the data and converts it into a serial stream as follows:
Start:
SYMBOL Volt = W0
SYMBOL Amp = W1
SYMBOL RPM = W2
SYMBOL WSpeed = W3
SYMBOL Checksum = W4
Main:
readadc10 4,Volt
readadc10 1, Amp
Count 3, 1000, RPM
Count 2, 1000, WSpeed
Checksum = Volt + Amp + RPM + WSpeed
sertxd("[<V>", #volt, "</V><I>", #Amp, "</I><R>", #RPM, "</R><S>", #WSpeed, "</S><C>", #Checksum, "</C>]")
goto main
The Just Basic (Liberty Basic) code then collects this serial data & stores it in log files (see PicLog.exe) which if you wish you should be able to import into Excel but alternatively use the downloadeable EXE file (see PicGraph.exe) to open the log file - zoom into a time range - then present in graphical form. The code also provides facilities for setup, calibration etc.
As mentioned the provided application is based on logging a wind generator BUT the PICAXE code & circuit could be any analog data - just consider how
various sources of raw data can be inputted to PICAXE by looking at the schematic.
Then equally as simply the JB (LB) code can be adapted to graphically present and data from a delimitted log file.
Regards.... Ray Bright
available on an Australian site as being used for logging wind driven generator data including Volts, RPM, Amps etc.
http://www.thebackshed.com/Windmill/PicLog4.asp down the bottom of this page is a download link to the circuits & code.
Basically the system uses a simple 8 pin PICAXE circuit (08M) to collect the data as both AC & DC Volts or Pulse Input - Refer to downloadable circuit.
The PICAXE Basic code collects the data and converts it into a serial stream as follows:
Start:
SYMBOL Volt = W0
SYMBOL Amp = W1
SYMBOL RPM = W2
SYMBOL WSpeed = W3
SYMBOL Checksum = W4
Main:
readadc10 4,Volt
readadc10 1, Amp
Count 3, 1000, RPM
Count 2, 1000, WSpeed
Checksum = Volt + Amp + RPM + WSpeed
sertxd("[<V>", #volt, "</V><I>", #Amp, "</I><R>", #RPM, "</R><S>", #WSpeed, "</S><C>", #Checksum, "</C>]")
goto main
The Just Basic (Liberty Basic) code then collects this serial data & stores it in log files (see PicLog.exe) which if you wish you should be able to import into Excel but alternatively use the downloadeable EXE file (see PicGraph.exe) to open the log file - zoom into a time range - then present in graphical form. The code also provides facilities for setup, calibration etc.
As mentioned the provided application is based on logging a wind generator BUT the PICAXE code & circuit could be any analog data - just consider how
various sources of raw data can be inputted to PICAXE by looking at the schematic.
Then equally as simply the JB (LB) code can be adapted to graphically present and data from a delimitted log file.
Regards.... Ray Bright