Hi there,
I am doing a project to log the gas consumption in my house using a hall effect sensor switch and an AXE110 datalogger.
I have sorted out the hardware side, with some help and I now have turned to the software.
The idea is, rather than logging the status of the hall switch at regular intervals, to log the time at which a pulse comes around (the gas meter wheel has a magnet on it). To do this I plan to use interrupts on one of the input pins of the Picaxe 18X.
I have searched for examples on the various forums but I haven't found examples of this approach. Maybe this project will be useful to others, once I get it done.
Anyway...
I am quite rusty (not that I was ever proficient) on the coding side. I have written the code attached and started debugging it with the Picaxe simulator, but the debugger gets gets stuck at line 86: "hi2cout address, (w2,w3,w4)"
View attachment RM_program_v2.bas
Could someone take a look at it for me? Hopefully it is something very simple to fix.
The specifics of the hardware are:
1) AXE110 datalogger, with 18X chip, RTC1307 and 24LC256/P I2C EEPROM
Many Thanks
Riccardo
I am doing a project to log the gas consumption in my house using a hall effect sensor switch and an AXE110 datalogger.
I have sorted out the hardware side, with some help and I now have turned to the software.
The idea is, rather than logging the status of the hall switch at regular intervals, to log the time at which a pulse comes around (the gas meter wheel has a magnet on it). To do this I plan to use interrupts on one of the input pins of the Picaxe 18X.
I have searched for examples on the various forums but I haven't found examples of this approach. Maybe this project will be useful to others, once I get it done.
Anyway...
I am quite rusty (not that I was ever proficient) on the coding side. I have written the code attached and started debugging it with the Picaxe simulator, but the debugger gets gets stuck at line 86: "hi2cout address, (w2,w3,w4)"
View attachment RM_program_v2.bas
Could someone take a look at it for me? Hopefully it is something very simple to fix.
The specifics of the hardware are:
1) AXE110 datalogger, with 18X chip, RTC1307 and 24LC256/P I2C EEPROM
Many Thanks
Riccardo