These are chat archives for esp8266/Arduino

20th
Mar 2016
Stavros Korokithakis
@skorokithakis
Mar 20 2016 00:35
hey guys, quick question: if i #define FOO BAR, and then do char something[] = "FOOBAR", will that string compile as BARBAR?
Stavros Korokithakis
@skorokithakis
Mar 20 2016 00:43
ah, got it, never mind
Aditya Tannu
@AdySan
Mar 20 2016 15:31
Hmm, new board with LiPo charger on board
Kinda like the Adafruit Feathre Huzzah, not much cheaper really.
Also I suppose they have am LM1117 on there so deep sleep applications wouldnt really make a lot of sense
Martin Ayotte
@martinayotte
Mar 20 2016 15:35
I don't think they use LM1117, but probably SPX3819, as it seems that there are 2 sot-23-5, one of those is the LDO
Aditya Tannu
@AdySan
Mar 20 2016 15:36
ooh 90 uA
so this is a properly done LiPo board then!
Michael Miller
@Makuna
Mar 20 2016 16:02
@AdySan Do you know if the battery circuit is just a charger or does it support battery under voltage protection? So many of these are restrictive to batteries that have under charge protection. While some lipo flat packs have this built in, its much more rare in the 18650 format.
andig
@andig
Mar 20 2016 16:06
@igrr @me-no-dev did you get any chance on building on SDK1.5.2 with LWIP sources? I'd love to see if that allows diagnosis of the async server crashes I'm seeing. Unfortunately I'm stuck without your help- lack of skills :O
Aditya Tannu
@AdySan
Mar 20 2016 16:09
@Makuna not sure, even the vendor website doesn't mention anything. Maybe we can make an educated guess based on the photos.
d-anders
@d-anders
Mar 20 2016 16:20
hm, just updated to 1.6.8 and now i get Board nodemcuv2 (platform esp8266, package esp8266) is unknown
i updated and istalled version for esp8266 in boards manager
Martin Ayotte
@martinayotte
Mar 20 2016 16:26
@AdySan , @Makuna , the other SOT-23-5 is actually the LiPo charger, but from the picture, we can not figure out the part number. And the Link to Eagle Files from vendor is not actually a link.
Aditya Tannu
@AdySan
Mar 20 2016 16:28
Just look up that vendor name
I found the eagle files in their website.
On phone now, so cannot send link
d-anders
@d-anders
Mar 20 2016 16:28
is arduino ide 1.6.8 supposen to work with esp8266?
Aditya Tannu
@AdySan
Mar 20 2016 17:35
here’s the link to vendor’s website http://www.elecrow.com/esp8266-iot-board-p-1591.html
Michael Miller
@Makuna
Mar 20 2016 17:39
@d-anders not sure about 1.6.8 yet, I am still working out some issues on 1.6.7 for AVR that got introduced with it.
d-anders
@d-anders
Mar 20 2016 17:39
damn
i guess i should go back 1.6.5 then
Michael Miller
@Makuna
Mar 20 2016 17:40
1.6.7 worked fine with esp though, my problems are with avr
d-anders
@d-anders
Mar 20 2016 17:40
i read briefly on the esp8266 github page and got the impression 1.6.8 was finw
ok, ill try 1.6.7 later today then
Michael Miller
@Makuna
Mar 20 2016 17:41
what probem did you run into?
d-anders
@d-anders
Mar 20 2016 17:41
Board nodemcuv2 (platform esp8266, package esp8266) is unknown
Aditya Tannu
@AdySan
Mar 20 2016 17:42
looks like there are some commits mentioning 1.6.8 esp8266/Arduino@cf47b42
d-anders
@d-anders
Mar 20 2016 17:42
yeah, maybe i can loacte boards.txt or what it is called now and edit it
but i really dont want to, so i will try 1.6.7
i got some new nodemcu boards the other day so i thought i should put one to use and thought it would be a good time to update the esp8266 libs as well as the arduino ide
famous last words i guess :)
Michael Miller
@Makuna
Mar 20 2016 17:45
I found an code generation issue with AVR, haven't checked with esp to see if its a C++ general thing, but the use of const T& for parameter passing for types that 32bits or less (struct with 4 bytes in it) takes more code than just having it copy the parameter.
d-anders
@d-anders
Mar 20 2016 17:48
hm, some people claim 1.6.8 and esp 2.1 works together
i wonder why mine dont
Michael Miller
@Makuna
Mar 20 2016 17:48
uninstall the esp board support first, then upgrade?
d-anders
@d-anders
Mar 20 2016 17:49
yeah maybe
Michael Miller
@Makuna
Mar 20 2016 17:49
the ide has had issues in the past of not correctly removing previous boards
d-anders
@d-anders
Mar 20 2016 17:49
i installed 1.6.8, then unistalled 1.6.8 and installed it again
then i unistalled esp8266 support through boards manager and installed it agai
but nothing
maybe i should just uninstall everything at the same time
Michael Miller
@Makuna
Mar 20 2016 17:52
you can also manually check if it uninstalled the board by looking into the folder it places it
d-anders
@d-anders
Mar 20 2016 17:57
uninstalled everything (hopefully) and downloading 1.6.7 now
Michael Miller
@Makuna
Mar 20 2016 18:01
did you make sure it was removed from the drive? that was the old problem, it would leave bits, which could/did interfere with the installation or upgrade
d-anders
@d-anders
Mar 20 2016 18:02
no i didnt and it seems i must
still the same error
not sure what i have to delete though
this is a windows machine, it could save things in the registry, in the profile or in 10 other stupid places
bah, maybe i should go back to 1.6.5, hopefully it will work automagically then
Michael Miller
@Makuna
Mar 20 2016 18:21
I work on windows, it keeps everything in a few directories
C:\Users\<your user name on the machine>\AppData\Local\Arduino15
after uninstalling the boards and IDE, make sure this directory is deleted, then install IDE and get the board
I will be trying in a few minutes
d-anders
@d-anders
Mar 20 2016 19:13
tried it, still the samre error
(back to 1.6.8)
Michael Miller
@Makuna
Mar 20 2016 19:13
ok, just finished, I am running IDE 1.6.8, with the latest EspBoard and it compiles fine.
d-anders
@d-anders
Mar 20 2016 19:13
ngh
i unsi
Michael Miller
@Makuna
Mar 20 2016 19:14
I did uninstall the IDE, and then delete the directory above (which was left after the uninstalls)
d-anders
@d-anders
Mar 20 2016 19:14
uninstalled esp8266 through package manager, uninstalled arduino ide, deleted the folder and then reinstalled everything
arill
still the same error
will try one last time for today
Michael Miller
@Makuna
Mar 20 2016 19:15
did you ever change any paths globally?
d-anders
@d-anders
Mar 20 2016 19:15
hm, maybe
i can check
what paths are important?
to which files?
Michael Miller
@Makuna
Mar 20 2016 19:16
one of the issues I have with so many build tools, requirements for path change that can cause things to be found elsewhere rather than the one the IDE was looking for.
d-anders
@d-anders
Mar 20 2016 19:17
i will be cruel
and delete other things in a violent way, hang on
Michael Miller
@Makuna
Mar 20 2016 19:19
another thing to try first
d-anders
@d-anders
Mar 20 2016 19:20
can i in some way check which tool is generating the "Board generic (platform esp8266, package esp8266) is unknown" message?
Michael Miller
@Makuna
Mar 20 2016 19:20
delete whats in the temp directory, C:\Users\Michael\AppData\Local\Temp, I had an issue last year that some temp file wasn't be deleted and the compile kept using an old one
turn on verbose under preferences
p.s. IDE 1.5.8 has some issues, I am seeing red lines in the compile for AVR
but it still compiles?!
d-anders
@d-anders
Mar 20 2016 19:27
heh, nothing works
funny thing is that everything worked before i upgraded today
d-anders
@d-anders
Mar 20 2016 20:04
just installed the git version. guess what? still not working :)
Mario Mikočević
@mozgy
Mar 20 2016 20:04
1.6.8 + git works for me
d-anders
@d-anders
Mar 20 2016 20:05
oh my god, im dumb
i just tried creating a new project...
and it worked!
i was trying to compile the default one, didnt work
haha, and after that new project was compiled now the default one is compiling as well....
Mario Mikočević
@mozgy
Mar 20 2016 20:08
remove old files as Makuna said
d-anders
@d-anders
Mar 20 2016 20:08
i did
i deleted everything
but anyway, works now
Mario Mikočević
@mozgy
Mar 20 2016 20:09
splendid :)
d-anders
@d-anders
Mar 20 2016 20:09
the only "problem" is that i still do not know why it failed in the first place
d-anders
@d-anders
Mar 20 2016 20:20
hm, no ota when running 1.6.8?
Michael Miller
@Makuna
Mar 20 2016 20:22
Did you delete the temp files also? This is the sort of result you get when it thinks the old temp files are still good, but something fundamental has changed and requires a rebuild (but the IDE doesn't think its needed).
d-anders
@d-anders
Mar 20 2016 20:23
yeah, havent deleted them since i installed though
will try it
there should be a ota option for nodemcu1.0 in ide 1.6.8?
Me No Dev
@me-no-dev
Mar 20 2016 20:35
no need for that option
select the board network port and hit upload
it knows what to do
d-anders
@d-anders
Mar 20 2016 20:45
tried the basicota example. uploading using serial port is fine, but trying the network port i get "no respone from device"
not my mday i guess
d-anders
@d-anders
Mar 20 2016 20:59
on the serial port i get the start message, and then connect failed
d-anders
@d-anders
Mar 20 2016 21:39
pings perfectly but asolutely refuses to do ota
brutzler
@brutzler
Mar 20 2016 21:55
Hi,
does anybody know the reason, why GPIO16 (D0 on my NodeMCU) is not working with DS18B20? Using the next pin (GPIO5) all is working fine...
Michael Miller
@Makuna
Mar 20 2016 21:56
GPIO16 is a strange beast. Somewhere its documented about what works on it and what doesn't but in general its quirky.
brutzler
@brutzler
Mar 20 2016 22:01
I know, that interrupts can not be used with GPIO16, but I thought dallas should work on it.....
d-anders
@d-anders
Mar 20 2016 22:01
you need all pins?
brutzler
@brutzler
Mar 20 2016 22:03
I am very short with pins (I2C/serial connections...) And already have a pcb where GPIO16 is connected to the OneWire levelshifter
d-anders
@d-anders
Mar 20 2016 22:03
ah
what is the problem, doesnt boot or boots ok and all but the ds18b20 works?
brutzler
@brutzler
Mar 20 2016 22:04
prob is, that no devices are found :-(
I tried out of pcb, with another nodemcu, without levelshifter.....same prob: GPIO5 working; GPIO16 no devices located
d-anders
@d-anders
Mar 20 2016 22:08
are you connecting power to your ds18b20?
or running parasitic?
brutzler
@brutzler
Mar 20 2016 22:09
3 wire connection. but this shouldnt be the issue, cause its working with different pin
d-anders
@d-anders
Mar 20 2016 22:09
ah right
problem probably is with gpio16 beeing special: http://internetofhomethings.com/homethings/?m=20150424
brutzler
@brutzler
Mar 20 2016 22:13
This sounds not good for me:
Initially, I had planned to use GPIO16 for the DS18B20 one-wire interface. 
That would have physically routed all the pins used for the sensors on 
one side of the ESP8266. This would not work, however, since GPIO16 
can be used as an input or an output, but does not have the 
INPUT PULLUP, and  OUTPUT_OPEN_DRAIN capability of the 
other GPIO pins. That feature is needed for the one-wire interface.
d-anders
@d-anders
Mar 20 2016 22:14
yes, thats what i saw
brutzler
@brutzler
Mar 20 2016 22:15
f..ck :-(
Can the same pin be used for ds18B20 and DHT22 together?
d-anders
@d-anders
Mar 20 2016 22:17
is dht22 also onewire?
brutzler
@brutzler
Mar 20 2016 22:22
I know there is only one wire for data exchange. But is this "onewire"???
d-anders
@d-anders
Mar 20 2016 22:29
dont think so
brutzler
@brutzler
Mar 20 2016 22:30
no humidity needed. will change the dht to a ds18b20 and connect all dallas to the dht-pin.
d-anders
@d-anders
Mar 20 2016 22:32
ok - i give up. absolutely cant get ota to upload