These are chat archives for esp8266/Arduino

4th
Sep 2015
Kiril Zyapkov
@kzyapkov
Sep 04 2015 13:09
Hi all! We're having some trouble with Serial1.setDebugOutput(true) ... Sometimes we get overlapping text, it doesn't flow linearly
I think it's the uart1_write_char() function, it happens when the ring buffer is full
is this known? is there a solution? The implementation of HardwareSerial is ... beyond me :)
Markus
@Links2004
Sep 04 2015 15:02
the problem is known , but there is no good fix for it.
stopping the system and wait for buffer free is possible for the arduino stuff but not inside of the SDK or we get really big trouble.
since Serial1.setDebugOutput is only for debugging this not affecting any functionality of the program, only the debug output get sometimes garbage
Kiril Zyapkov
@kzyapkov
Sep 04 2015 15:10
I'm also getting sporadic crashes in various places, but the addresses point to uart
so maybe it's not just the debug garbage, not sure.
Markus
@Links2004
Sep 04 2015 15:36
to which function points the crash?
Russ Mathis
@RussMathis
Sep 04 2015 16:19
@Links2004, I'm trying to get low power to work using ESP.deepSleep(10, WAKE_RF_DISABLED); This mode results in aprox. 17mA and the pins seem to work but the ADC does not seem to work? Is this and issue or is there some way to turn it on from this mode?
The PWM seems to work OK in this mode also:)
Just no ADC? :(
Markus
@Links2004
Sep 04 2015 16:35
the PWM is software, i never used the ADC i normaly add an onewire 16bit adc, the limited range for the ADC is the problem in my use cases.
We can use the ADC only thru the SDK, the Registers for the ADC are not public so if the ADC not working in this mode we not have any change.
Russ Mathis
@RussMathis
Sep 04 2015 16:38
In my testing it seems the ESP runs well with the radio turned off at 17mA. Have you been able to get a low power usage than that? I'm trying to get it to run from a small coin sized battery:)
Markus
@Links2004
Sep 04 2015 16:42
only deepSleep get less but not running then, ~15mA is the less i achieved (no LDO, no USB / serial ) only a lipo 3,7V akku direct to the ESP. the basic run mode then where: boot do some sensor reads send it goto deepSleep and then again :)
Russ Mathis
@RussMathis
Sep 04 2015 16:43
cool, and do you have a onewire adc you suggest?
Markus
@Links2004
Sep 04 2015 16:44
i use a DS2450 it have 4 ADC channels
Russ Mathis
@RussMathis
Sep 04 2015 16:44
Thank you! I'll check it out. :+1:
Markus
@Links2004
Sep 04 2015 16:45
in 16Bit mode it gets a bit unstable but if you callculate it down to 12Bit its really stable
Russ Mathis
@RussMathis
Sep 04 2015 16:45
gotcha! thanks! checking on it now... :)
xbary
@xbary
Sep 04 2015 23:52
My ESP01 and 4053.... alt
:)