These are chat archives for esp8266/Arduino

1st
Jan 2016
Stavros Korokithakis
@skorokithakis
Jan 01 2016 00:23
@Makuna why not use yield()?
Martin Ayotte
@martinayotte
Jan 01 2016 01:09
@skorokithakis , when I try to load your gerbers from your previous drop in gerbv, I got errors and pads are missing. I install Kicad 4.0 on my other machine, and load the project and generated gerbers/drill myself, it was Ok. So, I don't know what was wrong with your drop. For gerbmerge, I got it working but the drill is not Ok, it is wrong scale. BTW, in your design, I had to add to auxiliary axis to avoid problems, maybe you should do it too, that get rid of any negative coordinates.
Michael Miller
@Makuna
Jan 01 2016 01:13
@skorokithakis because Avr doesnt have such a thing, the code can work for all Arduino platforms. But the problem turned out to be something completely different, so it's off the hook.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 01:44
@martinayotte hmm, that's odd, the gerbs i sent you look fine in my gerbv
how do you add an auxiliary axis?
@martinayotte i had the same problem with the drill file as well
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:02
@ivankravets i just discovered that i couldn't flash my arduino nano because the default platformio parameters changed the baud rate
Martin Ayotte
@martinayotte
Jan 01 2016 02:03
@skorokithakis , there is a button in right toolbar to add origin axis to design, I've added it to lower left corner.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:04
@martinayotte i just saw it and added it, but gerbmerge still has the same problem :/
Martin Ayotte
@martinayotte
Jan 01 2016 02:05
@skorokithakis , if your gerber are Ok in gerbv on your side, then it is maybe good, I don't know why I got all those errors in my main workstation, which still Ubuntu12.04, this is why I didn't upgrade Kicad yet, requiring 14.04.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:05
hmm, that's odd
yeah, both gerbv and gerbview are happy with mine
Martin Ayotte
@martinayotte
Jan 01 2016 02:07
Yes, gerbmerge still an issue, it is a scaling problem, the drill are there but too small and not at proper location
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:07
it's too bad, gerbmerge looks like a great tool
for me, it's not even producing the drills
it's throwing them all out because it's considering them to be outside the board
i even changed the gerbmerge source to not produce so many errors on the G05 and G90 lines
Martin Ayotte
@martinayotte
Jan 01 2016 02:08
I got it producing the drill by commenting guilty line with G04 comment
no, sorry , only my commenting with "; "
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:09
yep, you can also delete them
and you need to delete the T0 line at the bottom too
Martin Ayotte
@martinayotte
Jan 01 2016 02:09
yes
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:10
although yeah, the drills still have a problem and i don't know why
Martin Ayotte
@martinayotte
Jan 01 2016 02:11
I will investigate in the following days, since I wish Kicad-gerbmerge be compatible (in my old experience, it was Eagle-gerbmerge)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:14
@martinayotte it's not converting something properly
Martin Ayotte
@martinayotte
Jan 01 2016 02:15
unfortunately, some scaling and position problem. did you saw that in resulting *.drl ?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:15
no, my resulting .drl is always empty
it looks like it's not converting the drill file to mm properly
Martin Ayotte
@martinayotte
Jan 01 2016 02:16
oupps, sorry it is in *.xln, using default config
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:16
look at this:
there's a function called inBorders, that checks whether a drill is in the pcb borders
return (x >= self.minx) and (x <= self.maxx) and (y >= self.miny) and (y <= self.maxy)
x is 404, y is 2212
Martin Ayotte
@martinayotte
Jan 01 2016 02:17
you means, you still have some crash ?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:17
no, i'm just going through the code
it looks like it's considering the valid drills to be outside the board
and it's deleting them
Martin Ayotte
@martinayotte
Jan 01 2016 02:18
for target board size, I limitted it to huge one
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:18
the problem is that it's misunderstanding the drill file
Martin Ayotte
@martinayotte
Jan 01 2016 02:20
For me, having set auxiliary axis to 0,0 and then outputting gerbers/drill, I had only those few syntax error on the *.drl. The result merge succeeded, but drill is not proper scale
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:20
yes, it's because it's making some mistake while calculating coordinates
yay
i got it to wokr
work
Martin Ayotte
@martinayotte
Jan 01 2016 02:23
Lets see in the following days if we can get a fix
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:24
that'd be good
you're right, though, it's scaling things wrong
Martin Ayotte
@martinayotte
Jan 01 2016 02:24
Is that prevent you to send your design to dirtypcb ?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:25
i already sent it by paneling by hand, but yes, the gerbmerge output can't be sent, it's all wrong
it would just be much nicer if gerbmerge worked
it would be much easier to make changes to the design
i think there's a problem if you use mm, but kicad only uses mm
Martin Ayotte
@martinayotte
Jan 01 2016 02:30
At least, your design is now in manufacturing ... We will narrow that gerbmerge problem sooner or later, because it is not limitted to copy/paste same design, when I used it 2 years ago, it was to merge 5 different PCBs into single
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:31
oh hmm
does the fab cut the panels as well, or do you have to do it?
Martin Ayotte
@martinayotte
Jan 01 2016 02:31
Yes, 5 small designs into a single 10cmX10cm
Cut them with Dremmel, since I didn't ask for Panelization fee
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:33
oh, right
Martin Ayotte
@martinayotte
Jan 01 2016 02:35
I'm going to sleep, so, have an Happy New Year for you and all others !
Stavros Korokithakis
@skorokithakis
Jan 01 2016 02:35
happy new year martin!
Martin Ayotte
@martinayotte
Jan 01 2016 02:36
Ciao !
Helio Machado
@0x2b3bfa0
Jan 01 2016 13:25

