Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By gorec2005
#57482 Hi!
help please...
this sketch have wdt reset! - try it please...
it's my fault or analogWrite bug?

Code: Select allint led = 15;

void setup() {
pinMode ( led, OUTPUT );
digitalWrite ( led, 0 );
}

void loop() {
analogWrite ( led, 1 );
delay(1000);
analogWrite ( led, 1000 );
delay(1000);
}
User avatar
By rudy
#57524
Code: Select allanalogWrite ( led, 1000 );

Works for me. And no wdt reset.

Code: Select allint led = 15;

void setup() {
pinMode ( led, OUTPUT );
digitalWrite ( led, 0 );
}

void loop() {
analogWrite ( led, 1 );
delay(1000);
analogWrite ( led, 1000 );
delay(1000);
analogWrite ( led, 512 );
delay(1000);
analogWrite ( led, 255 );
delay(1000);
}


I would try putting WiFi.disconnect(); at the top. Do you have wdt resets when you run any other code? Maybe you have poor power supply regulation on the 3.3V line.