These are chat archives for esp8266/Arduino

14th
Dec 2015
Chris Elsworth
@celsworth
Dec 14 2015 00:00
on another note, I'm starting to dip my toe into native sdk coding a little, and every time I do I have newfound appreciation for how simple arduino core makes all this :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:01
sounds like i should steer clear from the native sdk, huh
Chris Elsworth
@celsworth
Dec 14 2015 00:01
setting a pin to do pwm, one line of easy code in arduino, and I haven't yet worked out how to do it in native sdk after 15 minutes of looking at sdk docs
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:01
wow
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:07
do the pullup resistors for the bare esp need to be 10k, or can i use 3.5k?
Sven Eliasson
@comino
Dec 14 2015 00:08
you can
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:08
will it affect anything?
Sven Eliasson
@comino
Dec 14 2015 00:08
more power consumption
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:08
ah, thanks
Sven Eliasson
@comino
Dec 14 2015 00:08
and maybe slower flanks for the esp
(high -> low)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:09
hmm i see
that should be fine
Chris Elsworth
@celsworth
Dec 14 2015 00:49
ok, PWM seems to max out at around 50kHz, so I guess its quite a bit more limited than bit banging
even at 50Khz its getting pretty shakey on the scope, not very stable
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:50
that's odd
try bitbanging and see if it's better?
Chris Elsworth
@celsworth
Dec 14 2015 00:50
ok
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:50
that's surprising, though
Chris Elsworth
@celsworth
Dec 14 2015 00:50
all I'm doing atm is analogWriteFreq(50000); analogWrite(2, 512); then watching the result :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:51
makes sense
Chris Elsworth
@celsworth
Dec 14 2015 00:51
at 20000 its very stable, even though its sending 22kHz according to the scope hardware counter O_o
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:52
that's very odd
are you sure you didn't just mistype 22000? :P
Chris Elsworth
@celsworth
Dec 14 2015 00:52
very sure :)
I'll try it at 22000 actually :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:53
huh, weird
yeah, see what that says
Chris Elsworth
@celsworth
Dec 14 2015 00:53
that says 22.2kHz, how strange
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:53
hm
why are you analogWrite()ing 512?
Chris Elsworth
@celsworth
Dec 14 2015 00:54
to get a 50% duty cycle, just to make it easier to see on the scope
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:54
isn't it 0-255?
Chris Elsworth
@celsworth
Dec 14 2015 00:54
0-1023 according ot docs
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:54
ah, different from the arduino
Chris Elsworth
@celsworth
Dec 14 2015 00:55
it is working, I have a nice square wave displayed, jjsut the frequency isnt' all that accurate, especially at higher PWMs
1000 is pretty much bang on.. 996Hz
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:56
maybe this is related? esp8266/Arduino#836
odd how the frequency is sometimes higher and sometimes lower
Chris Elsworth
@celsworth
Dec 14 2015 00:57
you might be able to see it on logic analyzer too
going down to 200Hz..
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:57
i'll give it a shot when i set it up, i have things set up differently now :/
Chris Elsworth
@celsworth
Dec 14 2015 00:58
199.7Hz, thats getting quite good now. I think its probably just interrupt limitations
could try bitbanging but can't keep that up for long or the chip will jsut reset :/
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:59
how long do you want to do it for?
Chris Elsworth
@celsworth
Dec 14 2015 00:59
basically permanently, I need a permanent output voltage at a level of my choosing
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:59
ah hm
Chris Elsworth
@celsworth
Dec 14 2015 00:59
I have a motorised ball valve on order, and it takes a control input voltage of 0-10V to decide how "open" it is
I can op-amp up to 10V, thats no problem
Stavros Korokithakis
@skorokithakis
Dec 14 2015 00:59
hmm, right
Chris Elsworth
@celsworth
Dec 14 2015 00:59
its just generating a signal in the first place, I was going to PWM and then low-pass filter
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:00
yeah
Chris Elsworth
@celsworth
Dec 14 2015 01:00
1kHz will probably do, I need to do the maths to see how much ripple it will generate
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:00
if the frequency is too high, i think the pwm wouldn't be able to keep the watchdog happy
that's probably why it's not going as high as bitbanging
Chris Elsworth
@celsworth
Dec 14 2015 01:00
but since its driving a motor I don't want much ripple, or the motor will permanently be trying to move, not good
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:00
yeah :/
Chris Elsworth
@celsworth
Dec 14 2015 01:01
apologies @all for offtopic :)
kinda gone into electronics ;)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:01
ouch, that notification to 219 people isn't going to be popular :P
Chris Elsworth
@celsworth
Dec 14 2015 01:01
oops, does that really do that
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:01
i'm not 100% sure, it does on slack
i assume it notifies people somehow here too
Chris Elsworth
@celsworth
Dec 14 2015 01:02
hmm apparently "ALL" is actually a github user, hover over it :)
oh well, maybe he'll come to arduino ;)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:02
oh haha
Chris Elsworth
@celsworth
Dec 14 2015 01:07
did you do direct register manipulation for your bitbanging? I've seen that done, need to look it up, I think digitalWrite() won't get near 1MHz :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:07
i just did digitalWrite
Chris Elsworth
@celsworth
Dec 14 2015 01:07
oh ok
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:07
i only tried a 26ns cycle, though
i just know that the cpu latency was 1 ns
well, the processing latency in general
Chris Elsworth
@celsworth
Dec 14 2015 01:26
well, I got an approx 560kHz PWM out of the esp by bit-banging, but as we said, its really not sustainable ;)
can't do it for long or the wdt will get upset :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:26
ah, huh, very interesting
weeeeeell
you could yield every half second or something
i'm sure the downstream circuit wouldn't even notice
Chris Elsworth
@celsworth
Dec 14 2015 01:27
that might be worth a try, actually
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:27
hell, even every 50ms wouldn't be noticeable
just have a loop that loops 50k times inside a while(1)
and yield after the inner loop
Chris Elsworth
@celsworth
Dec 14 2015 01:31
https://i.imgur.com/zBRG8u3.png if you're interested :)
its not a very stable pwm though, that first peak is longer than the other 3
and that was just a loop of:
GPOS = ( 1 << 2);
delayMicroseconds(1);
GPOC = (1 << 2);
without the delay, the scope didn't even see it so I'm not sure it even happened? :/
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:33
oh wow, nice scope
what is it?
Chris Elsworth
@celsworth
Dec 14 2015 01:33
Rigol 1054Z
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:33
very nice
hmm, too bad about the instability
Chris Elsworth
@celsworth
Dec 14 2015 01:34
its the main reason I didn't spend loads on an analyzer actually, I figured I'd treat myself to a nice scope as they're more usefully generally for electronics, and then save up for an analyzer if I really need a good one alter
the cheap LA suffices for now :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:34
yeah, good call, that analyzer looks great
Chris Elsworth
@celsworth
Dec 14 2015 01:36
oh wow, I caught them without a delay now :)
okay, now I'm quite impressed at this little chip: https://i.imgur.com/Nr8806O.png
its not exactly a very stable square wave, but 11MHz flipping a gpio on and off
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:38
yeah, jeez
Chris Elsworth
@celsworth
Dec 14 2015 01:38
anyway thats enough playing around I think, I should possibly do something productive :D
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:38
it should be great for what you need it, no?
haha
who needs productivity
Chris Elsworth
@celsworth
Dec 14 2015 01:39
yeah if I can keep up 11MHz then there will be no noticeable ripple after a filter I guess :)
just have to work out how to let the wifi have its day in the sun too ;)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:40
hmm, that'll be harder
sending and receiving packets will need a much longer pause
Stavros Korokithakis
@skorokithakis
Dec 14 2015 01:46
hmm, what kind of power usage am i looking at with an ESP at deep sleep?
Chris Elsworth
@celsworth
Dec 14 2015 02:01
micro-amps
I can't remember how many exactly though :/
it is actually on my list to test that, I have a coulomb counter breakout board here
but others have and its been posted
brutzler
@brutzler
Dec 14 2015 03:24

