These are chat archives for esp8266/Arduino

19th
Jan 2016
Martin Ayotte
@martinayotte
Jan 19 2016 02:12
Me No Dev
@me-no-dev
Jan 19 2016 02:33
@martinayotte I do not have account there, but will give you a gist to paste if you do not mind?
beikeland
@beikeland
Jan 19 2016 05:03
is it possible to upload the eprom data similar to spiffs?
tzapu
@tzapu
Jan 19 2016 06:25
@skorokithakis result, have not received them yet, looks like i ll need to clean some copper myself, under the antennae
12472241_1193004274093126_5227152027953649906_n.jpg
12541001_1193004310759789_362531196686105824_n.jpg
ah, no, there are 4 clean ones, i think those two with copper all over are samples
oh well, will take another pic when i get them
beikeland
@beikeland
Jan 19 2016 06:52
you know if its milled or etched?
tzapu
@tzapu
Jan 19 2016 06:57
milled
cnc milled it seems
i ve got 4 boards on the way and just now discovered only one esp12 left :))
beikeland
@beikeland
Jan 19 2016 07:12
@tzapu commercially or a friend? curious how prices and turnaround compares to the cheap etching houses
and lol; there is never enough electronics in the house, thats just a fact of life
tzapu
@tzapu
Jan 19 2016 07:13
comercially, about 1.2$ a board i think
but they are a far cry from what would come from something like dirtypcb s even
beikeland
@beikeland
Jan 19 2016 07:14
yeah, i get the lack of soldermask, thru plating etc, but
if the price is riht
tzapu
@tzapu
Jan 19 2016 07:14
and turn around, they are in the post now, made order sometime last week, i think on the 12th
will get them in a day or two
so 1.5 weeks it seems
beikeland
@beikeland
Jan 19 2016 07:14
where in the world to and from?
(if you dont mind me asking)
tzapu
@tzapu
Jan 19 2016 07:15
locally, romania to romania, but different towns
and cheapest postal service :P
beikeland
@beikeland
Jan 19 2016 07:15
carrier pigeon? :D
but still, it be pretty hard to get 4 boards made for $5 and in 1.5weeks so i guess it has its place hen
do you have a link to the service?
my cnc mill is out of order atm, could be a nice plan B while i get around to fixing it, for those one off things
tzapu
@tzapu
Jan 19 2016 07:18
just an email address and a local post on a forum
gravari.csl@gmail.com if you contact them , maybe you can work something out
beikeland
@beikeland
Jan 19 2016 07:20
speaking of cnc; @Links2004 heads up, i posted your VNC client youtube to linuxcnc IRC so if you see an influx of CNC enthusiasts looking to build VNC enabled DROs for the machines, my bad..
@tzapu thanks, i'll keep it in mind :)
Ivan Grokhotkov
@igrr
Jan 19 2016 07:23
i wonder if there is a VNC server library for Arduino somewhere...
probably that's less efficient than just an HTML GUI, but still.
beikeland
@beikeland
Jan 19 2016 07:26
maybe not if you don't have access to external servers for js/css.
Ivan Grokhotkov
@igrr
Jan 19 2016 07:27
you can serve js/css from file system, although it might take some time to load those...
beikeland
@beikeland
Jan 19 2016 07:28
yeah, i tested that briefly, took several seconds to serve up html + 6 external files.
maybe it'd improve usability if i took the time to handle If-Modified-Since in the incomming request and return a 304
but so many things and so little time :/
Ivan Grokhotkov
@igrr
Jan 19 2016 07:32
There's certainly some room for improvement. By handling requests asynchronously the transfer speed may be increased quite a bit (see me-no-dev's AsyncWebServer) and you can also use gzip-encoding to reduce the payload size.
But yeah, as you said, so many things to do...
tzapu
@tzapu
Jan 19 2016 07:32
but @igrr maybe i am loosing the plot, what would you do with a vnc server on esp?
beikeland
@beikeland
Jan 19 2016 07:33
i did gzip the supporting js/css, but i'll look into async server, combined with simple cache handling and 304 it could help quite a bit
Ivan Grokhotkov
@igrr
Jan 19 2016 07:33
pretty much the same as what you could do with a web server on the ESP — create a dashboard/GUI for some wifi-connected device
tzapu
@tzapu
Jan 19 2016 07:34
yeah, but since you are creating the guy, it just seem simpler to load the html itself, rather than render on esp, and server through vnc
gui*
Ivan Grokhotkov
@igrr
Jan 19 2016 07:34

