I have a HTCC-AB01 and it seems to stop working every 10 minutes. After which i have to do a power cycle, or press the reset buttons on the sensor for it to start up again.
As a quick fix, i wanted to know if there was a code that could set the sensor to auto-reset every 10 minutes?
I am new, and therefore don’t know how to code and would be extremely grateful for any help as i try to learn and I have been trying hard to find a solution
Thank you very much in advance.
KR
Sensor Reset Auto Reset
@KarlR could you please at least tell us what sensor you got? Wiring and sketch would also be helpful.
Regards, Edi
you can try to add the watchdog for an auto reset of the node.
an example ist found in the sources
@wasn Thank you for getting back. Can you please help me on how to do that? I am sorry, i am a newbie.
just have a look at this example:
add this line at the start of your code:
#include "innerWdt.h"
and add this to your setup function:
innerWdtEnable(true);
You can test the Board with the example RGB.ino.
Is there also a auto-reset every 10 minutes?
E_T
Hi Ernst.
Sorry but I dont see auto-reset on RGB.ino example.
#include “CubeCell_NeoPixel.h”
CubeCell_NeoPixel pixels(1, RGB, NEO_GRB + NEO_KHZ800);
void setup() {
// put your setup code here, to run once:
pinMode(Vext,OUTPUT);
digitalWrite(Vext,LOW); //SET POWER
pixels.begin(); // INITIALIZE NeoPixel strip object (REQUIRED)
pixels.clear(); // Set all pixel colors to ‘off’
}
uint8_t i=0;
void loop() {
// put your main code here, to run repeatedly:
pixels.setPixelColor(0, pixels.Color(i, 0, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(200); // Pause before next pass through loop
pixels.setPixelColor(0, pixels.Color(0, i, 0));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(200); // Pause before next pass through loop
pixels.setPixelColor(0, pixels.Color(0, 0, i));
pixels.show(); // Send the updated pixel colors to the hardware.
delay(200); // Pause before next pass through loop
i+=10;
}
Maybe on old version?
You need to add an additional watchdog to use this feature.