Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
of the 1$ ones?
Stavros Korokithakis
ok, i ll look for you in 1 month or so
Stavros Korokithakis
haha yep
apprently the quality of the stabilisation on those cheap ones leaves a lot to be desired, etc
john lee from expressif told us once that they have an idea and will come up with some sort of mains power solution
but haven t seen anything yet
Martin Ayotte
But that is true for almost any thing from China : a year ago, I've received Wall-PSUs with barrel, one of them had a solder blob inside touching the AC, when I've plug it, 120VAC across OlimexBoard and USB hub, both gave smoke. Fortunately, my PC itself been undamaged, protected by this USB Hub.
glad your pc is ok
that was the mention
Martin Ayotte
Yes ! now, I'm testing any unit that is connected to AC to make sure there is no AC on the DC side.
Stavros Korokithakis
i should start doing that too, good call
no idea if they are half decent...
Lars Englund
@tzapu reviews of some cheap power supplies can be found here http://www.lygte-info.dk/info/indexUSB%20UK.html
wow @larsenglund thank you very much
Holger Lembke
tach auch.
Is there something to generate a stable 32k frequenz? ticker-lib does not give more than ms... and digging in the source lead to not much... any idea?
Me No Dev
have you tried the other timer?
what is the duty cycle that you want to acheave
Holger Lembke
50% is ok
I have tried to upload a image(2MB) to twitter, it takes 260 sec(timeout is 270sec) with client.write(buff, size).
Helio Machado
Hi, I'm trying to use WiFi.disconnect() to clear previously stored WiFi connection parameters, but the ESP crashes when I call this method, any idea why this happens?
anyone doing the new rtos? I'm about to move all my code over
Michael Miller
@physiii Why?
Regarding the WiFi.disconnect() crash, when I call this method, this is the crash log I'm seeing:

Exception (3):
epc1=0x4000deed epc2=0x00000000 epc3=0x00000000 excvaddr=0x40000014 depc=0x00000000

ctx: cont
sp: 3fff5a10 end: 3fff5cd0 offset: 01a0

3fff5bb0: 4010623e 3fffb2ac 000000ff 00000000
3fff5bc0: 40235be9 3fffb36c 00000484 00000000
3fff5bd0: 3fffb42c 3fff5c81 00000001 40235d3c
3fff5be0: 3fff5c20 3fffb36c 00000009 3fff4ca0
3fff5bf0: 3fff5c40 3ffffed0 3fffb36c 00000009
3fff5c00: 40235d78 3fff5d18 00000000 40214c65
3fff5c10: 402088ec 3fff40dc 3fff4cb0 3fff5d18
3fff5c20: 00000000 00000000 40211828 39ff4cb0
3fff5c30: 3fff4000 00000001 3ffe903d 40214a60
3fff5c40: 00000000 00000006 3ffe8eee 3fff4ca0
3fff5c50: 00000009 00000001 3fff5d18 40211fc9
3fff5c60: 3ffe903c 00000009 3fff5d18 40214cc3
3fff5c70: 3ffe8ee8 3fff38fc 3fff5d18 40214b38
3fff5c80: 00000009 3fff38dc 3fff5d18 40214cf5
3fff5c90: 3fff385c 3fff38dc 3fff5d18 402079d3
3fff5ca0: 00000000 00000000 00000001 3fff4ca0
3fff5cb0: 3fffdad0 00000000 3fff4c98 40211874
3fff5cc0: feefeffe feefeffe 3fff4cb0 40100958

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42

Any idea why?
Should I close active connections first?
This message was deleted
Lars Englund

What is the best practice / simplest way of enabling and disabling debug printouts? Currently I use

#define DEBUG_PRINT(x) Serial.print(x)
#define DEBUG_PRINTLN(x) Serial.println(x)
#define DEBUG_PRINTF(x, ...) Serial.printf(x, ...)

and then just empty-define them when I want to turn off debug printouts...

there s something in the documentation of the core that would let you enable /disable debug using the arduino ide tools menu
if that helps
Lars Englund
@tzapu thanks!
Hmm.. is this related to me just updating to arduino 1.6.8 and esp 2.2.0?
In file included from D:\bitbucket\exxact\Firmware\EDWD\EDWD.ino:11:0:

C:\Users\englund\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.2.0\cores\esp8266/Arduino.h:42:14: error: expected identifier before numeric constant

 #define HIGH 0x1

after that follows alot of errors about the expansion of the macro HIGH..
The wifi scan example compiles just fine
@larsenglund no probs, don t know about the other thing..
Lars Englund
Apparently an update to the Keypad library did a #define CLOSED HIGH in Keypad.h which seemed to be the source of the problem. Redefining it to #define BTN_CLOSED HIGH made the errors go away..
It was colliding with a definition of CLOSED in some WiFi stuff..
Helio Machado
@all the Benoit Blanchon ArduinoJson users: Only a question:
File configFile = SPIFFS.open("/config.json", "r");
  size_t size = configFile.size();
  std::unique_ptr<char[]> buf(new char[size]);
  StaticJsonBuffer<200> jsonBuffer;
  JsonObject& root = jsonBuffer.parseObject(buf.get());
    bool a = root["a"];
  bool b = root["b"];
  Serial.print("A: ");
  Serial.print("B: ");
config.json contents:
{"a": false, "b": true}