That's what i said :)

probably that's less efficient than just an HTML GUI, but still.

I know i can open a web browser to control my rice cooker, but imagine telling your friends that you are going to VNC into a rice cooker? ;)
I have a GUI toolkit which i wrote years ago... it used to run on 8051 derivatives. Will try running it on the ESP, perhaps it will be fun.
beikeland
@beikeland
Jan 19 2016 07:41
vnc enabled rice cooker. you sir, may just win the internet. at least in asia :P
but i must admit, sounds intriguing :D
Ivan Grokhotkov
@igrr
Jan 19 2016 07:43
Actually my rice cooker has a graphical LCD already... if i could hook the ESP up to it to mirror the LCD image through VNC, that would be kinda cool.
  • goes looking for a screwdriver
beikeland
@beikeland
Jan 19 2016 07:45
that was my initial thought for a use of a vnc server, mirroring an existing lcd interface for remote viewing
Ivan Grokhotkov
@igrr
Jan 19 2016 07:49
ahh, too bad, doesn't look like an SPI connected LCD. MCU seems to be driving segments directly.
tzapu
@tzapu
Jan 19 2016 08:08
oh no…leave the nice rice cooker alone...
mine speak korean
but i agree, if you had a vnc enabled rice cooker, you would win the internet
PyB
@PyBerger
Jan 19 2016 09:05
@igrr, could you help me getting a version of esptool with the erase timeout @ 15s
I have problems compiling it on my PC...
Ivan Grokhotkov
@igrr
Jan 19 2016 09:06
which OS are you using?
PyB
@PyBerger
Jan 19 2016 09:12
windows 7.
When compiling I have issued :
espcomm/espcomm_boards.c:14:33: error: storage size of 's_boards' isn't known
 static espcomm_board_t s_boards[];
Ivan Grokhotkov
@igrr
Jan 19 2016 09:15
ok, try to modify that file as follows
This message was deleted
PyB
@PyBerger
Jan 19 2016 09:28
making a bit of progress, but link fails..
``
cc argparse/argparse.o argparse/argparse_binimagecmd.o argparse/argparse_commcmd.o argparse/argparse_elfcmd.o binimage/esptool_binimage.o elf/esptool_elf.o elf/esptool_elf_object.o espcomm/delay.o espcomm/espcomm.o espcomm/espcomm_boards.o infohelper/infohelper.o serialport/serialport.o main.o -o esptool.exe 
makefile:75: recipe for target 'esptool.exe' failed
process_begin: CreateProcess(NULL, cc argparse/argparse.o argparse/argparse_binimagecmd.o argparse/argparse_commcmd.o argparse/argparse_elfcmd.o binimage/esptool_binimage.o elf/esptool_elf.o elf/esptool_elf_object.o espcomm/delay.o espcomm/espcomm.o espcomm/espcomm_boards.o infohelper/infohelper.o serialport/serialport.o main.o -o esptool.exe, ...) failed.
make (e=2): The system cannot find the file specified.
I'm on a corporate PC and can't use all the compile tools I want...
Ivan Grokhotkov
@igrr
Jan 19 2016 09:47
could you please post the full log to pastebin or something?
PyB
@PyBerger
Jan 19 2016 09:54
10:53:32: Running steps for project esptool...
10:53:32: Starting: "C:\PyB\mySoftware\Qt-MinGW\Tools\mingw491_32\bin\mingw32-make.exe" all
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o argparse/argparse.o argparse/argparse.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o argparse/argparse_binimagecmd.o argparse/argparse_binimagecmd.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o argparse/argparse_commcmd.o argparse/argparse_commcmd.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o argparse/argparse_elfcmd.o argparse/argparse_elfcmd.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o binimage/esptool_binimage.o binimage/esptool_binimage.c
binimage/esptool_binimage.c: In function 'int binimage_add_segment(uint32_t, uint32_t, unsigned char*)':
binimage/esptool_binimage.c:51:39: warning: invalid conversion from 'void*' to 'binary_segment*' [-fpermissive]
         b_image.segments = malloc(size);
                                       ^
