'PVDEMO.BAS .PICAXE-18A + DS18B20 + Casio PV-S450 & PVterminal temp. reading & display 'Allows Pocket Viewer "organiser" temp.display Via Stan.SWAN =>s.t.swan@massey.ac.nz 'Essentially a *lite version of datads18.bas (no LED pulses) ex. Nov.2003 SiChip article 'This PV (Pocket Viewer) terminal prog. has no data saved- transfer later via PC synch? 'Not as good a terminal prog. as *Bananacom* -some ASCII ignored too,espec 12=FF(=CLS)? 'Auto shutdown of PV may freeze display too,but all held Picaxe EEPROM OK for "normal" 'PC/LCD display too. Check setup=>www.picaxe.orcon.net.nz/pvdemo.jpg . Ver 1 25/11/03 'NB -Casio PV holder D9 serial needed it's 3 (&5)for data input( normally 2 & 5).Strange! '--------------------------------------------------------------------------------------- 'PLAYBACK ROUTINE serout 2,n2400,(13,10,"Picaxe-18 Celsius temp",13,10) for b0=0 to 255 'stored data values readout to terminal or LCD read b0,b1 'polls & reads out stored eeprom values ( .csv) serout 2,n2400,(44,#b1) '2 wire (Casio PV D9 pins 3 & 5) Celsius display next b0 'read next stored EEPROM value serial out wait 30 '30 secs "reading" delay -modify if too short etc '---------------------------------------------------------------------------------------- 'WRITE/DATA LOGGING ROUTINE for b0= 0 to 255 'begin 256 data readings at time set by WAIT sound 7,(75,10) 'Beep to alert data logging commencing readtemp 1,b1 'direct Celsius reading of DS18B20 temp. returned serout 2,n2400,(#b1,44) 'Now allows display of data as gathered too ! write b0,b1 'sequentially write values to EEPROM locations WAIT 15 'Checks every 15 secs (max 65)-alter to suit etc next b0 'Gathering automatically stops after 256 samples '----------------------------------------------------------------------------------------