good mornig.
using the sntp_example just guessing how to get the actual hour/min/sec from the time function.

  time_t now = time(nullptr);
  Serial.println(ctime(&now));
  >>>>> Serial.println(hour(now));

ctime() is working fine, but the marked line makes errors on compiling. Have seen the hour() here: http://playground.arduino.cc/code/time
Is the time.c on esp different?

no hour() there
best bet might be localtime() which returns a struct tm which you can then access tm_hour in
I'm guessing as I've never used this, but probably localtime(time(NULL))->tm_hour
Chris Elsworth
@celsworth
Dec 14 2015 03:34
    time_t now = time(NULL);
    struct tm *tmp = localtime(&now);
    tmp->tm_hour;
well that compiles ;)
the last line will get you the hour as an integer
brutzler
@brutzler
Dec 14 2015 03:34
OK, esp-time.c is different.
Chris Elsworth
@celsworth
Dec 14 2015 03:34
yeah, it needs more methods adding for full arduino compatibility
brutzler
@brutzler
Dec 14 2015 03:34
Oh thx for the code. just playing around for myself with less effort.
you get this compiled? me not :-(
Chris Elsworth
@celsworth
Dec 14 2015 03:36
yeah, after including time.h that last one I pasted compiles
I didn't try running it though
brutzler
@brutzler
Dec 14 2015 03:37
get an error if I want to print the hour:
  Serial.println(tm_hour);
Chris Elsworth
@celsworth
Dec 14 2015 03:38
its in the struct, so you have to dereference it, like tmp->tm_hour (assuming the struct is called tmp and is a pointer)
brutzler
@brutzler
Dec 14 2015 03:40

ok. thats getting me back a "4" as expected:

  Serial.println(tmp->tm_hour);

hard stuff for a c-newbie......

Chris Elsworth
@celsworth
Dec 14 2015 03:40
you got it :)
yes this is probably a bit beyond the scope of what most people would expect to do in Arduino code
it would probably make sense to get hour() and so on added
brutzler
@brutzler
Dec 14 2015 03:41
true words
what for do i need your third line?
tmp->tm_hour;
Chris Elsworth
@celsworth
Dec 14 2015 03:41
Nothing, that was jsut demonstrating how to access the hour - which you have now done in your Serial.println
the other interesting ones are tm_min and tm_sec
brutzler
@brutzler
Dec 14 2015 03:42
now sounds logic for me.
is there more tm_???
Chris Elsworth
@celsworth
Dec 14 2015 03:43
yeah, let me find a list
brutzler
@brutzler
Dec 14 2015 03:43
tm_day??? or so
tm_mday is day of the month
brutzler
@brutzler
Dec 14 2015 03:45
thx helps me a lot :+1:
Chris Elsworth
@celsworth
Dec 14 2015 03:45
no problem :D
brutzler
@brutzler
Dec 14 2015 03:46
using the ctime() gets me back a string like this: Mon Dec 14 04:45:55 2015
can the text "Dec" be changed to local name?
Chris Elsworth
@celsworth
Dec 14 2015 03:47
not that I can see, it seems to call sntp_asctime, not sure what that is
some other library, I guess
and the english names are coded in there
brutzler
@brutzler
Dec 14 2015 03:49
and the struct tm is a predefined structure in C, right?
Chris Elsworth
@celsworth
Dec 14 2015 03:49
yep
brutzler
@brutzler
Dec 14 2015 03:50
Ah see. If I want to have local names, then i only have to change the text in here.
And lose it on the next update..... :worried:
Chris Elsworth
@celsworth
Dec 14 2015 03:51
you could copy that sntp_asctime code into your local file, rename it slightly (my_sntp_asctime or something) and hten edit that, and call that instead
brutzler
@brutzler
Dec 14 2015 03:54
think its easier to define a static const char day_name[] for my own, and work with tm->tm_wday
Chris Elsworth
@celsworth
Dec 14 2015 03:55
yes, that would work too :)
brutzler
@brutzler
Dec 14 2015 03:57
think I got it. Thx for your help.
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 11:19
what does it mean if a red light is keep blibking on my nodemcu esp-12
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 11:24
does it means that it's in ota mode
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 11:44
sorry guys what is the board password when i try to upload a sketch using OTA it keep asking for a boardpassword
ok arduino 1.6.6 is the reason for that
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 11:51
@me-no-dev when i try to upload a sketch a get this error
Authenticating...FAIL
upload a sketch using OTA
beikeland
@beikeland
Dec 14 2015 11:53
the password would be defined in the sketch you're already running? presume you uploaded something with serial first?
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 11:54
no for the password i was using arduino 1.6.6 ide in this version they change the OTA handling to SSH which is not possible with the ESP.
so i had to use the 1.6.5 ide and i dont get the board password anymore
but now if i try to upload sketch it keep sending this error Authenticating...FAIL
beikeland
@beikeland
Dec 14 2015 12:03
Does the sketch you have running set the lines that are commented out in the example?
// No authentication by default
// ArduinoOTA.setPassword((const char *)"123");
Me No Dev
@me-no-dev
Dec 14 2015 12:04
@Hassanbenlebsir paste the command that the IDE executes to upload the sketch
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:04
yes they are commented
Me No Dev
@me-no-dev
Dec 14 2015 12:04
to see that you need to enable upload debug in IDE Settings
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:05
error: Failed to open 10.0.0.149
error: espcomm_open failed
Me No Dev
@me-no-dev
Dec 14 2015 12:06
that is the result of the command
I need the command. Make sure upload debug is enabled
oh....
your board is not visible from the IDE
did you add the ota_fix stuff?
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:07
im using the nodemcu 0.9 esp12 and the probleme is there is no OTA in upload choices there is only serial
yes i did
Me No Dev
@me-no-dev
Dec 14 2015 12:08
something is not ok in your config/core
have you selected Generic board
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:09
no i've selected nodemcu 0.9
Me No Dev
@me-no-dev
Dec 14 2015 12:09
use generic board, dio flash, OTA, nodemcu reset, 4M+X SPIFFS
the OTA upload option will be remove once the IDE support request is merged upstream
beikeland
@beikeland
Dec 14 2015 12:11
ota_fix? does it fix ports not showing in the ide?
Me No Dev
@me-no-dev
Dec 14 2015 12:11
port is shown but wrong programmer option is selected
so it's trying to execute esptool as opposed to espota.py
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:12
i already used the generic board and it working fine i can upload using OTA but why can't i do it with nodemcu 0.9 because when i do it with generic board i can't use the leds that are on the nodemcu
Me No Dev
@me-no-dev
Dec 14 2015 12:13
OTA is not added to nodemcu because it's in alpha/beta/some-greek-letter phase.
beikeland
@beikeland
Dec 14 2015 12:14
that should just be at matter of adding the pin definitions for the nodemcu?
https://github.com/esp8266/Arduino/issues/584#issuecomment-123715951
Me No Dev
@me-no-dev
Dec 14 2015 12:14
LEDS can be used if you know the GPIO they live at
beikeland
@beikeland
Dec 14 2015 12:15
Then you can still use D4 or whatever as pr nodemcu and still use the generic board in the ide i would think.
Me No Dev
@me-no-dev
Dec 14 2015 12:15
@beikeland corect
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 12:16
i mean the buid in led on the nodemcu pinMode(BUILTIN_LED, OUTPUT);
Me No Dev
@me-no-dev
Dec 14 2015 12:16
static const uint8_t BUILTIN_LED = 16;
any tips on how to fix the eps's not showing up as ports in the ide at all? I've re-installed java and ide. verified dns-sd -B _arduino._tcp shows my boards, but nothing in the ide
Markus
@Links2004
Dec 14 2015 12:20
@beikeland what version of the IDE do you use?
beikeland
@beikeland
Dec 14 2015 12:20
1.6.5.r5
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)
Markus
@Links2004
Dec 14 2015 12:21
try the 1.6.5 release not the r5
Me No Dev
@me-no-dev
Dec 14 2015 12:21
WiFiServer ota_fix(8266);
void setup(){
  ...
  ota_fix.begin();
}

