Trying to get basic pwm working on my 8266.
I have been running FASTLED without problem (thousand of lines of code) and have no problem running on servo functions on gpio14 (clk or data can't remember which .
It appears the unit is resetting. The servo jumps after the first statement, then after seconds jumps again. The output on monitor is garbage after the initial serial.println. See screen print.
The default frequency is 1k, but I tried 5k as well no luck.
I have added a separate ps thinking that this tiny little servo is pulling too much power, no luck.
What is causing the reset ? See attached screen print for what the monitor looks like.
int LED = 8; // D5 = 14, 7,8,9 for leds
void setup()
{
Serial.begin(9600);
// analogWriteFreq(5000);
}
void loop()
{
Serial.println("10 PWM");
analogWrite(LED,1023);
delay(50);
Serial.println("20 PWM");
analogWrite(LED,20);
delay(50);
Serial.println("300 PWM");
analogWrite(LED,300);
delay(50);
}