@/all: Happy New Year!

Christmas Tree

Stavros Korokithakis
@skorokithakis
Jan 01 2016 13:34
happy new year, @crushedice2000!
Mario Mikočević
@mozgy
Jan 01 2016 13:39
meunin' and Happy New Year everyone
FWeinb
@FWeinb
Jan 01 2016 13:47
Will there be a certificate store on the esp using a fingerprint to just allow a certain certificate is a bit brittle.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:22
@FWeinb brittle how?
by the way, it seems that the minimum trace width for ESP power is about 0.05mm, @martinayotte, so even 0.25 should be more than enough, no?
FWeinb
@FWeinb
Jan 01 2016 14:24
If the certificate is renewed it would get a new fingerprint. So a letsencrypt cert is good for 90days.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:25
@FWeinb, oh, you're hashing the entire cert?
you're supposed to only fingerprint against the root usually
Chris Elsworth
@celsworth
Jan 01 2016 14:26
@skorokithakis I used 0.3mm for my esp power traces and it was absolutely fine
FWeinb
@FWeinb
Jan 01 2016 14:26
Yeah, that would get you as secure as possible. That would make sure you connect to "your" page.
Chris Elsworth
@celsworth
Jan 01 2016 14:26
unless you're really pushed for space there's no need to try and stick to the minimums.. bigger is always better for traces, less impedance
my data traces are 0.1mm iirc
FWeinb
@FWeinb
Jan 01 2016 14:27
If you only use the root fingerprint anyone could get a cert of letsencrypt and fake the connection.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:27
@celsworth true, it's just that the 0.5mm advice left me thinking that 0.25 wasn't enough, but it looks like it's multiple times the minimum
@FWeinb well, the idea is that letsencrypt can be trusted to not give random people certs
@FWeinb in that case, just use a self-signed cert, which is good forever
FWeinb
@FWeinb
Jan 01 2016 14:28
What? letsencrypt will give anyone a certificate.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:29
@FWeinb it won't give anyone a certificate for your domain
Chris Elsworth
@celsworth
Jan 01 2016 14:29
@skorokithakis http://circuitcalculator.com/wordpress/2006/01/31/pcb-trace-width-calculator/ .. this reckons a 0.3A (300mA, the most the esp will EVER use) trace needs to be 0.006mm. so yeah I'm not going to worry about using 0.3mm :)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:29
first you verify that the certificate is good (i.e. signatures and domains match) and then that it's trusted (i.e. that you trust the issuer)
@celsworth yeah, exactly
@celsworth although kicad said 0.06
Chris Elsworth
@celsworth
Jan 01 2016 14:30
there are many variables, like how much temperature rise you're prepared to accept
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:30
yep
FWeinb
@FWeinb
Jan 01 2016 14:30
Yeah. But when I only verify the fingerprint of the root ca than I gain nothing for authenticity.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:30
i used 0.4A, 20 deg rise, 20mm length
@FWeinb you're supposed to verify that the certificate is good for the domain, and then check the signature of the CA and verify that you trust the CA
Chris Elsworth
@celsworth
Jan 01 2016 14:31
@skorokithakis with that I get 0.006mm
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:31
then you are sure that the certificate is authentic
Chris Elsworth
@celsworth
Jan 01 2016 14:31
oh wait, what thickness
kinda important :D
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:31
@celsworth haha, hmm
Chris Elsworth
@celsworth
Jan 01 2016 14:32
the fab will tell you what they use, or you can select from
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:32
@celsworth with your tool and my parameters i get 0.0725
with default thickness
so something's off :smile:
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:32
@FWeinb ooh, that's not good
Chris Elsworth
@celsworth
Jan 01 2016 14:32
@skorokithakis well. I think we can agree, either way, that 0.3mm is more than enough, so I'm going to stick with that for power ;)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:32
yep
i used 2 os/ft^2 for thickness
oz*
oh, wait, this is for external layers
internal layers is about double that
Chris Elsworth
@celsworth
Jan 01 2016 14:33
yeah.. yours are?
unless you're diong 4 layer board or something crazy?
FWeinb
@FWeinb
Jan 01 2016 14:33
And with just a fingerprint of the root ca it won't give you authenticity.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:33
oh, that's what it means?
i thought it meant "external" as in "not covered by the mask"
Chris Elsworth
@celsworth
Jan 01 2016 14:34
yeah, traces between two other pcb layers
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:34
@FWeinb why not?
@celsworth ah, right
Chris Elsworth
@celsworth
Jan 01 2016 14:34
traces you can see on top or bottom = external
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:34
i see, hm
FWeinb
@FWeinb
Jan 01 2016 14:34
The fingerprint of the root ca is the same for every cert that letsencrypt is issuing.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:35
@FWeinb yes, and you're supposed to always check that the cert you're checking is valid for the domain
i don't see the problem
Chris Elsworth
@celsworth
Jan 01 2016 14:35
@skorokithakis generally for 4 layer boards (or more) you keep ground plane on the bottom and vcc on the top to keep them as far away from each other as possible, then data traces in the middle, anyway
FWeinb
@FWeinb
Jan 01 2016 14:35
ESP isn't checking the domain.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:35
@celsworth ah, that sounds like good practice
@FWeinb then anything you do is broken, you have to check the domain first, otherwise game over
FWeinb
@FWeinb
Jan 01 2016 14:39
This will break when github will reissue there cert for *.github.com
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:41
@FWeinb how does it calculate the fingerprint?
FWeinb
@FWeinb
Jan 01 2016 14:42
It just used the on of the current cert of api.github.com
Chris Elsworth
@celsworth
Jan 01 2016 14:42
I'm no ssl expert but I thought the proper way to do this was to start at the root and check its issued by a trusted root, then follow the chain up
but maybe this is beyond the esp's capabilities
Mario Mikočević
@mozgy
Jan 01 2016 14:49
HA! Found it why I had LmacRxBlk:1 !
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:50
what? :P
Mario Mikočević
@mozgy
Jan 01 2016 14:50
browser wasnt nice to my esp :D
I kinda forgot style="width:640px;height:480px;"
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:51
haha
Mario Mikočević
@mozgy
Jan 01 2016 14:51
so browser spammed my esp for calculating page size
Stavros Korokithakis
@skorokithakis
Jan 01 2016 14:52
ouch
Mario Mikočević
@mozgy
Jan 01 2016 14:53
lovely, my arducam project is finally working on bench
ystrem
@ystrem
Jan 01 2016 14:53
@mozgy What camera do y use ?
Mario Mikočević
@mozgy
Jan 01 2016 14:54
@ystrem ArduCAM - http://www.arducam.com/
2Mpix version
FWeinb
@FWeinb
Jan 01 2016 14:56
Is that one working on an esp?
Mario Mikočević
@mozgy
Jan 01 2016 14:57
yes it is
FWeinb
@FWeinb
Jan 01 2016 14:57
That is awesome.
Mario Mikočević
@mozgy
Jan 01 2016 14:57
I'll publish my sketch in a day or two ..
FWeinb
@FWeinb
Jan 01 2016 14:58
Are there some docs on what TLS and ssl ciphers the ESP supports?
Markus
@Links2004
Jan 01 2016 15:00
SSL_AES256_SHA + SSL_AES128_SHA
FWeinb
@FWeinb
Jan 01 2016 15:01
Thanks!
Stavros Korokithakis
@skorokithakis
Jan 01 2016 15:02
does anyone know if i can power a nodemcu with 3V3?
or 12V, i guess
FWeinb
@FWeinb
Jan 01 2016 15:10
@Links2004 The chunked transmissin is broken I think. I get some random binary noise at the end of my string.
Markus
@Links2004
Jan 01 2016 15:10
@FWeinb you mean httpClient?
FWeinb
@FWeinb
Jan 01 2016 15:10
Yes.
Markus
@Links2004
Jan 01 2016 15:17
have tested it again, i only get the string out that i send from my php script chunked an normal (identity) works fin.
ystrem
@ystrem
Jan 01 2016 15:18
@mozgy ArduCam looks great :)
Markus
@Links2004
Jan 01 2016 15:18
asdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölf
<?php
flush();
ob_flush();
?>
asdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölf
[HTTP] getString(200): asdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölf 
asdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölfkölsadfkölsadkfasdasdfölsakdfölksadölf
FWeinb
@FWeinb
Jan 01 2016 15:18
@Links2004 Will see if my nginx is messing with something.
Markus
@Links2004
Jan 01 2016 15:19
i use apache for testing
FWeinb
@FWeinb
Jan 01 2016 15:20
Okay nginx acted strange after updating the SSL stuff. Everything sorted now. Thanks for looking into it.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:15
does anyone know what the boot mode represents? the docs are super unclear https://github.com/esp8266/Arduino/blob/master/doc/boards.md#boot-mode
Markus
@Links2004
Jan 01 2016 16:17
whats the exact question? there are 3 boot modes 2 make sense for usage with arduino
Martin Ayotte
@martinayotte
Jan 01 2016 16:17
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:18
@Links2004 i'm seeing boot modes 3,6, 3,7, 3,0
Markus
@Links2004
Jan 01 2016 16:18
the meaning of the second number is not known,
all are Flash mode (booting your sketch)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:19
oh, the first one is the significant one? thanks
Markus
@Links2004
Jan 01 2016 16:19
the first value respects the pin setup of the Pins 0, 2 and 15. :)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:19
@martinayotte thanks, that clarifies it
@Links2004 right, i wasn't sure if it was the first or the second by the way the docs are written
Martin Ayotte
@martinayotte
Jan 01 2016 16:20
The first number, 3, is RST by "Software"
Markus
@Links2004
Jan 01 2016 16:20
example rst cause:2, boot mode:(3,6)
2 = reset pin
3,6 = flash and what ever :)
Martin Ayotte
@martinayotte
Jan 01 2016 16:24
@Links2004 , what about the 6 in (3,6) ?
Markus
@Links2004
Jan 01 2016 16:25
the meaning of the second number is not known, no documentation form espressif like the most times.
Martin Ayotte
@martinayotte
Jan 01 2016 16:25
:-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:31
oh, damnit, is it because reset is floating?
bleh
Martin Ayotte
@martinayotte
Jan 01 2016 16:31
Missing PullUp ? doh ! :-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:32
yeah :(
these breakout boards are ridiculously bad
i can't believe they cost as much as the esp
Martin Ayotte
@martinayotte
Jan 01 2016 16:33
That why you designed your ...
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:33
yep
can't wait for them to arrive
at least those should work properly :smile:
Chris Elsworth
@celsworth
Jan 01 2016 16:34
I almost wish those white breakout boards had no pullups at all
as it is, they've done a half-assed job
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:34
yeah :(
they're ridiculous
Chris Elsworth
@celsworth
Jan 01 2016 16:35
if it had none then at least its clear you have to do it all yourself and they are simply a way to get an esp onto a breadboard (which would be fine, if thats what they were designed for)
but adding a couple of pullups then leaving others missing is silly
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:35
yep :/
Martin Ayotte
@martinayotte
Jan 01 2016 16:36
There are some worst : ESP-201 with serial head on bottom, trying to unsolder and solder it on top make pads broken and board unusable
Stavros Korokithakis
@skorokithakis
Jan 01 2016 16:53
ouch, that sounds bad
but these white ones are just useless, i'm going to throw them away
probably desolder the esp i soldered on them, too
does anyone know the nodemcu voltage range?
Mario Mikočević
@mozgy
Jan 01 2016 17:06
lazy programmers .. no commits today :D ;)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:10
it's new year's :P
does anyone know of a way to PWM 12V with an ESP?
i tried MOSFETs but they don't deliver the full 12V
Markus
@Links2004
Jan 01 2016 17:11
@skorokithakis what mos do you use, normally the voltage drop is very low.
Mario Mikočević
@mozgy
Jan 01 2016 17:11
regarding 'new year's coding' I do remember certain openssh fiasco :D
@mozgy haha :P
Markus
@Links2004
Jan 01 2016 17:14
@skorokithakis the VGS is good fore both (will work with 3.3V) how your schematic looks like?
shut look like this:
nmos
may more leds ;)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:17
hmm, you're pulling the pin down?
Markus
@Links2004
Jan 01 2016 17:18
there are transistor in? you have mos or?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:18
it's a mosfet, i just used that module because i couldn't find the mosfet one
Markus
@Links2004
Jan 01 2016 17:19
yes needed for mos or the LED will blink at boot.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:19
oh interesting
let me add one
the thing is that if i apply 12V to the gate, i get 12V out, but if i apply 3V3 to the gate, I get around 6V out
and now the esp is not responding, damn
Markus
@Links2004
Jan 01 2016 17:20
a n mos shorts to ground you not get 12V aout
compare it with my image above, you need to wire like this or it will not work,
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:21
hmm, well, i mean the LEDs are fully bright, if i connect it to 3V3, the leds are about half-bright
brutzler
@brutzler
Jan 01 2016 17:21
@skorokithakis: what software did you use for your schematic? Is the ESP-macro of your own?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:21
@brutzler i used kicad, i downloaded the ESP from github
brutzler
@brutzler
Jan 01 2016 17:22
kicad? new for me. only know eagle and target3001
Markus
@Links2004
Jan 01 2016 17:22
@skorokithakis phone will be back later
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:22
kicad is much better than eagle in my opinion
and it's open source
brutzler
@brutzler
Jan 01 2016 17:22
for what os?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:22
all of them
brutzler
@brutzler
Jan 01 2016 17:22
ok will look for them. thx for info
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:23
n
np
brutzler
@brutzler
Jan 01 2016 17:23
is kicad only for schematic?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:24
@brutzler no, it does routing and everything too http://github.com/skorokithakis/tiny-ESP8266-breakout
Martin Ayotte
@martinayotte
Jan 01 2016 17:24
For the 3D modeling, I think it is only in the 4.0 version.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:24
possibly yes
i love the 3d view
Martin Ayotte
@martinayotte
Jan 01 2016 17:25
Yes, but it means more work for creating new devices ;-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:25
@martinayotte i just use whatever is there, so it's not more work :smile:
brutzler
@brutzler
Jan 01 2016 17:25
looks nice (your own "nodemcu")
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:26
yep, except very small
2cm squared or so
i should update the images, it looks different now (more pullups, as @martinayotte suggested)
brutzler
@brutzler
Jan 01 2016 17:28
can kicad export files for nc milling of pcbs? -> "isolation milling" is this term correct?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:29
i'm not sure what that is
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:30
oh
it does HPGL exports
is that what you use?
Martin Ayotte
@martinayotte
Jan 01 2016 17:32
I think Kicad support that according to http://reprap.org/wiki/PCB_Milling
brutzler
@brutzler
Jan 01 2016 17:32
I will install and see ;-)
Is kicad easy tio learn/use? Or do I need a master of science to get results?
Mario Mikočević
@mozgy
Jan 01 2016 17:33
hmmm, interesting link @brutzler , my firefox crashes on it :)
brutzler
@brutzler
Jan 01 2016 17:35
@mozgy: open youtube and search for "isolationsfräsen"
Mario Mikočević
@mozgy
Jan 01 2016 17:35
ah, cnc milling
friend had that .. not good enough for smd :)
Martin Ayotte
@martinayotte
Jan 01 2016 17:37
Yes, Kicad is pretty easy to learn. You just need to remember that it is different from Eagle, schematic components and pcb models are seperate, they are not tight together like in Eagle. That way, you can associate different packages to the same schematic components.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:37
@brutzler well, i designed my first pcb in one or two days
and i hadn't even touched a schematic before
brutzler
@brutzler
Jan 01 2016 17:38
sounds good. already downloading 230MB... ;-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:39
@brutzler make sure you get v4
brutzler
@brutzler
Jan 01 2016 17:39
4.0.1 Stable Release
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:41
yep
brutzler
@brutzler
Jan 01 2016 17:41
Another question:
Did anybody use a cam with an ESP? IP-Cam over WiFi? I only used one with a raspberry.
This was only plug and play
Mario Mikočević
@mozgy
Jan 01 2016 17:42
<--- working on ArduCam as we speak
not exactly what you probably mean but it's close
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:44
bleh, i think i fried my esp somehow
brutzler
@brutzler
Jan 01 2016 17:45
ah ArduCam is the slogan...ok will ask aunt google
I think on a ESP + batterie + cam -> mobile IP-cam
Mario Mikočević
@mozgy
Jan 01 2016 17:46
@brutzler that's arducam :)
Martin Ayotte
@martinayotte
Jan 01 2016 17:46
@mozgy provided that link this morning http://www.arducam.com/
@skorokithakis how ? (you still have 29 other, right ?)
brutzler
@brutzler
Jan 01 2016 17:47
oh sorry for. not always online ;-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:47
@martinayotte i do :P i don't know how, unfortunately, it was working and now it's not
Martin Ayotte
@martinayotte
Jan 01 2016 17:48
:-(
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:48
yeah, weird
brutzler
@brutzler
Jan 01 2016 17:50
hmm still have two raspicams in my box. anybody knows, if they are working with esp?
Mario Mikočević
@mozgy
Jan 01 2016 17:52
they are but you have to program talking to them
arducam steps in and makes SPI interface in between
brutzler
@brutzler
Jan 01 2016 17:52
and arducam is ready to use?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 17:52
what's the best ESP version? 12E?
Mario Mikočević
@mozgy
Jan 01 2016 17:53
yes, arducam has SPI interface and from that link you use theirs library
brutzler
@brutzler
Jan 01 2016 17:53
@mozgy: then arducam is only a software?
Mario Mikočević
@mozgy
Jan 01 2016 17:54
@brutzler it's both, library and whole cam package
brutzler
@brutzler
Jan 01 2016 17:55
ok, but not so cheap :-(
Mario Mikočević
@mozgy
Jan 01 2016 17:56
thats 5Mpix
they have 2Mpix version aswell
but yes, not cheap, probably 'cos of SPI interface
and only one on the market atm
Mario Mikočević
@mozgy
Jan 01 2016 18:00
should be very nice if actualy it is only I2C
hmm, I might purchase it for testing ..
brutzler
@brutzler
Jan 01 2016 18:01
but what software/lib?
Mario Mikočević
@mozgy
Jan 01 2016 18:02
as I said/wrote - on www.arducam.com is library
brutzler
@brutzler
Jan 01 2016 18:03
yes, but will it work with this different type (SPI<->I2C)
Mario Mikočević
@mozgy
Jan 01 2016 18:04
very probably yes, since it has support for quite a few OVxxxx and others, and a lot of low level interfacing with cam chipsets
brutzler
@brutzler
Jan 01 2016 18:05
OK. will buy one for playing in the cold season.....
Mario Mikočević
@mozgy
Jan 01 2016 18:06
@brutzler from library ->
  Now supported controllers:
        -    OV7670
        -    MT9D111
        -    OV7675
        -    OV2640
        -    OV3640
        -    OV5642
        -    OV7660
        -    OV7725
        - MT9M112        
        - MT9V111
        - OV5640        
        - MT9M001            
        - MT9T112
        - MT9D11
brutzler
@brutzler
Jan 01 2016 18:07
match!
Dmitry Kireev
@kireevco
Jan 01 2016 18:07
@brutzler cold season... is there snow out there?:)
brutzler
@brutzler
Jan 01 2016 18:08
yep little bit. yesterday evening we got some.
Mario Mikočević
@mozgy
Jan 01 2016 18:09
@brutzler but beware, OV7670 is only QVGA aka 640X480
Markus
@Links2004
Jan 01 2016 18:10
@skorokithakis have you get it working ?
Martin Ayotte
@martinayotte
Jan 01 2016 18:13
Beware also that those cams don't provide real time streaming, frame rate is pretty low, and ESP can't handle real time too.
brutzler
@brutzler
Jan 01 2016 18:13
@mozgy: I wrote playing... LOL
@martinayotte but less resolution, better performance (and less quality)
Mario Mikočević
@mozgy
Jan 01 2016 18:14
@martinayotte my plan is time lapse ..
Martin Ayotte
@martinayotte
Jan 01 2016 18:15
@brutzler , of course.
@mozgy , what do you means ?
Mario Mikočević
@mozgy
Jan 01 2016 18:16
@martinayotte snap picture every 30 sec ..
Stavros Korokithakis
@skorokithakis
Jan 01 2016 18:16
@Links2004 no, i think i fried the ESP :/
brutzler
@brutzler
Jan 01 2016 18:17
think the raspi-cams have a different interface. there is a 15pin-connector.
hmmm: raspi+batterie+raspi-cam+WiFi-dongle -> mobile-IP-cam (release2)
But this is a off topic for this board....
Martin Ayotte
@martinayotte
Jan 01 2016 18:17
@mozgy , so, you can even store the picture in the SPIFFS ... ;-)
Mario Mikočević
@mozgy
Jan 01 2016 18:17
@brutzler go for raspi zero :)
@martinayotte already on it :)
brutzler
@brutzler
Jan 01 2016 18:17
zero? there is no connector for cam
Martin Ayotte
@martinayotte
Jan 01 2016 18:18
Zero doesn't have networking, although some made piggyback ESP or USB Dongle. I'm prefer OrangePi-PC for only $15
Also, rumor this morning : a new OrangePi-One should come out soon for $9
brutzler
@brutzler
Jan 01 2016 18:23
@martinayotte where do buy this orange pi for 15 bucks?
raspberry, banana, orange.... what will be next?
Martin Ayotte
@martinayotte
Jan 01 2016 18:26
@brutzler , from the manufacturer thru AliExpress, $15 + $4 for shipping. Beware that they have other boards too, more expensive, the PC one is currently the cheapest.
There is another interesting one from another manufacturer, the NanoPi, but too expensive.
Dmitry Kireev
@kireevco
Jan 01 2016 18:32
@martinayotte can't find orange pi on aliexpress, what is it called there?
nanopi looks good
Helio Machado
@0x2b3bfa0
Jan 01 2016 18:33
@kireevco: No snow in Spain now, however it's expected in a few days :)
http://www.aemet.es/es/eltiempo/prediccion/provincias?p=16&w=2&o=pais
Stavros Korokithakis
@skorokithakis
Jan 01 2016 18:34
@Links2004, no dice, the leds are very very low in brightness
@Links2004 oh, that 10k resistor in series limits their brightness too much
Markus
@Links2004
Jan 01 2016 18:36
@skorokithakis if you have a 12V stripe you can let it out since the stripe has all the resistors that needed :)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 18:36
@Links2004 yep, that's what i did now, but they're still much lower than when i just apply 12V to the gate directly
Markus
@Links2004
Jan 01 2016 18:38
strange, what happens when you connect the gate to 3V3 or 5V?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 18:40
good idea, let me try that
@Links2004 5V is full brightness, 3V3 is about half brightness, same as a pin with analogWrite(PIN, 1023)
Martin Ayotte
@martinayotte
Jan 01 2016 18:52
@skorokithakis , Are you sure those MOSFET are the same as the specs you provided earlier, because Vgs were Ok in the specs.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 18:53
@martinayotte yep, it says MTP3055V on it: http://www.ozitronics.com/data/mtp3055.pdf
Vgs says +-20 Vdc
does that mean +-20 V?
@skorokithakis , the +-20V is maximum rating, the value to look is in On Characteristic : Gate Threshold Voltage Min 2V, Typ 2.5V Max 4V.
@skorokithakis , the other possible solution/workaround is to have 2 stages of MOSFETs, one shorting the 5V of the second gate. Big Hack here ...
You can also try to find a better MOSFET with Vgs MAX lower than 3V. Personally, I have 100 small SOT-23, AO3402, Vgs Max is 1.5V, they can handle 30V/4A, so plenty enough for driving relays.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:05
@martinayotte those are bad too, huh/
i just realized i can't use these SOT-23 mosfets to prototype with :/
@martinayotte the AO3402 says Vgs max 12V as well
Martin Ayotte
@martinayotte
Jan 01 2016 19:07
@skorokithakis , no, there Vgs Max is 2.5V, I have hundred of those too, but they have less power : 60V/300mA
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:07
oh
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:08
oh, very nice, thanks
does that fit multiple footprints?
Martin Ayotte
@martinayotte
Jan 01 2016 19:09
The AO3402 is the one I've mentioned, I will kept my inventory high for that price.
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:10
Martin Ayotte
@martinayotte
Jan 01 2016 19:10
Of course, if you need 12A like the one you used, we can try to find some with low Vgs
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:10
i'll have to calculate how much i need, because it's a long led strip
Martin Ayotte
@martinayotte
Jan 01 2016 19:11
Yes, this is the good specsheet
Yes, you need to figure out how much Amps you need
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:12
but the specsheet says 12Vgs max on the first page, no?
brutzler
@brutzler
Jan 01 2016 19:13
@skorokithakis . just playing around with kicad. Can you provide the link for the esp lib?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:14
brutzler
@brutzler
Jan 01 2016 19:14
:+1:
hmm... copied ESP8266.dcm and ESP8266.lib into C:\Program Files\KiCad\share\kicad\library
But no ESP available :-(
Martin Ayotte
@martinayotte
Jan 01 2016 19:21
@skorokithakis , that 12V is the max that can be apply, not the threshold. BTW, I've found a big one that will fill any need IRFB3034, 40V/195A with Vgs threasold 2.5V
brutzler
@brutzler
Jan 01 2016 19:23
oh.. got it. only copy is not enough. had to import the lib too
Martin Ayotte
@martinayotte
Jan 01 2016 19:23
@brutzler , yes, preferences/libraries. It is true also for PCB, not only Schematic
brutzler
@brutzler
Jan 01 2016 19:24
@skorokithakis : there is a nodemcu lib from you..... heia!
Edit: oh ... only rev 0.9
Dmitry Kireev
@kireevco
Jan 01 2016 19:25
@martinayotte thank you sir
@martinayotte I thought it is a small one
Martin Ayotte
@martinayotte
Jan 01 2016 19:27
@kireevco , not as small as Pi-Zero, but almost like a credit card. I have 2 of those and waiting for 2 other
Martin Ayotte
@martinayotte
Jan 01 2016 19:35
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:48
@martinayotte that's fantastic, thank you!
@brutzler I might just make the next versions as well, I just haven't needed them
Martin Ayotte
@martinayotte
Jan 01 2016 19:49
I've just ordered some ... :-)
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:50
Same :-)
@martinayotte what's the relevant thing in the data sheet you're looking at? I can't find the value
Oh, Vgs threshold
What did my previous ones list?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 19:57
Hmm, 2.7 typical
Martin Ayotte
@martinayotte
Jan 01 2016 19:58
Yes, there is the Vgs max like the 12V you mentioned which is the max that can be apply without destroy, and the Vgs threshold max which define at which voltage the MOSFET will be satured
On my datasheet downloaded from IR (Internal Rectifier), I got 2.5V for Max, no typical mentioned http://www.irf.com/product-info/datasheets/data/irlb3034pbf.pdf
Stavros Korokithakis
@skorokithakis
Jan 01 2016 20:20
Oh, great, thank you
Mario Mikočević
@mozgy
Jan 01 2016 21:23
@Links2004 this does not work ->
  if( !WiFi.isConnected() ) {
    Serial.println( "Disconnected AGAIN!" );
    WiFi.reconnect();
    delay( 1000 );
  }