void loop(){
  if(ota_fix.hasClient()) ota_fix.available().stop();
  ...
}
hae you added this?
beikeland
@beikeland
Dec 14 2015 12:22
@Links2004 will do, thanks
beikeland
@beikeland
Dec 14 2015 12:23
lol, thanks, i tried just cutting -r5 from the download when i couldnt find a link to it
Me No Dev
@me-no-dev
Dec 14 2015 12:26
@Links2004 you mind adding the "fix" to the example until we have PR4107 merged?
Markus
@Links2004
Dec 14 2015 12:27
it ok, when it not break the 1.6.5. may add a command with link to the PR4107, then its clear for every one why its there.
erizet
@erizet
Dec 14 2015 12:32
I've upgraded my arduino environment using the "board manager". My question is if the examples it then upgraded as well?
beikeland
@beikeland
Dec 14 2015 12:32
Seems to be the same with 1.6.5 (no r5). Does the esp8266 version 2.0.0 matter, or should i revert to 1.6.5-947-g39819f0 ?
Mario Mikočević
@mozgy
Dec 14 2015 12:32
yes for arduino related examples
Markus
@Links2004
Dec 14 2015 12:37
@beikeland the esp8266 version 2.0.0 shut work with OTA on 1.6.5
beikeland
@beikeland
Dec 14 2015 12:38
it works, just not from the ide
but having been pointed to command line building its not a big deal to build and flash ota from the command line using a little batch magic. at this point I'm mostly curious as to what breaks it in the ide
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 13:03
guys i finiched a project and i'm thinking how to power up my esp i dont want to use cables so what do you think is the best way?
Me No Dev
@me-no-dev
Dec 14 2015 13:12
@Hassanbenlebsir battery?
beikeland
@beikeland
Dec 14 2015 13:13
if its a nodemcu board, the easiest is to use a usb battery/power-pack. but don't expect it to run for extremely long unless you add powersaving/sleeping.
Think mine ran for 4-5 days on a 10000mAh battery pack, that may not have been fully charged ,very unscientific experiment indeed.
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 13:19
@beikeland can you send a link for a usb battery/power-pack
beikeland
@beikeland
Dec 14 2015 13:26
i used this; you can probably find unbranded stuff cheaper, or better deals on xiaomi if you shop around. But i find those to be a good compromise between cost and actual capacity when they're on offer. http://www.banggood.com/Original-XIAOMI-5V-2A-10400mAh-Power-Bank-For-Smartphone-p-923637.html
(there is a lot of cheap Chinese stuff available, but you can end up getting as little as 10-20% of the advertised capacity as they use old rescycled laptop batteries and sell as new..:/)
Me No Dev
@me-no-dev
Dec 14 2015 13:50
I have a bare module here with no leds and all 10K pullups and i measure 82mA @ 3.3V consumption with WiFi full on (AP+STA NO_SLEEP)
based on the technology you use to get the battery to 3.3V is the amount of "wasted" extra power that will be drawn.
I use a buck up/down to 3.3V straight from the LiPO and it wastes almost nothing
which means that you can run about 12 hours on a 1000mAh LiPo
beikeland
@beikeland
Dec 14 2015 13:58
of course much more efficient, but it may be a little more complex as well.
Me No Dev
@me-no-dev
Dec 14 2015 14:23
NodeMCU on it's own running the same sketch draws another 230mW from 5V (500mW total)
that is lots wasted in the LDO and UART
Mario Mikočević
@mozgy
Dec 14 2015 14:40
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 14:43
what can i do to minimize because my project is a clock in system so people clocking at 8 a clock and clock out at 18h so between this time there is nothing been done
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 14:49
is there a way to let it sleep between this time?
Mario Mikočević
@mozgy
Dec 14 2015 14:50
yes and no
yes - it can sleep
no - it cannot the whole 08h-18h time
d-anders
@d-anders
Dec 14 2015 14:51
For long life you should power it down completely after it has not been used for a few mins. Then have a button or something to power it on to read the card
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 14:53
if i shut it down and start it again it will restart the whole code and that will mess up who clocked in and who clocked out because when someone clock in there is a boolean changing ti true so i need it to be true until the person clocks out
Chris Elsworth
@celsworth
Dec 14 2015 14:55
store it on spiffs/eeprom?
relying on ram being the same isn't a great idea, what if it crashes anwyay? you lost data
its not the most stable chip at the best of times, lets be honest ;)
Mario Mikočević
@mozgy
Dec 14 2015 14:57
store data in SPIFFS
hmm, need to update that .. :)
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 15:03
ok then i'll have to check that aswell
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 15:27
how to store a variable in eeprom?
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 15:30
thank youuuuuu
Mario Mikočević
@mozgy
Dec 14 2015 15:31
heh @celsworth was faster ..
;)
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 15:32
yeah really fast
Chris Elsworth
@celsworth
Dec 14 2015 15:32
I had a head start, I was already on the website looking at recent commits ;)
Mario Mikočević
@mozgy
Dec 14 2015 15:32
hehehe, exactly what I went for
Hassanbenlebsir
@Hassanbenlebsir
Dec 14 2015 15:32
i sent the message at 15:27 and he replied at the same time haha
Mario Mikočević
@mozgy
Dec 14 2015 15:33
@Hassanbenlebsir issues and commits are very informative reading
beikeland
@beikeland
Dec 14 2015 15:33
it would be easier to tell what you should focus on if you specified how long you need to run. 10 hr isnt a problem, if you can charge it after 10 hours. The nodemcu board will still draw a lot if current even if the esp sleeps; thats the downside of powering it from usb.
Stavros Korokithakis
@skorokithakis
Dec 14 2015 15:56
i need mine to run for years off a CR2032 battery, reckon that's possible?
it'll be in deep sleep the vast majority of time
Chris Elsworth
@celsworth
Dec 14 2015 16:03
at a guess.. no :)
225mAh typical in a CR2032
assuming the esp sleeps at 100uA, which isn't too far off the truth from what I remember, that would get you 2250 hours
if you never woke it up
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:04
hmm, that's only three months
does that include pullup resistor power usage etc?
Chris Elsworth
@celsworth
Dec 14 2015 16:04
and the unrealistic scenario of never waking it up, so really it'll be less
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:04
eh it'll only wake up for 30 seconds a few days
at most
Chris Elsworth
@celsworth
Dec 14 2015 16:04
if you left it awake a cr2032 would manage about an hour
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:05
it's a dash-like button, so you press it, it wakes up and sends an HTTP POST, and then goes back to sleep until pressed
Chris Elsworth
@celsworth
Dec 14 2015 16:05
max sleep time is 59 minutes I think (32bit microsecond counter)
oh right, infinite sleep, yeah
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:05
i'll just do infinite, yeah
and pulse reset when the button is pressed
Chris Elsworth
@celsworth
Dec 14 2015 16:06
I think realistically you might get a month if its sleeping nearly 100% of the time
I should hook up my coulomb counter and see what it reports for sleeping esp, and then I can try messing with pullups to see the impact :)
very accurate for low currents
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:07
oh interesting
how does the amazon dash button manage years?
Chris Elsworth
@celsworth
Dec 14 2015 16:07
is it a cr2032 as well? I guess it uses something more efficient for sleeping
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:08
it is, afaik
oh no, sorry
Chris Elsworth
@celsworth
Dec 14 2015 16:08
ah, so probably more like 1000mAh
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:08
i guess i have enough space for a AAA
plus those can be more easily changed
hmmm
Chris Elsworth
@celsworth
Dec 14 2015 16:10
a good AAA is about 1000 or more, so that would get you up to a year maybe :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:11
that's more than enough
great
all i need to do is get off my ass and hook the esp up
Mario Mikočević
@mozgy
Dec 14 2015 16:12
I use LiFePO4 sized as AA
Chris Elsworth
@celsworth
Dec 14 2015 16:12
I have some of those sat ina drawer to try out
I think they'll work with no regulator?
Mario Mikočević
@mozgy
Dec 14 2015 16:12
voltage directly
yes
Chris Elsworth
@celsworth
Dec 14 2015 16:12
which will be good for power consumption
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:12
i'm not sure i have any of those
Mario Mikočević
@mozgy
Dec 14 2015 16:12
I posted a graph
Chris Elsworth
@celsworth
Dec 14 2015 16:15
I have one here I can measure
Mario Mikočević
@mozgy
Dec 14 2015 16:15
one of mine 14500 (AA size) bats worked for two and a half weeks
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:15
@Hassanbenlebsir no
it's 49mm, the box is 45
Mario Mikočević
@mozgy
Dec 14 2015 16:15
second one is now over three weeks and still going, voltage is atm 3.2V tho
Chris Elsworth
@celsworth
Dec 14 2015 16:16
very nice mozgy :)
voltage isn't much indicator on lifepo4 though is it, they hang onto 3.2v for ages then suddenly drop off a cliff very quickly :/
Sven Eliasson
@comino
Dec 14 2015 16:39
Is there any tool/lib to readout/debug the momory map?
Sven Eliasson
@comino
Dec 14 2015 16:48
ohh .. and my ESP32 just arrived <3 <3
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:48
ooh
Chris Elsworth
@celsworth
Dec 14 2015 16:48
awesome :D
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:48
wait, you didn't have one?
Chris Elsworth
@celsworth
Dec 14 2015 16:49
you have one too?
I must be the last :/
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:49
oh esp32
wait, they're out?
where did you order it from?
Chris Elsworth
@celsworth
Dec 14 2015 16:49
beta boards
Stavros Korokithakis
@skorokithakis
Dec 14 2015 16:49
awww
Chris Elsworth
@celsworth
Dec 14 2015 16:50
only 200 in existence
beikeland
@beikeland
Dec 14 2015 16:50
@comino not jealous at all.
hmm, maybe a little.
Chris Elsworth
@celsworth
Dec 14 2015 16:53
nice, ESP32 RTOS SDK reference released
Venkatesh
@itsjustvenky
Dec 14 2015 17:43
@comino Wow.. lucky guy to have ESP32 early
Stavros Korokithakis
@skorokithakis
Dec 14 2015 18:05
@comino what does it look like?
Sven Eliasson
@comino
Dec 14 2015 18:14
blob
Chris Elsworth
@celsworth
Dec 14 2015 18:16
hope it fits on breadboard with a row spare :)
Sven Eliasson
@comino
Dec 14 2015 18:17
blob
looks like they added some more caps ;)
Venkatesh
@itsjustvenky
Dec 14 2015 18:19
@comino I think it has only 512K flash ...?
Markus
@Links2004
Dec 14 2015 18:19
looks like thy also add some input protection, many diodes.
Venkatesh
@itsjustvenky
Dec 14 2015 18:20
5v tolerant ?
Markus
@Links2004
Dec 14 2015 18:21
have no info about that,
unfortunately I missed the change to get one.
Sven Eliasson
@comino
Dec 14 2015 18:21
I dont want to test if they are 5V tollerant :D
Chris Elsworth
@celsworth
Dec 14 2015 18:22
512k? really? surely they're not going ot make that mistake again after so much experience with esp8266
Venkatesh
@itsjustvenky
Dec 14 2015 18:22
this is just a test board
Markus
@Links2004
Dec 14 2015 18:22
@comino what is the marking on the flash chip?
hard to read the numbers on flash
Venkatesh
@itsjustvenky
Dec 14 2015 18:23
the question is : can both Wifi and BLUE used at the same time
Mario Mikočević
@mozgy
Dec 14 2015 18:23
they answered that - no
Sven Eliasson
@comino
Dec 14 2015 18:23
there is nothing about bluetooth in the sdk :/
Markus
@Links2004
Dec 14 2015 18:23
then ist 4MB this is good :)
Mario Mikočević
@mozgy
Dec 14 2015 18:24
Q32 is 4MiB
Chris Elsworth
@celsworth
Dec 14 2015 18:24
thank goodness :)
Sven Eliasson
@comino
Dec 14 2015 18:24
4MB is still quite low :/
Chris Elsworth
@celsworth
Dec 14 2015 18:24
yeah, but at least OTA has a chance to work ;)
Mario Mikočević
@mozgy
Dec 14 2015 18:24
not really
Chris Elsworth
@celsworth
Dec 14 2015 18:25
I'm more concerned with the ram really
Markus
@Links2004
Dec 14 2015 18:25
4MB is the limit for the ESP8266 hope they change this.
Mario Mikočević
@mozgy
Dec 14 2015 18:25
z80 had 64k :)
Sven Eliasson
@comino
Dec 14 2015 18:25
:D
Markus
@Links2004
Dec 14 2015 18:25
have here some 32MB chip
Chris Elsworth
@celsworth
Dec 14 2015 18:25
esp32 still only 2k iram?
or dram, rather, whichever one is 2k ;)
Sven Eliasson
@comino
Dec 14 2015 18:25
the WROOM-02 already had 4MB and I would like to have more :/
Mario Mikočević
@mozgy
Dec 14 2015 18:25
I've soldered one esp-01 with 8MiB
Sven Eliasson
@comino
Dec 14 2015 18:25
embedded http server needs it
Venkatesh
@itsjustvenky
Dec 14 2015 18:26
yup
Markus
@Links2004
Dec 14 2015 18:26
@mozgy but you can only us 4MiB of it.
Venkatesh
@itsjustvenky
Dec 14 2015 18:26
hey what is the difference between Wroom 2 and ESP-12E.. their schematic looks same.. is it just packaging ?
Mario Mikočević
@mozgy
Dec 14 2015 18:26
yes, I can only use 4MiB
Sven Eliasson
@comino
Dec 14 2015 18:26
did someone start a esp32 fork for the arduino ?
Chris Elsworth
@celsworth
Dec 14 2015 18:27
igrr has something already I think, don't think public though
Sven Eliasson
@comino
Dec 14 2015 18:27
oh wait - its rtos only atm
Markus
@Links2004
Dec 14 2015 18:27
can you send my the linker files?
Venkatesh
@itsjustvenky
Dec 14 2015 18:28
it will be RTOS only
Sven Eliasson
@comino
Dec 14 2015 18:28
no non-rtos planned?
Venkatesh
@itsjustvenky
Dec 14 2015 18:28
nope
Markus
@Links2004
Dec 14 2015 18:28
i tried the official side and get blocked out...
thanks for the links.
Sven Eliasson
@comino
Dec 14 2015 18:30
I had the feeling that for the esp8266 they dont push RTOS version as much as the non-rtos .. and now just rtos?
Venkatesh
@itsjustvenky
Dec 14 2015 18:31
only smart.js uses RTOS.. as far as I know
Sven Eliasson
@comino
Dec 14 2015 18:31
I tried using it like 5 moth ago and it was pretty rough
month*
Venkatesh
@itsjustvenky
Dec 14 2015 18:32
yeah..
@comino how they choose 200 for ESP32 ?
Sven Eliasson
@comino
Dec 14 2015 18:35
@itsjustvenky size of your p....
Markus
@Links2004
Dec 14 2015 18:35
nice 144KB ram (doubled to the old)
and 128KB constant flash mirror vs 32KB
and 256KB irom0_1_seg what ever it is hopefully more ram, or internal flash.
Sven Eliasson
@comino
Dec 14 2015 18:35
...ocket
Had previously some contact with them since we buy the WROOM from them for a product
Chris Elsworth
@celsworth
Dec 14 2015 18:36
@Links2004 are you able to tell how much of the 144 is available for variables/functions?
all sounds very promising though, increases all round
Venkatesh
@itsjustvenky
Dec 14 2015 18:36
oh ok
Markus
@Links2004
Dec 14 2015 18:37
no the linker file not tell this ;)
only running sw can tell this.
Venkatesh
@itsjustvenky
Dec 14 2015 18:37
@comino one small question : How Wroom-2 is different from regular esp-12 boards ?
Sven Eliasson
@comino
Dec 14 2015 18:37
I heard the selection was pretty random apart from that
several month ago it was the only fcc/ce certified
Chris Elsworth
@celsworth
Dec 14 2015 18:37
I think it was random, as I got selected and I've done absolutely nothing in public with 8266
I just said can I have one and they said ok. pretty much.
Sven Eliasson
@comino
Dec 14 2015 18:38
lucky u ;)
Chris Elsworth
@celsworth
Dec 14 2015 18:38
and heard about people emailing with justifications of all the opensource stuff they've done on 8266 and then not getting selected.. so yeah random
Helio Machado
@crushedice2000
Dec 14 2015 18:38
@Links2004: I'm expecting until tomorrow (monday) when opens the hardware store to buy a better MOSFET
Chris Elsworth
@celsworth
Dec 14 2015 18:39
well.. its not here yet, but they said they're sending out in small batches so could be weeks
Helio Machado
@crushedice2000
Dec 14 2015 18:39
I temporarily made a ON/OFF switch instead of a PWM dimmer ;-)
Martin Ayotte
@martinayotte
Dec 14 2015 18:39
If it is the case, I hope that IGRR will get one, because otherwise his development will be slower.
Venkatesh
@itsjustvenky
Dec 14 2015 18:39
yeah.. he should get
Sven Eliasson
@comino
Dec 14 2015 18:39
I think he told sometime he will get one
If not I will share mine
Martin Ayotte
@martinayotte
Dec 14 2015 18:40
:-)
I'm supposed to get one too, according to John's feedback. I hope maybe today or in the next few days.
Mario Mikočević
@mozgy
Dec 14 2015 18:41
I've applied
Chris Elsworth
@celsworth
Dec 14 2015 18:41
while it was still open?
Mario Mikočević
@mozgy
Dec 14 2015 18:41
got rejected, something about shipping
Chris Elsworth
@celsworth
Dec 14 2015 18:41
which country?
Dmitry Kireev
@kireevco
Dec 14 2015 18:41
where do you apply?
Mario Mikočević
@mozgy
Dec 14 2015 18:41
yeh, sent e-mail the very first day
Venkatesh
@itsjustvenky
Dec 14 2015 18:41
oh
Mario Mikočević
@mozgy
Dec 14 2015 18:41
<-- Croatia
Venkatesh
@itsjustvenky
Dec 14 2015 18:42
email to Teo Swee ?
@espressif ?
Martin Ayotte
@martinayotte
Dec 14 2015 18:42
@Links2004, when you said "you missed the chance", do you mean that you didn't send mails to become Beta ?
Mario Mikočević
@mozgy
Dec 14 2015 18:43
@itsjustvenky not gonna make a fuss about it
Markus
@Links2004
Dec 14 2015 18:43
yes, the last news i read where a image posted from there first prototype.
Martin Ayotte
@martinayotte
Dec 14 2015 18:44
I hope someone will share one with you
Markus
@Links2004
Dec 14 2015 18:48
looking really nice:
ESP32
is ist really dual core?
Sven Eliasson
@comino
Dec 14 2015 18:49
yep
Venkatesh
@itsjustvenky
Dec 14 2015 18:50
is it like ESP internal things will run on one core and user program's on another core ?
Sven Eliasson
@comino
Dec 14 2015 18:50
but like 10% of that stuff is in the sdk :(
Chris Elsworth
@celsworth
Dec 14 2015 18:50
they seem to have held a lot of SDK stuff back for now :/
Sven Eliasson
@comino
Dec 14 2015 18:51
ESP32__RTOS_SDK_API Reference__v1.0.0.pdf
Martin Ayotte
@martinayotte
Dec 14 2015 18:54
Having a DualCore doesn't necessarily means that each cores are dedicated to tasks ...
Chris Elsworth
@celsworth
Dec 14 2015 18:54
hopefully it just means we don't have to yield() every 15ms...
Dmitry Kireev
@kireevco
Dec 14 2015 18:54
having dual core doesn't mean both of them will work:)
(fist couple of months)
Sven Eliasson
@comino
Dec 14 2015 18:55
Intel Edison has a dual core and its not working since 1 1/2 years :D
Dmitry Kireev
@kireevco
Dec 14 2015 18:55
lol.
but it's THERE
Sven Eliasson
@comino
Dec 14 2015 18:56
yeah and its looks nice on a poster
Venkatesh
@itsjustvenky
Dec 14 2015 18:56
oh
Markus
@Links2004
Dec 14 2015 18:57
lets hope they get one core for the network stuff, and one for IO / sketch
Sven Eliasson
@comino
Dec 14 2015 18:57
I assume thats the plan
Stavros Korokithakis
@skorokithakis
Dec 14 2015 19:37
does anyone know how much it costs?
Stavros Korokithakis
@skorokithakis
Dec 14 2015 19:42
also, on the nodemcu, can i use the gpios that are already pulled up, like GPIO0, GPIO15, etc?
or down, i guess
Martin Ayotte
@martinayotte
Dec 14 2015 20:02
Of course, it is supposed to be like other modules. I'm using GPIO2/GPIO0 for an I2C bus since months. All you need is to make sure they are at proper logic level during power up to get into Exec boot mode
Sven Eliasson
@comino
Dec 14 2015 20:23
@skorokithakis read in an article 'slightly more extensive' but even after asking them direct I didnt get any information about pricing. I expect something like double the 8266 price
Chris Elsworth
@celsworth
Dec 14 2015 21:15
I could swear I read somewhere that 8266 might get a pricecut when 32 is out, but I can't find it now
Venkatesh
@itsjustvenky
Dec 14 2015 21:15
it is already hinted.. and it will be next year
Chris Elsworth
@celsworth
Dec 14 2015 21:18
bare esp12 module is already like $2, I can't envision a huge cut from that :o but it'd be nice ;)
Venkatesh
@itsjustvenky
Dec 14 2015 21:18
yeah
beikeland
@beikeland
Dec 14 2015 21:18
Are we talking significant cut? I mean, a module at $1.78 with free shipping; how do you beat that?
Venkatesh
@itsjustvenky
Dec 14 2015 21:18
ESP8266X will be sold half the price..
Chris Elsworth
@celsworth
Dec 14 2015 21:19
really? :O
beikeland
@beikeland
Dec 14 2015 21:19
But how much of the 1.78 to 2 does the esp itself account for?
Venkatesh
@itsjustvenky
Dec 14 2015 21:19
yes only chip.. and its depends on the board manufacturer..
Chris Elsworth
@celsworth
Dec 14 2015 21:20
I'm not quite up to making my own esp12-e yet ;)
have to rely on the chinese a bit longer for that
Venkatesh
@itsjustvenky
Dec 14 2015 21:20
I buy here ESP-12E for 4$
bulk purchase is cheap
Chris Elsworth
@celsworth
Dec 14 2015 21:21
can't remember what mine were, I just got 10 from aliexpress and it will last me a while
beikeland
@beikeland
Dec 14 2015 21:21
i see aliexpress has them for 1.64 in 100; bare chips that is
Chris Elsworth
@celsworth
Dec 14 2015 21:21
and a couple of nodemcu for prototyping
Mario Mikočević
@mozgy
Dec 14 2015 21:22
I've recently bought 10x 12E, $2.78 piece
Venkatesh
@itsjustvenky
Dec 14 2015 21:22
NodeMCU boards is very good.. but expensive for me.. I should try to order from aliexpress
Mario Mikočević
@mozgy
Dec 14 2015 21:23
might dive into 12F or 12Q to test ..
Venkatesh
@itsjustvenky
Dec 14 2015 21:23
12Q ?
beikeland
@beikeland
Dec 14 2015 21:23
d1-mini from ali for $4 seems like a good deal. I have 4 on its way, should arrive any day
Chris Elsworth
@celsworth
Dec 14 2015 21:23
yeah nodemcu are like $10 or so, but they're a lot more convenient to stick on a breadboard and use the builtin usb
yeah, 12Q?
never seen that one
Mario Mikočević
@mozgy
Dec 14 2015 21:23
nodemcu are around $7 now
Venkatesh
@itsjustvenky
Dec 14 2015 21:24
i heard esp-13 and ESP-14
Mario Mikočević
@mozgy
Dec 14 2015 21:24
especially 0.9v
beikeland
@beikeland
Dec 14 2015 21:24
there are no nodemcu or derivatives with external antenna connectors right?
Mario Mikočević
@mozgy
Dec 14 2015 21:27
afaik no
Venkatesh
@itsjustvenky
Dec 14 2015 21:27
only ESP-07 has the option
beikeland
@beikeland
Dec 14 2015 21:29
yeah, maybe i'll have a go at transplanting an -07 onto one of the d1-minis to help assess the actual signal gain with antennas
Mario Mikočević
@mozgy
Dec 14 2015 21:30
thats on me todo list
even bought RF extender
Venkatesh
@itsjustvenky
Dec 14 2015 21:31
ESP-14 pin's doesn't make any sense to me..
Mario Mikočević
@mozgy
Dec 14 2015 21:31
thats esp+ one more mcu
Venkatesh
@itsjustvenky
Dec 14 2015 21:32
yup : STM8S003F3P6 Mcu
Martin Ayotte
@martinayotte
Dec 14 2015 21:41
About pricing, the ESP-12E is already at US$1.94 in single quantity on AliExpress
ESP-14 is pretty useless since they are no details about firmware present on both MCU, and the STM8 doesn't have much resources (8K Flash + 1K Ram)
Markus
@Links2004
Dec 14 2015 21:44
for pwm or bit banging its may useful, but the not present docu ist the biggest problem.
Martin Ayotte
@martinayotte
Dec 14 2015 21:52
in the mean time, adding an atmega328 is more powerful than this STM8, and very easy to use with arduino IDE. (Personally, I would use an STM32, which also work with arduino IDE, the stm32duino.com is also one of my favorites forums)
Chris Elsworth
@celsworth
Dec 14 2015 21:54
how do you integrate them? is the esp8266 just relegated to being a wifi modem via the at firmware again?
I think thats quite the waste of the 8266 :(
Markus
@Links2004
Dec 14 2015 21:55
yes, agree with you there, a STM32 or atmega where a better choice.
but a external processor make only sense when the ESP can not deliver the function.
like for bit banging a protocol, adc, some cases of pwm.
Chris Elsworth
@celsworth
Dec 14 2015 21:56
hm so perhaps useful for my software serial case :)
esp14 just seems too much of an unknown to risk though
Markus
@Links2004
Dec 14 2015 21:57
yes, but you will always need a link between ESP and sub mcu, the easiest one where serial ;)
yes, esp14 make no sense to me.
Chris Elsworth
@celsworth
Dec 14 2015 21:58
I like SPI, can be very fast?
I've only done a little with SPI, some external ADC and gpio expanders, but it seems quick once you get up to 10MHz signalling
so maybe SPI to a sub-mcu could work well
Markus
@Links2004
Dec 14 2015 21:59
yes but master/slave, is for some usecase a problem
Martin Ayotte
@martinayotte
Dec 14 2015 22:00
For ESP-14, we don't even know if it is serial, SPI or I2C link that is present, and I presume the ESP is only having the AT firmware in it.
Chris Elsworth
@celsworth
Dec 14 2015 22:01
yes, I'd guess so
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:28
has anyone used a regulator to power the esp? does it work well?
beikeland
@beikeland
Dec 14 2015 23:30
regulator? all the nodemcu boards do, breadboard power supplies do. with sufficient capacitor/filtering there shouldn't be an issue as long as it can deliver the recommended 250mA
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:30
oh, i guess that's true
i'll add a capacitor, thanks
would it have problems without one?
Chris Elsworth
@celsworth
Dec 14 2015 23:31
see the datasheet for your regulator
they are usually advised
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:31
it does advise a capacitor
Chris Elsworth
@celsworth
Dec 14 2015 23:31
yep, may get unpredictable results without one then
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:32
ah hm, thanks
although i just realized i'm going to be using a 3v battery to power the esp anyway, so i don't know why i asked :P
i think it's worth using a NodeMCU everywhere at this point, though
adding all the pullups and capacitors and regulators, you pretty much end up the size of a nodemcu anyway
Chris Elsworth
@celsworth
Dec 14 2015 23:33
nah, can get much smaller than the nodemcu :)
beikeland
@beikeland
Dec 14 2015 23:33
except where its battery powered as the regulator and serial bridge is a significant powerhog
look at the weemos d1-mini for a smaller nodemcu clone btw
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:33
@celsworth like how?
@beikeland hmm, let me have a look
Chris Elsworth
@celsworth
Dec 14 2015 23:34
well, hang on, let me show you the board I'm currently working on..
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:34
@beikeland that looks interesting, any downsides?
beikeland
@beikeland
Dec 14 2015 23:34
@skorokithakis don't know. havent received yet, but its nodemcu compatible in every sense as far as i know
@skorokithakis reason i ordered them was it alledgedly fits on a breadboard with room for wires as well
Chris Elsworth
@celsworth
Dec 14 2015 23:35
now I don't claim that this board is smaller than the nodemcu right next to it, but there's a lot more going on :)
https://www.icloud.com/sharedalbum/#B055oqs3qGcrNji;A1FCA709-323F-4F56-B1F9-8F7B222858EB
oh wow that link, sorry
beikeland
@beikeland
Dec 14 2015 23:35
... some like them long ;)
Chris Elsworth
@celsworth
Dec 14 2015 23:35
thats better
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:36
@beikeland the nodemcu fits as well, how much was the d1
Chris Elsworth
@celsworth
Dec 14 2015 23:36
only the top right of that is the actual esp.. regulator, cap, 10k pulls
the rest is all my own stuff :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:36
@celsworth no fair if you're designing your own pcb :P
us plebs have to make do with wires
Chris Elsworth
@celsworth
Dec 14 2015 23:36
it is my very first pcb, I am proud of it :)
still building it up, some chips yet to go on :)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:36
i should learn to design pcbs too, where did you learn?
Chris Elsworth
@celsworth
Dec 14 2015 23:36
taught myself to be honest, picked up eagle and played
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:36
also is it all through-hole?
oh, interesting, did you not get errors?
Chris Elsworth
@celsworth
Dec 14 2015 23:36
yeah apart from the esp-12 thats all through-hole
beikeland
@beikeland
Dec 14 2015 23:36
@skorokithakis nodemcu fits on the board, but it covers all the holes on a normal breadboard. i pad $4 each
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:37
@beikeland not the newer version
@beikeland where did you order yours from? the nodemcus are $6ish
beikeland
@beikeland
Dec 14 2015 23:38
@skorokithakis then the biggest difference is cost. I got the nodemcus off eBay, the d1-mini of aliexpress
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:39
hmm, $5.5 each
about the same as a nodemcu
beikeland
@beikeland
Dec 14 2015 23:41
@skorokithakis http://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266/32529101036.html
4$ free shipping whn buying 1. oddly they charge shipping when ordering more than one. easy to solve :P
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:41
@beikeland that's the one i saw, looks like they charge shipping for greece
still, pretty good deal
how do they get those tiny resistors soldered on the pcb?
beikeland
@beikeland
Dec 14 2015 23:42
a ma thi malakkas (or something like that..!)
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:43
haha
beikeland
@beikeland
Dec 14 2015 23:43
they're placed in a solder paste, placed by a robot with a needle using vaccum to hold them up, placed in the paste, and then the entire board is heated and the solder melts
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:44
oh
so, robots :P
then i shouldn't feel bad i can't solder things that small
does the place that made the PCB place the resistors as well?
beikeland
@beikeland
Dec 14 2015 23:45
can do it by hand, the components tend to align themselvs (due to surface tension) when the solder reflows. even chips with many pads align nicely.
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:45
ah
beikeland
@beikeland
Dec 14 2015 23:53
another advantge of the d1-mini is, in my eyes, it comes with seperate headers, male, female, and stackable - so you can choose
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:53
yeah, that's pretty nice as well
i bought some arduino nanos for less than $2 each, they also come without headers, but they're arduinos
and i paid way too much for a Particle Photon, which, knowing that the ESP8266 exists, I wouldn't have bothered with at all
beikeland
@beikeland
Dec 14 2015 23:55
haha, there are probably a few of us that regret that now. but with 128k ram its a much more capable chip.
Stavros Korokithakis
@skorokithakis
Dec 14 2015 23:56
yes, but i don't really have any need for it, and all the "cloud" stuff is just hitting me right in the privacy