-->
Page 1 of 4

Issues with onboard blue led on esp8266-01

PostPosted: Tue Jun 26, 2018 6:54 pm
by tplindley
Using some of my development boards, i blink the onboard led in a slow blink, one second on, one second off. When I run this code on a esp8266-01 the little blue led seems to just flicker, won't stay on. I am using the LED_BUILTIN and setting HIGH for off, and LOW for on. What am I missing? Thanks.

Re: Issues with onboard blue led on esp8266-01

PostPosted: Wed Jun 27, 2018 2:43 am
by QuickFix
I know exactly wat your problem is. :D

You are forgetting to include your code and a schematic (and/or pictures). :idea:
Sorry mate, but we can't help you without a proper description of the problem (and as much as possible other relevant information) .

Re: Issues with onboard blue led on esp8266-01

PostPosted: Wed Jun 27, 2018 3:55 am
by schufti
esp-01 modules come in different layouts.
the newer ones don't have a red led and the blue one is on a different gpio.
so QuickFixs comment holds true ...

Re: Issues with onboard blue led on esp8266-01

PostPosted: Wed Jun 27, 2018 7:43 am
by tplindley
Thanks for the responses, my code is very simple. I have a timer running at a frequency higher than the blink I want, so I count timer ticks and only action when it exceeds my blink threshold.

Code: Select all        blinkCount++;
        if(blinkCount>blinkDelay)
        {
            if(isOn)
            {
               digitalWrite(LED_BUILTIN,HIGH);
            }
            else
            {
               digitalWrite(LED_BUILTIN,LOW);
            }
            isOn=!isOn;
            blinkCount=0;
        }

Here is an image of my production setup, I did just order a few of the new boards without a power led.
Image