when problems started I've got this on Serial ->
state: 5 -> 2 (6c0)
rm 0
pm close 7
Disconnected AGAIN!
state: 2 -> 0 (0)
f r0, Disconnected AGAIN!
scandone
f 0, Disconnected AGAIN!
scandone
f -180, Disconnected AGAIN!
scandone
f r0, Disconnected AGAIN!
scandone
f 0, Disconnected AGAIN!
and so on ...
brutzler
@brutzler
Jan 01 2016 23:55
a little bit off topic, but you started me to use kicad:
Working with kicad now since several hours. Worked through a german tutorial (unfortunately this is 2 years old)
Made a schematic, generated a netlist and then assigned footprints to it. But when I want to read in the netlist into Pcbnew, I only get errors, that there is no footprint defined for all items???? Did I forget something?
Stavros Korokithakis
@skorokithakis
Jan 01 2016 23:57
yes
you need to save it and generate the netlist again
Markus
@Links2004
Jan 01 2016 23:57
@mozgy you have it in the loop? it may called to fast, since reconnect will not block is only trigger the reconnect.
try to add "WiFi.waitForConnectResult"
Stavros Korokithakis
@skorokithakis
Jan 01 2016 23:57
after you associate all the footprints
Martin Ayotte
@martinayotte
Jan 01 2016 23:57
@brutzler , The first button in the toolbar is Schematic, the second is CvPcb, it is the one where you decide the footprint for each components, then you can go into PCB
brutzler
@brutzler
Jan 01 2016 23:59
@skorokithakis: Bingo! Made netlist again, and it worked. thx