-->
Page 9 of 15

Re: pwm_init creates a platform restart

PostPosted: Tue Sep 15, 2015 1:46 am
by madworm
The circuit board looks very nice! Good work.

One thing that pops into my mind immediately: decoupling capacitors! Those LEDs draw a whole lot of current and those two little electrolytic capacitors are like a drop of water on a hot stone. I don't see much capacitance next to the local 3.3V regulator either. You might be suffering from brown-out resets. Have you measured the supply voltages with an oscilloscope yet?

I'd try enabling the PWM with the LEDs or the DC-DC chips disconnected, or use a 2nd ESP8266 with a small LED as a heart-beat indicator and see if that resets as well.

Regards,

Robert

Re: pwm_init creates a platform restart

PostPosted: Tue Sep 15, 2015 3:26 am
by ketaponk
Hello,

I had the same problem. I installed esp-open-sdk and used simple makefile from examples inside /esp-open-sdk/examples and also the one from cnlohr they worked but not for pwm library. Yesterday I tried blinky example from https://github.com/esp8266/source-code-examples with pwm added and used makefile from them and it works! Makefile from blinky example didn't work from the start I had to change some paths especially path to ld files.

I chcecked pwm signal on osciloscope and it is working but it has strange glitch just before pwm signal rises. I checked it with arduino ide on the same pin with analogWrite and the signal is clean. Does this pwm library has bug ?

Re: pwm_init creates a platform restart

PostPosted: Tue Sep 15, 2015 9:15 am
by petiepooo
In my previous post, I mean to reference eriksl's design, not limpkin. The hazards of not keeping the original post on-screen... sorry. :?

Re: pwm_init creates a platform restart

PostPosted: Tue Sep 15, 2015 11:13 am
by Thoma HAUC
Hi Limpkin,

Are you sure the problem is software related ?

Are you debugging on the final hardware ?
If yes, could you simply ground the enable pin from the different A6211. Do not forget to remove these wires from the ESP8266.

Regards,

Thoma