Hi everyone thanks for a great forum
This is the first time I have requested any help in the 4 years I have been using Picaxe chips so I hope I have included enough info for you. I have been using a PNS to display information from my home automation projects, after running out of RTC ram on my PNS I removed the Picaxe 28x and used a 40x1 as a i2c slave so I can increase the ram from 56 to 128 bytes with no need to access the i2c bus while updating the scratchpad memories. The hardware is working but I am having problems writing the HTML code. I would like to display the first 7 scratchpad memories 000 to 006 on one page and update them every 10 seconds. Every attempt I make only the last checked value is displayed and I have to use a submit button to start it off. I have cut down my BattVolt.cgi page to 2 memories while testing 000 & 001.
It's the first time I have had to use commands 32, 33, 34 and command 33 set address and read gives unexpected results but command 32 without any data gets the correct values from the 40x1 scratchpad memories. Could someone please tell me where I am going wrong with this as the manual is very light on information on how to use the PCF commands. My HTML skills are not very good but I have managed to get most things working when using the RTC memories so please excuse any basic mistakes as its mainly trial and error for me at the moment with HTML. Thanks in advance for any help Jonathan
This is the first time I have requested any help in the 4 years I have been using Picaxe chips so I hope I have included enough info for you. I have been using a PNS to display information from my home automation projects, after running out of RTC ram on my PNS I removed the Picaxe 28x and used a 40x1 as a i2c slave so I can increase the ram from 56 to 128 bytes with no need to access the i2c bus while updating the scratchpad memories. The hardware is working but I am having problems writing the HTML code. I would like to display the first 7 scratchpad memories 000 to 006 on one page and update them every 10 seconds. Every attempt I make only the last checked value is displayed and I have to use a submit button to start it off. I have cut down my BattVolt.cgi page to 2 memories while testing 000 & 001.
Code:
<html>
<meta http-equiv="refresh" content="10">
<head><title>Battery Voltage</title></head>
<body><center>
<table border=1 width=95%>
<tr>
<form method=get>
<td>
<input type=hidden name=32 value=000>
<input type=submit value="Batt 1">
</td>
<td>
Battery 01 = ?AD189 ?AD289 . ?AD389 v
</td>
</form>
</tr>
<tr>
<form method=get>
<td>
<input type=hidden name=32 value=001>
<input type=submit value="Batt 2">
</td>
<td>
Battery 02 = ?AD189 ?AD289 . ?AD389 v
</td>
</form>
</tr>
</table>
</body>
</html>