binimage/esptool_binimage.c:61:101: warning: invalid conversion from 'void*' to 'binary_segment*' [-fpermissive]
         b_image.segments = realloc(b_image.segments, (b_image.num_segments+1)*sizeof(binary_segment));
                                                                                                     ^
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o elf/esptool_elf.o elf/esptool_elf.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o elf/esptool_elf_object.o elf/esptool_elf_object.c
elf/esptool_elf_object.c: In function 'void get_elf_strings()':
elf/esptool_elf_object.c:72:63: warning: invalid conversion from 'void*' to 'char*' [-fpermissive]
             e_object.strings = malloc(e_object.section.sh_size);
                                                               ^
elf/esptool_elf_object.c: In function 'void collect_elf_sections()':
elf/esptool_elf_object.c:102:75: warning: invalid conversion from 'void*' to 'ELF_section*' [-fpermissive]
     e_object.sections = malloc(e_object.header.e_shnum*sizeof(ELF_section));
                                                                           ^
elf/esptool_elf_object.c: In function 'unsigned char* get_elf_section_bindata(uint16_t, uint32_t)':
elf/esptool_elf_object.c:235:40: warning: invalid conversion from 'void*' to 'unsigned char*' [-fpermissive]
                 bindata = malloc(pad_to);
                                        ^
elf/esptool_elf_object.c:239:66: warning: invalid conversion from 'void*' to 'unsigned char*' [-fpermissive]
                 bindata = malloc(e_object.sections[secnum-1].size);
                                                                  ^
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o espcomm/delay.o espcomm/delay.c
g++ -std=c++11 -Os -Wall -fpermissive  -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -DWINDOWS -DVERSION=\"0.4.7\"  -c -o espcomm/espcomm.o espcomm/espcomm.c
espcomm/espcomm.c: In function 'uint32_t espcomm_send_command(unsigned char, unsigned char*, uint16_t, int)':
espcomm/espcomm.c:165:65: warning: invalid conversion from 'void*' to 'unsigned char*' [-fpermissive]
                 receive_packet.data = malloc(receive_packet.size);
                                                                 ^
espcomm/espcomm.c: At global scope:
espcomm/espcomm.c:78:13: warning: 'void espcomm_reset_to_exec()' defined but not used
Ivan Grokhotkov
@igrr
Jan 19 2016 10:01
it appears that you have g++ executable but not cc
can you please check?
PyB
@PyBerger
Jan 19 2016 10:07
I don't cc is for link ?.
I'm using mingw
Ivan Grokhotkov
@igrr
Jan 19 2016 10:13
do you have gcc executable?
you may try replacing cc with gcc in the makefile
PyB
@PyBerger
Jan 19 2016 10:29
how should I do
tried : $(GCC) doesn't seem to work
did put LD instead, bit better, now I misss symbols
binimage/esptool_binimage.o:esptool_binimage.c:(.text+0x41): undefined reference to `malloc'
PyB
@PyBerger
Jan 19 2016 10:57
eventually got it to work :)
(I mean to compile)
Will test if now I manage to flash the SPI mem....
PyB
@PyBerger
Jan 19 2016 11:02
working
if you release another version of the tool - may be useful to increase that timeout :)
Helio Machado
@0x2b3bfa0
Jan 19 2016 14:47
Hi! Finally I'm here again.
ystrem
@ystrem
Jan 19 2016 16:30
Hi, testing 8x8 LED matrix but non of library work for characters
Is correct SPI pins MISO pin 12, MOSI 13 and SCLK 14
?
Helio Machado
@0x2b3bfa0
Jan 19 2016 16:58
Quick question: how many useful gpio has the ESP in qio? Also, how many useful i/o are PWMable?
Me No Dev
@me-no-dev
Jan 19 2016 16:58
A2: 11
A1: 11
Helio Machado
@0x2b3bfa0
Jan 19 2016 16:59
@me-no-dev: So there are 11 PWM/logic useful pins?
Me No Dev
@me-no-dev
Jan 19 2016 16:59
@ystrem yes
@crushedice2000 pwm runs on all available GPIO pins and there are 11 on QIO
Helio Machado
@0x2b3bfa0
Jan 19 2016 17:00
@me-no-dev: Where can I find which gpios? Is there any schematic?
ystrem
@ystrem
Jan 19 2016 17:01
@me-no-dev thats for ESP12 but for ESP12E it's different right ?
Me No Dev
@me-no-dev
Jan 19 2016 17:02
@ystrem do not look at the SPI marked pins on the left
they are for the flash
the above 2 GPIOs are available because the flash is in DIO mode
ystrem
@ystrem
Jan 19 2016 17:02
ok, how to define SPI pins in code
?
Me No Dev
@me-no-dev
Jan 19 2016 17:03
@crushedice2000 look at the GPIOs on the right in the same picture
it's what you have access to
@ystrem define?
SPI.begin() will setup the pins
12-14
ystrem
@ystrem
Jan 19 2016 17:04
ok
thx I'll try
Helio Machado
@0x2b3bfa0
Jan 19 2016 17:24
@Links2004: Could arduinoWebSockets go fully async w/o calls in loop?
Markus
@Links2004
Jan 19 2016 17:26
@crushedice2000 yes it one of the next steps.
  • make client async
  • allow integration of server in @me-no-dev Async webserver
  • keep it kompatible to Avr Arduino (hope it will)
Aditya Tannu
@AdySan
Jan 19 2016 17:29
@Links2004 you ArduinoNVC library, you were using XVNC in Chorme, would it be possible to connect to a RPi running a tightnvcserver too?
I thought, would be a nice wireless screen for the RPi.
Markus
@Links2004
Jan 19 2016 17:31
yes every VNC server will do.
but set the screen settings right to the ESP display the ESP will not resize the steam.
I start the server with:
vncserver :888 -geometry 320x240 -depth 16 -name "Server :888" -AlwaysShared=1 -rfbport=19888 -ImprovedHextile=1 -s 0 dpms -br -nocursor
Aditya Tannu
@AdySan
Jan 19 2016 18:58
@Links2004 thanks, noted. Will try when I get a screen. Wild thought, if I want to use a monochrome OLED for this, where will the 16bit color to 1bit monochrome downscaling happen? I guess the depth setting on the server needs to change?
Markus
@Links2004
Jan 19 2016 19:00
not sure if VNC supports 1bit color, but yes better the server do the downscaling.
but you can use the VNCdisplay interface to do it on the ESP, but then you need to send 16bit to the ESP.
probonopd
@probonopd
Jan 19 2016 19:22
hi. is anyone around who could help me with OTA?
it is driving me nuts for 2 days now
OTA per se works
but as soon as I combine it with some workload in loop() it stops working
see my comment "THIS LINE TOTALLY BREAKS IT" - as soon as I uncomment this line, OTA breaks
experimenting with yield() didn't help either (although I am not entirely sure I did it right)
Aditya Tannu
@AdySan
Jan 19 2016 19:25
Yeah, you porbably need to call ArduinoOTA.handle() more often
the rainbowCycle() blocks it for a few seconds
probonopd
@probonopd
Jan 19 2016 19:27
so you're saying not only use it in the main loop() but also in other functions, doesn't hurt?
i see
Aditya Tannu
@AdySan
Jan 19 2016 19:28
Markus
@Links2004
Jan 19 2016 19:28
@probonopd Adafruit_NeoPixel us bit banging, there are DMA versions, they work much better.
Aditya Tannu
@AdySan
Jan 19 2016 19:28
you need to connct to RX pin
probonopd
@probonopd
Jan 19 2016 19:28
thanks for your suggestions, will try that
Markus
@Links2004
Jan 19 2016 19:29
@AdySan yes this is working fine for me.
Aditya Tannu
@AdySan
Jan 19 2016 19:29
me too, but I still have problems with me strip behaving strangely sometimes, half of it gets stuck in white
only reboot helps
i thought it was due to bit banging blocking wifi and the I2s version would solve the problem, but it doesnt
so assuming its electrical
probonopd
@probonopd
Jan 19 2016 19:31
so my OTA issue is not electrical - I also have this issue when there is no strip attached at all
@AdySan the library you suggest has a "delay(10);" in the example sketch main loop
Markus
@Links2004
Jan 19 2016 19:31
@AdySan how long is you stripe? i tested it with 5m - 150LEDs (300LEDs order incoming),
power from both sides and it working fine.
Aditya Tannu
@AdySan
Jan 19 2016 19:31
yeah, its just blocking the OTA call for too long. If you try at hte right moment, you cna get lucky though
d-anders
@d-anders
Jan 19 2016 19:31
the loop takes too much time i guess probonopd
probonopd
@probonopd
Jan 19 2016 19:31
does it play welll with OTA to have "delay(10)" there?
Markus
@Links2004
Jan 19 2016 19:32
delay(10) is ok
Aditya Tannu
@AdySan
Jan 19 2016 19:32
@Links2004 my strip is 1.5M 94 leds
probonopd
@probonopd
Jan 19 2016 19:32
maybe the question is ridiculous, but is there the concept of different threads in the esp world?
Aditya Tannu
@AdySan
Jan 19 2016 19:33
I guess not, no RTOS here in this firmware
Markus
@Links2004
Jan 19 2016 19:33
with rtos yes, ESP32 will have it, the RTOS for ESP8266 is outdate :(
probonopd
@probonopd
Jan 19 2016 19:33
or timer-interrupt based ota? so that no matter what the sketch does, ota would always work?
Markus
@Links2004
Jan 19 2016 19:33
@probonopd will not work
Chris Elsworth
@celsworth
Jan 19 2016 19:45
RTOS is the only one for ESP32 right?
Markus
@Links2004
Jan 19 2016 19:53
yes
and I like that ;)
probonopd
@probonopd
Jan 19 2016 19:54
i wonder how affordabe it'll be
Aditya Tannu
@AdySan
Jan 19 2016 19:54
so will bit banging be possible with that?
Markus
@Links2004
Jan 19 2016 19:55
hope I get it soon
@AdySan yes simple get the task most priority.
have done it on cortex some times.
Aditya Tannu
@AdySan
Jan 19 2016 19:55
thanks to @tzapu you sohuld!
d-anders
@d-anders
Jan 19 2016 19:56
im a little scared of the esp32
Chris Elsworth
@celsworth
Jan 19 2016 19:57
it doesn't bite
d-anders
@d-anders
Jan 19 2016 19:57
maybe everything will start over and it will take a year or so for them to get the sdk into a decent state
Markus
@Links2004
Jan 19 2016 19:57
@d-anders why? If we are done it work like the ESP8266, hope better thanks to dual core, no longer wifi block problems.
d-anders
@d-anders
Jan 19 2016 19:58
yeah hopefully everything will just work from scratch
i guess they can reuse a lot of their code for the current esp8266
Chris Elsworth
@celsworth
Jan 19 2016 19:58
not sure if the second core is enabled yet in current esp32 sdk
Markus
@Links2004
Jan 19 2016 19:59
@me-no-dev has already one and it looks like the most is the same of the esp8266
@celsworth yes currently it is as ESP31B (singel core)
d-anders
@d-anders
Jan 19 2016 19:59
ah
if it is decently stable all is fine
Chris Elsworth
@celsworth
Jan 19 2016 19:59
apparently its not supposed to be an 8266 replacement, it will be more expensive
d-anders
@d-anders
Jan 19 2016 19:59
performance and always be improved later, but instability sucks
Chris Elsworth
@celsworth
Jan 19 2016 19:59
so I guess they'll keep doing 8266
probonopd
@probonopd
Jan 19 2016 20:00
hopefully it's more like 1.5x the price rather than 3x the price
time will tell
Chris Elsworth
@celsworth
Jan 19 2016 20:00
looking at whats on it, I think 3x may be more accurate
d-anders
@d-anders
Jan 19 2016 20:01
yeah, prices are likely to drop quickly the first months after release
probonopd
@probonopd
Jan 19 2016 20:01
then i'll take a cheap mediatek linux soc ;-)
Me No Dev
@me-no-dev
Jan 19 2016 20:01
they have not relesed an update for it for a while and I have gathered all exposed hardware
nothing spectacular yet
adc sucks.... totally unusable
Chris Elsworth
@celsworth
Jan 19 2016 20:01
can we use the ethernet on it yet me-no-dev?
d-anders
@d-anders
Jan 19 2016 20:01
worse than esp8266?
Chris Elsworth
@celsworth
Jan 19 2016 20:02
I've seen some mention of the ethernet mac on it but nothing else
d-anders
@d-anders
Jan 19 2016 20:02
or is that also crap?
Me No Dev
@me-no-dev
Jan 19 2016 20:02
at the moment the AsyncWebServer runs faster on ESP8266 than on 31B
Aditya Tannu
@AdySan
Jan 19 2016 20:02
8266 isnt use in many commercial products yet, mostly DIY, it's not going anywhere i suppose, lots of work going on in collaboration iwth esspressiff
Me No Dev
@me-no-dev
Jan 19 2016 20:02
there is supposed to be lots more coming but not yet
the pin matrix is exciting
probonopd
@probonopd
Jan 19 2016 20:03
yes i really hope for them that there will be some serious mass produced products in quantities
Me No Dev
@me-no-dev
Jan 19 2016 20:03
you can attach many functions to any pin you like
ystrem
@ystrem
Jan 19 2016 20:03
Guys porting Sming to use RTOS SDK, in future you should use same code for both
still POC
d-anders
@d-anders
Jan 19 2016 20:04
i was going to try to hook up the analog pin on my esp8266 to a lsm-11 sensor with a op in between
Chris Elsworth
@celsworth
Jan 19 2016 20:04
@me-no-dev whats the problem with the adc? I can give it a test if you have something to test
may just be your unit? :/
d-anders
@d-anders
Jan 19 2016 20:04
i dont need a high sample rate but is the adc in the esp8266 still too poor?
ystrem
@ystrem
Jan 19 2016 20:04
I think that ADC on esp is enough for basic reading :D
Me No Dev
@me-no-dev
Jan 19 2016 20:04
for me it givel not linear readings
Chris Elsworth
@celsworth
Jan 19 2016 20:04
hm ok
Me No Dev
@me-no-dev
Jan 19 2016 20:05
so half te range is not half the voltage
d-anders
@d-anders
Jan 19 2016 20:05
oh
Me No Dev
@me-no-dev
Jan 19 2016 20:05
4V range actually goes to 3V
d-anders
@d-anders
Jan 19 2016 20:05
that sucks reallly bad if thats the case
Me No Dev
@me-no-dev
Jan 19 2016 20:05
i tested with two multimeters and a scope
d-anders
@d-anders
Jan 19 2016 20:05
do you use an external ref? else i thought it was 0-1V?
Chris Elsworth
@celsworth
Jan 19 2016 20:05
@d-anders we talk about esp31b
you can set the adc gain
8266 is indeed just 1V
d-anders
@d-anders
Jan 19 2016 20:06
ok, is the one on the esp8266 better?
Chris Elsworth
@celsworth
Jan 19 2016 20:06
right now yeah cos the esp31 doesn't work apparently ;)
I'll try it later, see if I can reproduce it
Me No Dev
@me-no-dev
Jan 19 2016 20:07
@celsworth let me know
d-anders
@d-anders
Jan 19 2016 20:08
im going to try to read the oxygen levels in the exhaust gas from my pellet burner, a project which i have been intending to do for years
Chris Elsworth
@celsworth
Jan 19 2016 20:08
will do
ystrem
@ystrem
Jan 19 2016 20:26
Is it possible to use ESP.getVcc(); on ESP01 ?
combining WS* pixels and OTA seems to be mission impossible?
Aditya Tannu
@AdySan
Jan 19 2016 20:33
@probonopd no I have it working at home, can you put a Serial.println(currentmillis) in there to see how often loop gets executred?
Me No Dev
@me-no-dev
Jan 19 2016 20:34
@probonopd ArduinoOTA.handle(); is the TCP part of OTA
there is I think 10 seconds timeout waiting for the loop to respond
enable password and see if you get through the authentication process
probonopd
@probonopd
Jan 19 2016 20:35
ok..
is the yield() a good idea there? can it hurt in any way?
Me No Dev
@me-no-dev
Jan 19 2016 20:36
no hurt at all
also the i2s thing as far as I know uses DMA, so it should not block for 30 pixels
probonopd
@probonopd
Jan 19 2016 20:40
@me-no-dev iirc you were working on neopixel stuff (besides the hue emulator), wasn't it even mqtt based?
i get "[ERROR]: No Answer" before it asks me of the password
Me No Dev
@me-no-dev
Jan 19 2016 20:41
no :) I was just looking at the timing of the generated signals and made pin16 work
yeah... the UDP part of it does not even trigger
what version of the core?
probonopd
@probonopd
Jan 19 2016 20:41
git
Aditya Tannu
@AdySan
Jan 19 2016 20:42
@probonopd I am working on neopixel based hue emulator that uses mqtt
Me No Dev
@me-no-dev
Jan 19 2016 20:42
hm... have you tried using different lib fr the pixels?
like one based on serial
probonopd
@probonopd
Jan 19 2016 20:42
@AdySan wow. Count me in
Me No Dev
@me-no-dev
Jan 19 2016 20:42
or even bitbang
but yeah, that doesnt use the i2s library, and just sets the neopixel color once, so lots of free time for OTA
with animations, things might get difficult
in theory should work with i2s, since it's non blocking
probonopd
@probonopd
Jan 19 2016 20:44
@me-no-dev i had also tried the adafruit lib and got the same error
@AdySan basically im looking for a mqtt based thing that drives neopixels including animations, yes
Me No Dev
@me-no-dev
Jan 19 2016 20:45
and working fine if you do not light the pixels?
Helio Machado
@0x2b3bfa0
Jan 19 2016 20:46
fatal error: core_esp8266_features.h: No such file or directory
On version 2.0.0 using PlatformIO. Why? This comes form WebSockets library. maybe @Links2004 knows what is happening here?
probonopd
@probonopd
Jan 19 2016 20:46
@me-no-dev as soon as I put pixel stuff into loop() then OTA stops working
@AdySan when you are saying "hue clone" you don't actually mean "compatible with hue apps", correct? 'cause @me-no-dev and I were working on that. but hey, mqtt is way cooler than the bloated hue protocol
stupid hourly IDE serial upload breakage really starts to annoy me
Aditya Tannu
@AdySan
Jan 19 2016 20:48
@probonopd yeah, I have no reason to include the hue API since I have no bridge nor bulbs, just wnat similar functionality with a HomeKit API
Me No Dev
@me-no-dev
Jan 19 2016 20:48
@probonopd if we can move it to async it might get better
i remember the multiple connections were the problem
probonopd
@probonopd
Jan 19 2016 20:49
i have no clue about async (wasn't here for a couple of weeks) but it sounds intriguing ;-)
@sticilface was also working on it @me-no-dev
iirc
Me No Dev
@me-no-dev
Jan 19 2016 20:50
yes :) we are currently looking into streaming out large jsons
not sure if for the same thing
probonopd
@probonopd
Jan 19 2016 20:51
"IPAddress MQTTserver(192, 168, 1, 155);" is lame. there must be a way to do that with mdns-sd
how do we browse for services using the esp?
Me No Dev
@me-no-dev
Jan 19 2016 20:51
we don't yet
probonopd
@probonopd
Jan 19 2016 20:52
argh ;-)
Aditya Tannu
@AdySan
Jan 19 2016 20:52
@probonopd I know, I tried but dindnt work, didnt ever get a chance to look into it
Me No Dev
@me-no-dev
Jan 19 2016 20:52
parsing responses is a bitch :)
probonopd
@probonopd
Jan 19 2016 20:52
well for now my mqtt server is in the cloud anyway
and it's using letsencrypt
Markus
@Links2004
Jan 19 2016 20:57
@crushedice2000 you need the staring version or git version for latest WebSockets
Helio Machado
@0x2b3bfa0
Jan 19 2016 20:58
@Links2004: Ok, thanks!
probonopd
@probonopd
Jan 19 2016 21:01
AdyLightHue:28: error: no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&, IPAddress&)
PubSubClient is installed
i should probably not be using the git version of the core...
Aditya Tannu
@AdySan
Jan 19 2016 21:05
@probonopd that is weird, this is a newer sketch, try this https://gist.github.com/AdySan/bd23f7be5ca5a6a4563f
but yeha, its basically the same, compiles fine on IDE 1.6.7
with release of core 2.0.0.0
probonopd
@probonopd
Jan 19 2016 21:06
thanks @AdySan i will use your combo
ystrem
@ystrem
Jan 19 2016 21:09
heh cool :D
nobody answered, so I tested it up. And it works, ESP.getVcc() on esp01 :D
Aditya Tannu
@AdySan
Jan 19 2016 21:11
@ystrem any reason why it wouldnt?
ystrem
@ystrem
Jan 19 2016 21:11
don't know :D
Aditya Tannu
@AdySan
Jan 19 2016 21:12
same chip, and doenst need any externam connections AFAIK, so should work on any board
ystrem
@ystrem
Jan 19 2016 21:12
it's connected internaly
Aditya Tannu
@AdySan
Jan 19 2016 21:12
exactly
probonopd
@probonopd
Jan 19 2016 21:13
@AdySan nope, doesn't like PubSubClient client(wclient, MQTTserver); - which PubSubClient library do you use?
I used the one from Board Manager
many compatible/recommendd fors/libs here: https://github.com/esp8266/Arduino/blob/master/doc/libraries.md
probonopd
@probonopd
Jan 19 2016 21:16
sigh. we need a decent dependency manager.
something #include http://github....
1000 version of 1001 libs with the same or almost the same name is a great recipe for disaster ;-)
Aditya Tannu
@AdySan
Jan 19 2016 21:16
as i understand PlatforIO does that
probonopd
@probonopd
Jan 19 2016 21:17
well kind of
the user still needs to install the libs it seems
i'd prefer if the libs could be specified directly in the sketch
similar to what golang does with the includes
you include git urls iirc
Aditya Tannu
@AdySan
Jan 19 2016 21:17
hmm
probonopd
@probonopd
Jan 19 2016 21:18
because it seems you're using a slightly different Adafruit_Neopixel library as well...
'class Adafruit_NeoPixel' has no member named 'HSVColor'
Markus
@Links2004
Jan 19 2016 21:19

simple add it like this:

/*
 * Used librarys:
 * Adafruit_NeoPixel http://github....
*/

but its up to every programmer to do this ;)

sorry kinda new to github/Arduino IDE, havent figured out the right way to fork libraries and point to them
probonopd
@probonopd
Jan 19 2016 21:21
@AdySan why don't you do a pull request to the adafruit library
that way your function becomes officially part of it
Aditya Tannu
@AdySan
Jan 19 2016 21:22
there is one already, they dont want to merge for some trinket compatiiblity
probonopd
@probonopd
Jan 19 2016 21:22
ah
Aditya Tannu
@AdySan
Jan 19 2016 21:22
adafruit/Adafruit_NeoPixel#37
probonopd
@probonopd
Jan 19 2016 21:24
yay, compiling
what should I say, its working :)
Aditya Tannu
@AdySan
Jan 19 2016 21:25
yay!
probonopd
@probonopd
Jan 19 2016 21:26
great @AdySan but I guess I always have to live with the fear that OTA ability breaks whenever I add some animation or someting to the sketch
Aditya Tannu
@AdySan
Jan 19 2016 21:26
I want to try and solve that using hte I2s lib, in principle it should work
thats the whole point of that lib
probonopd
@probonopd
Jan 19 2016 21:27
@AdySan do you a github project that i can follow?
so that I'll see your i2s stuff
(need to go afk now)
Aditya Tannu
@AdySan
Jan 19 2016 21:28
@probonopd not yet, i thought the arudino side would be simple sketches, so just GISTS, only have hte HomeKit related stuff forked here https://github.com/AdySan/HAP-NodeJS
@probonopd will make one for I2s tonight
probonopd
@probonopd
Jan 19 2016 21:29
Cool @AdySan
i'll test it tomorrow