I might have overlooked something pretty basic, but I thought a Picaxe output (18x in this case), once turned ON, stayed ON until told to turn off.
I have a situation where an output turns off while the code is off doing other things.
I have prototyped a thermostat project.
- Reading temperature from a DS18B20.
- Displaying current_temp and setting_temp on an LCD display (Thanks to Hippy's LCD pages).
- Reads 2 pushbuttons (up/down) which set the setting_temp value.
- Turns on the heater output (LED at the moment) when actual_temp < setting_temp, and turns the output off when the reverse is true.
This is all fine. So far everything works as expected, (with unavoidable switch lag while it gosubs to reading the temp sensor).
But... the Picaxe output, if on, turns off when I press either of the pushbuttons to adjust the setting_temp.
Is this right? The Picaxe can't keep an output on and read inputs at the same time?
(On another subject, readtemp12 seems to work fine at 8MHz, contrary to what the manual states).
I have a situation where an output turns off while the code is off doing other things.
I have prototyped a thermostat project.
- Reading temperature from a DS18B20.
- Displaying current_temp and setting_temp on an LCD display (Thanks to Hippy's LCD pages).
- Reads 2 pushbuttons (up/down) which set the setting_temp value.
- Turns on the heater output (LED at the moment) when actual_temp < setting_temp, and turns the output off when the reverse is true.
This is all fine. So far everything works as expected, (with unavoidable switch lag while it gosubs to reading the temp sensor).
But... the Picaxe output, if on, turns off when I press either of the pushbuttons to adjust the setting_temp.
Is this right? The Picaxe can't keep an output on and read inputs at the same time?
(On another subject, readtemp12 seems to work fine at 8MHz, contrary to what the manual states).
Last edited by a moderator: