Battery monitoring. (There is a happy ending!)
I'm new to this forum and I have read the manuals but failed to find the answer to many simple questions. I think these chips are really neat and the forum impressive.
Question 1 what is the likely consequence of enabling or disabling brown out detection with DISABLEBOD, what does it actually do? apart from a reduction in power use which seems not quantifiable. I think the Code examples are pretty useless on the Basic Tutorial.
Personally, I think all the snippets really should do something useful, I am afraid that many do not.
I became interested in Picaxe when I wanted to develop a very accurate thermometer for an incubator. I found with an AXE049, I could make a great monitor for an incubator with just the addition of a resistor and a DS18B20 chip. And of course, a program. It measures temp and logs and displays maximum and minimum and ~mode temperature with arbitrary High and Low thresholds. All displayed to precision on just 1 7 segment chip. The beauty of a microprocessor is that it can be tasked to only record max and min temperatures AFTER it has temperature stabilised in its environment. So, I can use it to record the coldest temperature in an incubator even though it starts by being reset in a cool room. Or warmest temperature in a fridge etc.
However, I found it misread the temperature at a point the battery ran down to the point the Picaxe worked BUT the temp chip clearly did not. So...
Question 2 Can you explain if / how the chip can sense to alarm or shut down a project 'cleanly' i.e. under control, when the project 4.5v battery voltage falls to say 3v. I assume you need to use calibadc or similar?
I have read the manuals but...
I found the code snippet
unhelpful.
please excuse any perceived negativity. If I did not rate this forum I would not post in it. HertzHog
I'm new to this forum and I have read the manuals but failed to find the answer to many simple questions. I think these chips are really neat and the forum impressive.
Question 1 what is the likely consequence of enabling or disabling brown out detection with DISABLEBOD, what does it actually do? apart from a reduction in power use which seems not quantifiable. I think the Code examples are pretty useless on the Basic Tutorial.
Code:
"main: disablebod ; disable brown out
sleep 10 ; sleep for 23 seconds (2.3x10)
enablebod ; enable brown out
goto main ; loop back to start"
I became interested in Picaxe when I wanted to develop a very accurate thermometer for an incubator. I found with an AXE049, I could make a great monitor for an incubator with just the addition of a resistor and a DS18B20 chip. And of course, a program. It measures temp and logs and displays maximum and minimum and ~mode temperature with arbitrary High and Low thresholds. All displayed to precision on just 1 7 segment chip. The beauty of a microprocessor is that it can be tasked to only record max and min temperatures AFTER it has temperature stabilised in its environment. So, I can use it to record the coldest temperature in an incubator even though it starts by being reset in a cool room. Or warmest temperature in a fridge etc.
However, I found it misread the temperature at a point the battery ran down to the point the Picaxe worked BUT the temp chip clearly did not. So...
Question 2 Can you explain if / how the chip can sense to alarm or shut down a project 'cleanly' i.e. under control, when the project 4.5v battery voltage falls to say 3v. I assume you need to use calibadc or similar?
I have read the manuals but...
I found the code snippet
Code:
"main: calibadc10 w1 ; read the adc reading
debug ; display current value
pause 500 ; wait a while
goto main ; loop back to start"
please excuse any perceived negativity. If I did not rate this forum I would not post in it. HertzHog
Last edited: