These are chat archives for esp8266/Arduino

12th
Jan 2016
Stavros Korokithakis
@skorokithakis
Jan 12 2016 01:40
@tzapu did you generate the gerbers from the latest github tip?
Aditya Tannu
@AdySan
Jan 12 2016 02:50
So wish someone makes a ESP8266 board in this form factor.
Digispark.jpeg
Martin Ayotte
@martinayotte
Jan 12 2016 03:12
That should be doable ! But someone was to make VUSB or LUFA libraries working on ESP
Aditya Tannu
@AdySan
Jan 12 2016 03:14
I mean even with a USB-serial chip behind
the digispark bootloader (micronucleus?) should be doable, 3.3V will be a problem though. Just saying size wise its not impossible
Eric Petersen
@Ruckusist
Jan 12 2016 03:46
hey guys... ive been cruising the web for days looking for a solution... ive got an Nrf24l01+ ... i just fried my nodemcu and the radio and ... well ive got another one to keep trying but im trying to reach out for some help... i feel like my wiring is correct but i cant get any test scripts to give me anything... ive got a nodemcuV3... standard nrf24... no results... pin for pin does anyone have a picture? is there another place to look?
I guess... further... if its possible for some help... im using arduino ide... latest rf24 library... latest esp arduino software... my code is just ... radio.printdetails()... on serial... cant figure it out
Aditya Tannu
@AdySan
Jan 12 2016 04:04
why are you using nrf24l01+ and ESP8266 together? Can you explain a little more what you're trying to do?
tzapu
@tzapu
Jan 12 2016 05:30
@skorokithakis didn't even open them yet, watched the discussions here and finally cracked, ordered regulators, next will be the big pack of 2300 smd components somebody posted on ebay, and try to look more at your design that i love, bother you with more questions :P and order it from dirty pcb if i can t find a more limited run provider before
beikeland
@beikeland
Jan 12 2016 06:09
I find the Engineer PA09 gives very nice crimps despite not being a ratcheting type. And its also suitable for a range of the smaller connectors. The cheap ratcheting crimpers i have nothing but trouble with
Yeah, you have to crimp the wire and the strain relief indivitually, so use the tool twice, but i find its not a big deal, and the connections end up much better
brutzler
@brutzler
Jan 12 2016 07:05
gitter.jpg
talking about this?
crosofg
@crosofg
Jan 12 2016 07:52
guys a off topic question ..
can android phone be used for i2c communication ?
through microusb
tzapu
@tzapu
Jan 12 2016 10:49
@skorokithakis i think i modified your design for a ht7333 sot-89 regulator... i have no idea really what i'm doing, does it look ok?
https://www.dropbox.com/s/kt55ickipzfzotf/Screenshot%202016-01-12%2012.47.15.png?dl=0
Mario Mikočević
@mozgy
Jan 12 2016 10:57
@tzapu per datasheet ht7333 requires a bit more caps
Markus
@Links2004
Jan 12 2016 11:14
@Ruckusist nrf24 can be connected to esp have done it
blob
blob
tzapu
@tzapu
Jan 12 2016 12:14
@mozgy i think i ve got it running ok with just a 10uF or 22uF on the output, have seen it used like that before. may be wrong though
tzapu
@tzapu
Jan 12 2016 12:20
but i guess there s no harm in providing the pads for the input cap as well... now to find out how to do that
Stavros Korokithakis
@skorokithakis
Jan 12 2016 12:47
@tzapu make sure the pins of the reg you want match what you have on the footprint
sometimes they can be reversed or corresponding to other pins
/pads
i bought some ht7333s as well, maybe i'll merge yours into my design!
actually, i probably should, it's a better regulator
tzapu
@tzapu
Jan 12 2016 13:14
is it? bummer, i just ordered some of the ones you used :)))))
i thought those looked better
first time i played with this, i am absolutely sure i am adding stuff wrongly with no idea what i m doing
for instance, i couldn t find a way, to add a component that was added to the schematic, to the pcb
is that how it s supposed to work?
i had to add component, select something from all the library, then edit the reference and value by hand, from whatever random stuff was there...
tzapu
@tzapu
Jan 12 2016 13:19
found someone to print them locally for about 1.2$ a board which is good for trying a few out, although they take pdf s as a source...bleah :worried:
tzapu
@tzapu
Jan 12 2016 13:34
also, @skorokithakis if it helps in anyway, i can send you my modified archive of your design, but it s probably not done as it should
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:05
oh man, local at $1.2 a board is pretty good
you can get 40 boards for $14 at dirtypcbs, but you have to wait a long time
@tzapu doesn't look like you connected the other end of c2 anywhere
did you run a drc?
tzapu
@tzapu
Jan 12 2016 14:09
yup
it's connected, just not very visible
ha, yours is cooler :D
tzapu
@tzapu
Jan 12 2016 14:16
a question, on a breadboard like this, if i were to connect gpio0 directly to ground, would it enter programming mode even though it has a 10k pullup? should, shouldn t it?
Markus
@Links2004
Jan 12 2016 14:23
yes ~0Ohm to gnd is more powerful then 10k to vcc
Martin Ayotte
@martinayotte
Jan 12 2016 14:23
@tzapu , yes, that is why pullups are there, when shorted to GND, it is like they are only wiring across VCC-GND, and when GPIO0 is disconnected, the pullup taking affect
tzapu
@tzapu
Jan 12 2016 14:27
cool, thanks, i assume it s a resistor divider in simple terms, and if voltage goes above treshhold (2.5v?) it s HIGH if not LOW
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:27
@tzapu look at the "unconnected" tab, unconnected doesn't show in "problems"
tzapu
@tzapu
Jan 12 2016 14:28
@skorokithakis scraped mine anyway and loaded yours, thanks :D
FWeinb
@FWeinb
Jan 12 2016 14:28
limiting the main loop(){}in an arduino sketch to 60hz should be done with delay()right? delayMicroseconds() would block Wifi etc. right?
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:29
@tzapu no problem, send me a photo if you do fab it :P
tzapu
@tzapu
Jan 12 2016 14:29
yup, will do, actually composing the email now
pain in the ass they only take pdf or eagle, not sure if the dimensions will come out ok
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:30
yeah :/
weird that they don't do gerber
tzapu
@tzapu
Jan 12 2016 14:32
well, local shop, it's not gonna be anywhere near seedstudio or oshpark or dirtypcb as result, no silkscreens, no coating, etc
but good to give it a try and not wait a few weeks :D
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:33
exactly
tzapu
@tzapu
Jan 12 2016 14:34
i think i ll try 2 with the new reg and 2 with the old reg
since they are coming anyway
Stavros Korokithakis
@skorokithakis
Jan 12 2016 14:34
yep, give it a shot
Martin Ayotte
@martinayotte
Jan 12 2016 14:39
"gerbv" can easily export pdf
kicad too
Markus
@Links2004
Jan 12 2016 14:41
@FWeinb yes
FWeinb
@FWeinb
Jan 12 2016 14:42
@Links2004 Thanks.
tzapu
@tzapu
Jan 12 2016 14:45
@skorokithakis mail away, will post some pics here when/if they come :D
Stavros Korokithakis
@skorokithakis
Jan 12 2016 16:03
@tzapu fantastic, thanks
Me No Dev
@me-no-dev
Jan 12 2016 16:05
Oh wow! with 1.5.1 and my Async server I get about 1MByte per second download from the ESP
tzapu
@tzapu
Jan 12 2016 16:07
@me-no-dev fantastic. will it also stop the too many requests/resource is busy kind of warnings/errors?
Me No Dev
@me-no-dev
Jan 12 2016 16:07
that is much faster than what the ESP31B does at the moment
tzapu
@tzapu
Jan 12 2016 16:07
being async and all
Me No Dev
@me-no-dev
Jan 12 2016 16:08
@tzapu let me make a screenshot of some concurent downloads if I can
FWeinb
@FWeinb
Jan 12 2016 16:08
@me-no-dev Yeah noticed that too.
But DNS lookups are kind of slow for me. No idea if it is an issue with the esp.
Me No Dev
@me-no-dev
Jan 12 2016 16:09
Screen Shot 2016-01-12 at 18.09.05.png
4 at the same time
single loads of the same image average at 300ms
when concurent loads of the same file occur, there is also the fact that you have the same file open 4 times and reading at different positions. So FS is behaving good
FWeinb
@FWeinb
Jan 12 2016 16:14
That is the same thing I tested too.
Me No Dev
@me-no-dev
Jan 12 2016 16:16
now I want to turn OTA to async :) see how fast that will go
tzapu
@tzapu
Jan 12 2016 16:17
that is super impressive
FWeinb
@FWeinb
Jan 12 2016 16:17
Is OTA currently faster than Wired?
Me No Dev
@me-no-dev
Jan 12 2016 16:17
much
tzapu
@tzapu
Jan 12 2016 16:17
a lot in in my tests
but also more inconvenient for development at least...
FWeinb
@FWeinb
Jan 12 2016 16:17
Never tested it, wired is slow as hell.
Me No Dev
@me-no-dev
Jan 12 2016 16:17
@tzapu why so?
tzapu
@tzapu
Jan 12 2016 16:18
well, no serial debug last i checked
which was some time ago
Me No Dev
@me-no-dev
Jan 12 2016 16:18
you can run the debug on a side
tzapu
@tzapu
Jan 12 2016 16:18
hmmm, do tell...
Me No Dev
@me-no-dev
Jan 12 2016 16:18
and see all messages from restart and so on
it's how I have it and love it
tzapu
@tzapu
Jan 12 2016 16:18
ah, ok, connect another terminal
that s a point
have a serial terminal connected just for that and ota everything
Me No Dev
@me-no-dev
Jan 12 2016 16:19
then it's just a hit of the upload button in ide
tzapu
@tzapu
Jan 12 2016 16:19
also, there was a problem with seeing the devices
Me No Dev
@me-no-dev
Jan 12 2016 16:19
that is another problem entirely :) it's in the IDE fault
tzapu
@tzapu
Jan 12 2016 16:19
yes, i remember so
Me No Dev
@me-no-dev
Jan 12 2016 16:19
why I use eclipse and a modifies version of the plugin
tzapu
@tzapu
Jan 12 2016 16:20
still have the tweaked 1.6.6 or 1.6.7 you guys moded
Me No Dev
@me-no-dev
Jan 12 2016 16:20
nothing you care about have changed since ;)
tzapu
@tzapu
Jan 12 2016 16:21
yeah...didn t have enough time to play with other ides and all that, wanted to give the xcode integration a test as well
heard there s some fancy arduino studio based on the arduino builder thing coming
but may be wrong
exciting things
Me No Dev
@me-no-dev
Jan 12 2016 16:22
yeah I have the xcode plugin but have not used it for a while. things move much faster than his plugin for me :)
and the IDE needs to be changed yes... too old now :)
tzapu
@tzapu
Jan 12 2016 16:22
can t keep up with everything, or even a few things it seems
Me No Dev
@me-no-dev
Jan 12 2016 16:22
eclipse is nicer for now, but i'm not a big fan of it much
tzapu
@tzapu
Jan 12 2016 16:23
i have about 3 eclipse instances already with various editors, flex 3, flex 4 and coldfusion
annoying at times
Me No Dev
@me-no-dev
Jan 12 2016 16:24
:D yeah me too :D
tzapu
@tzapu
Jan 12 2016 16:24
but hey, at least they are still working after a boatload of os updates and don t piss eachother off
Me No Dev
@me-no-dev
Jan 12 2016 16:25
Aruino one, old Android one and then one I used for STM32F4 stuff
tzapu
@tzapu
Jan 12 2016 16:25
deeply embedded you are
FWeinb
@FWeinb
Jan 12 2016 16:25
Any idea about the DNS issue I am experiencing?
Me No Dev
@me-no-dev
Jan 12 2016 16:25
the Arduino one I just switch workpaces between my different projects (esp8266, esp31b, RaspberryPi and STM32F1)
@FWeinb on which chip?
tzapu
@tzapu
Jan 12 2016 16:26
i ll have to give it a try then, thanks
FWeinb
@FWeinb
Jan 12 2016 16:26
ESP8266. With latest git.
Me No Dev
@me-no-dev
Jan 12 2016 16:26
@tzapu the original repo will not give you OTA (for the eclipse plugin0
tzapu
@tzapu
Jan 12 2016 16:26
is the eclipse arduino ide plugin that needs to be modded?
Me No Dev
@me-no-dev
Jan 12 2016 16:27
@FWeinb no clue, but much have changed in the network stack
@tzapu yes. I have a fork with the changes
did not make a pull request because I have removed other ofeending by my believes code from it
tzapu
@tzapu
Jan 12 2016 16:28
ok ,will look for it, thanks
Me No Dev
@me-no-dev
Jan 12 2016 16:28
but OTA works just like here
and you can use the serial monitor to actually hook to the serial port
so all in one window :D
tzapu
@tzapu
Jan 12 2016 16:29
cool, got some 1MB esp01 and weemos and nodemcus, got plenty to play with with ota now
Me No Dev
@me-no-dev
Jan 12 2016 16:29
there are some fixes for serial ports not showing on the mac
tzapu
@tzapu
Jan 12 2016 16:29
that s great
This message was deleted
Me No Dev
@me-no-dev
Jan 12 2016 16:30
yup
like the nodemcu
if you follow the build instructions you will end up with yet another eclipse :D
tzapu
@tzapu
Jan 12 2016 16:31
well, i fixed the ch340 signed driver thing on my osx
Me No Dev
@me-no-dev
Jan 12 2016 16:31
@tzapu btw I stumbled upon your page for ch340 today
and I had to use another driver to get the ch working
and I'm not sure that it even needs the fix
@FWeinb WOOOW!! that does not look normal
that is when opening espblah.local wright?
FWeinb
@FWeinb
Jan 12 2016 16:34
yeah.
tzapu
@tzapu
Jan 12 2016 16:35
@me-no-dev so the one reported working didn't work then?
Me No Dev
@me-no-dev
Jan 12 2016 16:36
btw no such problems here
tzapu
@tzapu
Jan 12 2016 16:36
disabling SPI did it for me, didn t bother with the driver mentioned in the update
just saw it mentioned as working on reddit
Me No Dev
@me-no-dev
Jan 12 2016 16:37
Screen Shot 2016-01-12 at 18.36.44.png
@tzapu not for me
the port is seen at the usb but no tty
FWeinb
@FWeinb
Jan 12 2016 16:40
@me-no-dev That is strange.
Me No Dev
@me-no-dev
Jan 12 2016 16:40
indeed
tzapu
@tzapu
Jan 12 2016 16:40
weird, i ll add a mention
thanks
Me No Dev
@me-no-dev
Jan 12 2016 16:40
what is your sketch doing?
FWeinb
@FWeinb
Jan 12 2016 16:41
I just tried the mDNS example sketch, same behaviour.
Me No Dev
@me-no-dev
Jan 12 2016 16:41
do you have serial debug enabled?
FWeinb
@FWeinb
Jan 12 2016 16:41
No nothing in debug mode.
Me No Dev
@me-no-dev
Jan 12 2016 16:41
put debug on the serial and see if you get any strange messages while the reuest is running
FWeinb
@FWeinb
Jan 12 2016 16:45
IP address: 192.168.178.31
mDNS responder started
TCP server started

pm open,type:2 0
 # <--- 5s here
New client
Request: /
Sending 200
Done with client
Markus
@Links2004
Jan 12 2016 16:46
@me-no-dev why 3 version? i have on eclipse for all c/c++ stuff and a other for PHP JS and so one.
Me No Dev
@me-no-dev
Jan 12 2016 16:47
@Links2004 I keep them as legacy :) they are older versions as well. Sometimes I need them for reference settings
I use one eclipse, Android Studio and Xcode to cover my IDE needs
@FWeinb I do not notice any such issues here, but can you please try to enable ArduinoOTA (just include the header and do ArduinoOTA.setHostname("whatever-you-want") ;ArduinoOTA.begin();
the reson behing is to see if it's maybe the ide flooding the mDNS
with ota enbled it will respond and maybe not give the issue
FWeinb
@FWeinb
Jan 12 2016 16:55
I am not using the Arduino IDE. But testing it anyway.
Me No Dev
@me-no-dev
Jan 12 2016 16:57
then nevermind
that would not be it
FWeinb
@FWeinb
Jan 12 2016 16:58
Yeah. Maybe my network is strange...
No other local DNS querys are resolved in <1ms
FWeinb
@FWeinb
Jan 12 2016 17:08
Okay. Flushing the DNS cache solved the issue...
Me No Dev
@me-no-dev
Jan 12 2016 17:09
great! not ESP's fault then :)
Shane Burgess
@acropup
Jan 12 2016 17:21
Hey guys, is there a preprocessor definition that a library can use to know whether it's being compiled for an esp8266?
It seems somewhat standard to include the CPU model number in the build flags in build.txt. For example, the arduino due has:
arduinoduex_dbg.build.extra_flags=-D__SAM3X8E -mthumb {build.usb_flags}
And the Teensy 3.1 has:
teensy31.build.flags.defs=-DMK20DX256 -DTEENSYDUINO=124
FWeinb
@FWeinb
Jan 12 2016 17:25
Yes ESP8266 is defined when compiled for esp8266l
Thats how it is done in some libs like @Links2004 websocket lib.
sticilface
@sticilface
Jan 12 2016 17:26
-DARDUINO=10606 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266
FWeinb
@FWeinb
Jan 12 2016 17:26
@me-no-dev Looks like it is a chrome issue when doing *.local dns resolution.
Shane Burgess
@acropup
Jan 12 2016 17:27
Sorry, markdown garbled the code. Ok thanks, that's fine. I guess I was looking for one with underscores (ie __ESP8266__) to match the others, like __MK20DX256__.
Aditya Tannu
@AdySan
Jan 12 2016 17:36
@tzapu fixed how?
tzapu
@tzapu
Jan 12 2016 17:38
@AdySan cd340 driver?
and me-no-dev just reported the driver in the update link to be working fine for him
FWeinb
@FWeinb
Jan 12 2016 17:41
For me too.
tzapu
@tzapu
Jan 12 2016 17:42
FWeinb too :D
Aditya Tannu
@AdySan
Jan 12 2016 17:50
@tzapu oh thanks! I get Kernel panics/ random reboots with the earlier driver. Will definitely try this. Thanks!
Helio Machado
@crushedice2000
Jan 12 2016 19:18
@/all: What is this, a Ethernet port? No! It's a ESP8266!
ESP8266-ICSP, a genial invention of my father. I was looking for a 8-pin connector to flash my ESP-01, and he told me that Ethernet is handy and has 8 pins!
Now I have a new way to flash my ESP-01. It fits perfectly on the 8 pins of the female Ethernet!
P1120629.jpg
P1120624.jpg
P1120623.jpg
P1120625.jpg
Martin Ayotte
@martinayotte
Jan 12 2016 19:20
:-)
Aditya Tannu
@AdySan
Jan 12 2016 19:38
@crushedice2000 don't get it, where does the otehr end of the ethernet cable go?
Chris Elsworth
@celsworth
Jan 12 2016 19:39
into a custom breakout for usb-serial I guess
take care you don't plug your esp-01 into an actual ethernet network :D
Helio Machado
@crushedice2000
Jan 12 2016 20:29
@AdySan: @celsworth is clever. The other end is plugged into a broken NoceMCU w/o the ESP-12E that now is used as a ESP-01 flasher while waiting for a spare to fix it.
Helio Machado
@crushedice2000
Jan 12 2016 20:35
@celsworth: I'll buy some Notebook LAN network cable port dust plugs Desktop Router Switch NIC RJ45 network cable port Black (Ali description, read carefully) to put on the ESP to avoid some unexperienced person to plug a computer on it. Also I'll print adhesive tags with "don't use". :smiling_imp:
Helio Machado
@crushedice2000
Jan 12 2016 21:10
@tzapu: Thanks for your tutorial about the CH340 driver on OS X :smile_cat: The signed pkg works well on 10.11 El Capitán
beikeland
@beikeland
Jan 12 2016 21:32
@brutzler yeah, thats the crimper i use. Seems simple, but it makes perfect crimps every time after a little trial and error on how much preasure to apply
Martin Ayotte
@martinayotte
Jan 12 2016 22:36
@skorokithakis , I've received my SMD Push Buttons today, only 12 days after ordering, exceptional for eBay ! :-)
Stavros Korokithakis
@skorokithakis
Jan 12 2016 23:25
@martinayotte wow, i wish mine were that fast :/
Shane Burgess
@acropup
Jan 12 2016 23:54
I'm trying to figure out which pins support interrupts. This (ESP8266 wiki page)[http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations] says that GPIO0-15 support interrupts, and GPIO16 doesn't. Most ESP boards don't have that many pins, though, so I'm a little confused. Is it still safe to mark pins GPIO0-15 as interrupt-capable even if you don't have access to many of them?
The page also says that GPIO0-15 support INPUT_PULLDOWN pin mode, but I'm pretty sure I read in the code that only GPIO16 supports pulldowns. Is anyone else familiar with this?