These are chat archives for esp8266/Arduino

4th
Jan 2016
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:11
@martinayotte shouldn't this mosfet completely fire at 3V3? https://www.fairchildsemi.com/datasheets/FQ/FQP30N06L.pdf
Chris Elsworth
@celsworth
Jan 04 2016 01:12
is it not Vgs?
10V?
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:12
vgs threshold says 2.5 max
Angus Gratton
@projectgus
Jan 04 2016 01:19
threshold tells you when it will start to conduct, but not when it's "completely" on, as in has the lowest drain/source resistance
figure 1 & figure 2 in the datasheet give you some idea what performance you can expect from Vgs=3.3V
whether Vgs=3.3V is good enough for you depends on how much current you want to pass, how much resistance (voltage drop and/or heat dissipation) is acceptable
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:26
@projectgus doesn't this graph mean that it can conduct about 15 amps at 3V3?
with 12Vds
i think i'm reading it right
Chris Elsworth
@celsworth
Jan 04 2016 01:35
I need to learn more about fets :/
don't really understand them fully
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:35
i don't understand them at all :P
i just know my leds won't switch fully on :(
Martin Ayotte
@martinayotte
Jan 04 2016 01:36
@skorokithakis , this MOSFET specs says that Vgs thresold is 2.5V, so at 3.3V it must be saturated properly ... Did you choose this one because of better price over IRLB3034 ?
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:36
@martinayotte no, i bought these two months ago
i bought the IRLB3034 as well, but they won't arrive for another month
Chris Elsworth
@celsworth
Jan 04 2016 01:37
are they a good general purpose fet? IRLB3034?
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:37
the FQP is the one i tried and didn't work
Chris Elsworth
@celsworth
Jan 04 2016 01:37
I should get some
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:37
@celsworth who knows, the FQPs came highly recommended, and based on their datasheet it seems like they should do the trick, but they don't seem to
i should try again tomorrow
i designed a very simple PCB for wifi-enabled LED strips
$7 wifi-enabled led controller = fantastic
i also got a few of these, which i'm hoping will work well: https://www.fairchildsemi.com/datasheets/2N/2N7000.pdf
but they only do about 100 mA
Martin Ayotte
@martinayotte
Jan 04 2016 01:41
I've ordered some IRLB3034, but I won't order some FGQP30N06L ! If it is like yesterday's chat about switches, I don't want to me responsible to any China MOSFET shortage :-)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:42
haha
well, i have ten FQPs, and i didn't manage to get them working properly
i'll try again and let you know, maybe i made a mistake
one thing i can tell you is that my tiny breakout board is already proving very useful
it's simpler to use it in my new designs than use a bare esp with all the resistors again
Martin Ayotte
@martinayotte
Jan 04 2016 01:43
About your 2N7002, don't worry about them, their perfect usage is Voltage Translators
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:43
hmm, you mean from 3v3 to 5v?
Martin Ayotte
@martinayotte
Jan 04 2016 01:43
yes ! or any other voltage
Or small relay driver ...
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:45
yes, very true
Martin Ayotte
@martinayotte
Jan 04 2016 01:45
I still have them in my inventory, althout gradually replace them by AO3402
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:46
how come?
oh, looks like the AO3402 is much, much better
4Amp Id versus 100mA
that seems like too big a difference to be true
welp, bought anyway
by the way, this is the PCB i made for wifi-enabling led strips: https://i.imgur.com/Ro9ZnkN.png
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:51
@martinayotte can the AO3402 really drive that much current?
Martin Ayotte
@martinayotte
Jan 04 2016 01:52
Oh ! so your board will have kind of piggyback shield ! :-)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:52
yep!
i'll attach it with headers or just solder it on
but the tinybreakout is two-sided and has smd resistors on the bottom
so i'm not sure if it can be easily soldered on another pcb
Martin Ayotte
@martinayotte
Jan 04 2016 01:56
About AO3402 with 4A rating, yes, it should be true. But if someone use it with not completely saturated Vgs, of course with the soo small package, it will simply explode. Thermal dissipation should be watched. (btw, I don't have inventory on 2N7002, but also on 2N7000 which the SMT version, inventory on TO92 will probably become museum pieces)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:57
haha
wait, isn't 2N7002 already SMD?
Martin Ayotte
@martinayotte
Jan 04 2016 01:58
Oh ! maybe I've reverse part number in all our discussions ... So, I've some 2N7000 in TO92
Stavros Korokithakis
@skorokithakis
Jan 04 2016 01:59
oh
Martin Ayotte
@martinayotte
Jan 04 2016 01:59
But, still perfect for low duty jobs like Voltage converter or small drivers for relays
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:00
yep
but eh, if you have an AO3402 and it's better, why not just use that
all these parts cost $2 per 100 anyway
they're pretty much free for hobby projects
Martin Ayotte
@martinayotte
Jan 04 2016 02:05
Few decades ago, my favorite was not those MOSFETs, but simple 2N3904/2N3906 for simple things, and for high current drivers MPSA13 NPN Darlington. But all those are obsoleted with MOSFETs. (BTW, in case you didn't know, for multiple drivers up to 500mA, ULN2308 chip is the way to go, although not with all it 8 outputs at the same time)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:07
@martinayotte do you mean ULN2803?
Chris Elsworth
@celsworth
Jan 04 2016 02:07
why does a mosfet need a driver? I thought they were very high impedance at the gate?
Martin Ayotte
@martinayotte
Jan 04 2016 02:07
Yes ! So, those ULN2803 is always hig in my inventory
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:07
wait, is this like multiple mosfets in one chip?
also what's a driver?
Martin Ayotte
@martinayotte
Jan 04 2016 02:08
@celsworth , No ! we are not talking about driver for mosfet, but simply all driving solution
Chris Elsworth
@celsworth
Jan 04 2016 02:08
oh, sorry :)
Martin Ayotte
@martinayotte
Jan 04 2016 02:10
@skorokithakis , yes, ULN2803 is 8 mosfet in single chip. the older ULN2003 (that I've used 20 year ago), has only 7 mosfet, but smaller packages
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:10
hmm, i can't say i understand what this chip does
oh
but how do you switch it on and off? all i see is 8 IN and 8 OUT pins
no gates
or is there one common gate?
Chris Elsworth
@celsworth
Jan 04 2016 02:13
common emitter
8 base, 8 collector
see section 6 of datasheet
I'm going to order some of those :)
Martin Ayotte
@martinayotte
Jan 04 2016 02:14
The gates are inputs, and drain ... But No ! Yes, you right, those are made with Darlington.
Anyhow, it still work the same way
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:15
oh huh, that's very useful
i'm going to buy the SMD and through-hole versions
Martin Ayotte
@martinayotte
Jan 04 2016 02:15
Maybe I should start searching equivalent in MOSFET, if they exist
Chris Elsworth
@celsworth
Jan 04 2016 02:16
aw ti will only let me order samples in SOIC
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:17
what's soic?
Chris Elsworth
@celsworth
Jan 04 2016 02:17
one of the smd types, I think
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:17
oh
Martin Ayotte
@martinayotte
Jan 04 2016 02:17
As I said, if only 7 are require, older ULN2003 is smaller in SMT than ULN2803 (SOIC6 vs SOIC20W)
You should have all thoses SMD types in your Kicad, if not, simply go to site I've provided to you
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:19
@martinayotte the kicad libs site?
@martinayotte this is also useful for footprints: http://www.element14.com/community/community/cadsoft_eagle/eagle_cad_libraries
Martin Ayotte
@martinayotte
Jan 04 2016 02:21
Yes, this is one, but I've provided one last week which I used a lot, in Japan, I'm trying to find it again right now
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:23
oh yes, i remember this, thank you
@martinayotte this might help: http://historio.us/
Martin Ayotte
@martinayotte
Jan 04 2016 02:25
(I won't touch historio.us with gloves)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:26
why not?
Martin Ayotte
@martinayotte
Jan 04 2016 02:26
I don't want to invite NSA into my home
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:26
haha, it's not the nsa
i made it
Martin Ayotte
@martinayotte
Jan 04 2016 02:28
It doesn't worth it ! Secure habbit ! still, you don't know what under the hood
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:28
true
man, this kicad library has a lot of components
and 3d models for everything
Martin Ayotte
@martinayotte
Jan 04 2016 02:32
The Japan site ? Yes ! I've only done few downloads on specific components, but there plenty ! 3D ? that would mean that even on my oldest Kicad, there is probably a 3D module, or that means they've have update all their libs with the newest 4.0
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:34
i think they did
i'm checking now
Martin Ayotte
@martinayotte
Jan 04 2016 02:35
So, all Release Dates are new ?
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:36
yep, works great with 4
yeah, release date aprin 2015
Martin Ayotte
@martinayotte
Jan 04 2016 02:36
If 3D was not there before, they should have past all their Christmas time doing those 3D models
Oh, maybe some version after mine but before 4.0, some staging one
So, enjoy !
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:38
thank you!
Martin Ayotte
@martinayotte
Jan 04 2016 02:38
I will have myself to learn about the 3D
Stavros Korokithakis
@skorokithakis
Jan 04 2016 02:43
maybe you can try sketchup
i think it exports to vrml, and it's very easy to work with
i'll have to go to bed now, but i can find some more info tomorrow for you if you want
good night all!
Martin Ayotte
@martinayotte
Jan 04 2016 02:49
Looking again at that Japan site, yes, it is marvellous ! About 3D, I need to look at 4.0 install done on my other machine last week. (I don't see "sketchup" on my older)
Martin Ayotte
@martinayotte
Jan 04 2016 03:02
I've done some search about "Octal MOSFET", didn't get much other than MAX4820-MAX4821, which is interesting, but not cheap, and in fact another kind of GPIO Expander, not that I was searching for ... So, maybe ULN2803 is still actual ...
Chris Elsworth
@celsworth
Jan 04 2016 03:08
how much power does a mosfet have to dissipate? I see some wiht huge heatsinks
maybe getting 8 of them into an IC just isn't possible
Martin Ayotte
@martinayotte
Jan 04 2016 03:19
Putting 8 2N7002 inside a single chip should not be big trouble. But no ones seems to have done it for some reason ! There are MOSFET like IRLB3034 discussed earlier which can out-stand 195A in a TO220 package, but I doubt the TO220 wires can stand that current.
Aditya Tannu
@AdySan
Jan 04 2016 03:53
anyone here use Adafruit sensor library? It should be possible to change the SCL/SDA pins right? Or is it using hardware I2C? https://github.com/adafruit/Adafruit_BMP085_Unified
Chris Elsworth
@celsworth
Jan 04 2016 03:56
its using Wire library, so yeah, you can change the pins when you init Wire
Wire.begin(sda, scl); before you use that library, I think
Aditya Tannu
@AdySan
Jan 04 2016 03:57
Ah, that's simple thanks
so this defaults to analog 4,5?
/**************************************************************************/
/*!
    @brief  Setups the HW
*/
/**************************************************************************/
bool Adafruit_BMP085_Unified::begin(bmp085_mode_t mode)
{
  // Enable I2C
  Wire.begin();

  /* Mode boundary check */
  if ((mode > BMP085_MODE_ULTRAHIGHRES) || (mode < 0))
  {
    mode = BMP085_MODE_ULTRAHIGHRES;
  }

  /* Make sure we have the right device */
  uint8_t id;
  read8(BMP085_REGISTER_CHIPID, &id);
  if(id != 0x55)
  {
    return false;
  }

  /* Set the mode indicator */
  _bmp085Mode = mode;

  /* Coefficients need to be read once */
  readCoefficients();

  return true;
}
Chris Elsworth
@celsworth
Jan 04 2016 04:00
defaults to SDA and SCL constants, looking them up
yeah 4 and 5
Aditya Tannu
@AdySan
Jan 04 2016 04:01
hmm thanks!
weird they just assume people would want to customize..
running two separate I2Cs should be an issue right, one set for an OLED display
and one for hte BMP
Chris Elsworth
@celsworth
Jan 04 2016 04:02
don't see why not :)
Aditya Tannu
@AdySan
Jan 04 2016 04:04
NODEMCU-DEVKIT-INSTRUCTION-EN.png
I want to use D9 and D10 for SCL, SDA. Will I need to disable serial somehow?
Chris Elsworth
@celsworth
Jan 04 2016 04:05
yeah you won't be able to call Serial.begin at all probably
since they are the default serial pins
unsure if the sdk will still try to print serial debug info though
Aditya Tannu
@AdySan
Jan 04 2016 04:07
well this library example crashes, not sure if it's because of me using D9, D10. It crashes even without that change.
```
load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
�>v��
 ets Jan  8 2013,rst cause:2, boot mode:(3,6)
Probably doesnt work on ESP8266 out of the box
Aditya Tannu
@AdySan
Jan 04 2016 04:32
hmm both version of the library crash on esp8266
ksum 0x42
csum 0x42
�����
Soft WDT reset

ctx: cont 
sp: 3ffef8e0 end: 3ffefac0 offset: 01b0

>>>stack>>>
3ffefa90:  3fffdad0 00000000 3ffeea64 40201c89  
3ffefaa0:  00000000 00000000 3ffeea88 40202c50  
3ffefab0:  00000000 00000000 3ffeeaa0 40100114  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,6)
Aditya Tannu
@AdySan
Jan 04 2016 06:19

Is there a better was to do this

WiFiClient client;
  const int httpPort = 80;
  if (!client.connect("api.wunderground.com", httpPort)) {
    Serial.println("connection failed");
    return;
  }

  Serial.print("Requesting URL: ");
  Serial.println(url);

  // This will send the request to the server
  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: api.wunderground.com\r\n" +
               "Connection: close\r\n\r\n");
  while(!client.available()) {
    delay(1000);
  }

It gets stuck forever in while(!client.available()) sometimes

sticilface
@sticilface
Jan 04 2016 07:17
@AdySan I use ESP8266HTTPClient lib.
example
    http.begin(path); //HTTP

    int httpCode = http.GET();

    if (httpCode) {
        if (httpCode == 200) {

            size_t len = http.getSize();
            if (len > bufsize) {
                ESPMan_Debugln("Receive update length too big.  Increase buffer");
                return false;
            }
            uint8_t buff[bufsize] = { 0 }; // max size of input buffer. Don't use String, as arduinoJSON doesn't like it!

            // get tcp stream
            WiFiClient * stream = http.getStreamPtr();
            // read all data from server
            while (http.connected() && (len > 0 || len == -1)) {
                // get available data size
                size_t size = stream->available();
                if (size) {
                    // read up to 128 byte
                    int c = stream->readBytes(buff, ((size > sizeof(buff)) ? sizeof(buff) : size));
                    if (len > 0) {
                        len -= c;
                    }
                }
                delay(1);
            }
            http.end();
            yield();
}
}
That copies to a buffer, but if you look at the lib, there is a getString too, which is easy
There are some constants missing from that example too like path and bufsize.
Aditya Tannu
@AdySan
Jan 04 2016 07:21
Thanks will take a look tomorrow, good night for now!
sticilface
@sticilface
Jan 04 2016 07:27
good night! more like good morning! :)
Mario Mikočević
@mozgy
Jan 04 2016 09:11
hheheh, reading chat from past few hours made me fill my shopping cart :)
Stavros Korokithakis
@skorokithakis
Jan 04 2016 11:58
@celsworth about the power dissipation, it depends. the FQP30N06L lists 32 Amps, which you need a heatsink for
Stavros Korokithakis
@skorokithakis
Jan 04 2016 13:27
@celsworth @martinayotte yeah, the FQP30N06L just doesn't want to saturate at 3V3
5V works fine
3V3 is low brightness
7.4 out of 12 volts when there's 3V3 at the gate
12V at 5V
Stavros Korokithakis
@skorokithakis
Jan 04 2016 13:46
hopefully the IRLB3034PBF will switch, its Vgs graph seems independent of Vds
Chris Elsworth
@celsworth
Jan 04 2016 14:27
woo, 2.1.0 rc1 :D
time to try sdk 1.5 methinks :)
Mario Mikočević
@mozgy
Jan 04 2016 14:29
oh? staged is out ? :D
Chris Elsworth
@celsworth
Jan 04 2016 14:29
dunno if its in staging yet, just been git tagged
Ivan Grokhotkov
@igrr
Jan 04 2016 14:32
not uploaded yet
internets in China are lousy
working through VPN and it so slooow...
Mario Mikočević
@mozgy
Jan 04 2016 14:35
how's China @igrr ? foggy ?
brutzler
@brutzler
Jan 04 2016 14:57
hi,
anybody worked with a ADS1115 breakout board yet?
Any chance for a ready-to-use lib with ESP?
Chris Elsworth
@celsworth
Jan 04 2016 14:57
I have one but not used it
it looked like a reasonably simple SPI protocol though, I think, hopefully won't be hard to get going
brutzler
@brutzler
Jan 04 2016 14:58
its I2C ;-)
Chris Elsworth
@celsworth
Jan 04 2016 14:58
oh is it, hmm
oh yes
that might be why I haven't used it yet ;)
brutzler
@brutzler
Jan 04 2016 14:58
4x16bit ADC sounds good. and for the price, I had to buy some :-)
Chris Elsworth
@celsworth
Jan 04 2016 14:59
yeah exactly, it went into my drawer of things I might use one day :D
paid a few cents for it or something
brutzler
@brutzler
Jan 04 2016 14:59
Me tooo. and now is the day to use :-)
Chris Elsworth
@celsworth
Jan 04 2016 14:59
I tend to use ADS7841 in the meantime
brutzler
@brutzler
Jan 04 2016 15:00
I have a PCF8591T too, with LDR and so on, but its less resolution
found a lib from adafruit, just right now. Its for arduino. hopefully it works. Will try.....
Ivan Grokhotkov
@igrr
Jan 04 2016 15:38
@mozgy yes and cloudy as well...
FWeinb
@FWeinb
Jan 04 2016 15:41
This is strange. I have a setter in a class that is just updating a pointer, but without delay(0) (which is basically esp_schedule()) after the assignment, the pointer isn't update immediately in the class.
Aditya Tannu
@AdySan
Jan 04 2016 15:42
@igrr Is the gh-pages branch a public website or are you using it for some other purpose? URL?
Chris Elsworth
@celsworth
Jan 04 2016 16:42
and as of an hour or so ago.. http://esp8266.github.io/Arduino/versions/2.1.0-rc1/ :)
Aditya Tannu
@AdySan
Jan 04 2016 16:45
@celsworth oh thanks i didnt know there was such a place for documentation associated with each release.
Chris Elsworth
@celsworth
Jan 04 2016 16:45
its linked in the readme
brutzler
@brutzler
Jan 04 2016 16:51
@celsworth: tried the adafruit lib: https://github.com/adafruit/Adafruit_ADS1X15
looks like working basicly. but get on all 4 channels the same value back. Its the value of A0, because only this one shows reaction.
Chris Elsworth
@celsworth
Jan 04 2016 16:52
I see in the readme they have the 8266 listed as working
brutzler
@brutzler
Jan 04 2016 16:52
oh, should more often RTFM...
brutzler
@brutzler
Jan 04 2016 17:01
And changing the code to the right ADS (ADS1115 and ADS1015 possible) gets the expected result.
Talking about quality: powered with 5V: Input 4.0V-> measured result: 26655 digits -> 3,995 V.
Thats ok for me :-) even for this price :+1:
Chris Elsworth
@celsworth
Jan 04 2016 17:01
pretty good :)
brutzler
@brutzler
Jan 04 2016 17:01
yeah, i like it
Chris Elsworth
@celsworth
Jan 04 2016 17:04
eventually the accuracy becomes more about the stability of the ADC power supply than anything
at 16bit I imagine thats the case
brutzler
@brutzler
Jan 04 2016 18:58
Somehow unusual is giving the I2C-address to the chip. You can use 4 ADS1115 in one I2C-network. But only one pin for address-config (ADDR). You can connect this pin to GND/VCC/SDA/SCL. Thats all. Hmmm... For testing, (and not knowing better) I had this pin unused. working nevertheless...
FWeinb
@FWeinb
Jan 04 2016 19:33
What are you guys using for WebSockets?
FWeinb
@FWeinb
Jan 04 2016 19:34
Ah awesome!
Thanks!
Markus
@Links2004
Jan 04 2016 19:35
has server and client mode based on what you need.
FWeinb
@FWeinb
Jan 04 2016 19:35
A server. I want to send some draw commands from a web browser to a display.
That looks really great.
Martin Ayotte
@martinayotte
Jan 04 2016 19:56
@brutzler , if you look at the specs of ADS1115, there is effectively 1 address pin, so it impossible to have more than 2 devices on the bus. Where did you saw that 4 is possible ?
brutzler
@brutzler
Jan 04 2016 19:59
ADS1115.jpg
This message was deleted
Chris Elsworth
@celsworth
Jan 04 2016 20:01
nice, that is pretty inventive :)
brutzler
@brutzler
Jan 04 2016 20:01
Yes, was astonished too
Chris Elsworth
@celsworth
Jan 04 2016 20:01
so it tests which pin the ADDR pin is shorted to on startup or something, I guess
brutzler
@brutzler
Jan 04 2016 20:01
looks like
ADS1115.jpg
Chris Elsworth
@celsworth
Jan 04 2016 20:05
just in case you want to move it while its running ;)
brutzler
@brutzler
Jan 04 2016 20:06
oh oh, who should do this ;-)
Martin Ayotte
@martinayotte
Jan 04 2016 20:07
Oh ! I've never seen an addressing scheme like that ...
Four states on a single pin
brutzler
@brutzler
Jan 04 2016 20:08
You are not alone.....
Martin Ayotte
@martinayotte
Jan 04 2016 20:09
And it is a bit difficult to manage it with simple dip switch, we need 4 switches to do that.
brutzler
@brutzler
Jan 04 2016 20:12
I wouldn't do this with dip switches. Ok perhaps on a dev-board. and here I would prefer a 2x4 header with one jumper.
Or in SMD with 8 soldering pads and one 0R-resistor
brutzler
@brutzler
Jan 04 2016 20:22
oh, staging 2.1.0-rc1 is launched. Something interesting new on it? Is it worth changing from 2.0.0 stable?
--> esp8266/Arduino@43a55bd
reading means advantage ... lol
Markus
@Links2004
Jan 04 2016 20:23
its 301 commits newer 2.0.0 is from 30 Nov 2015 :)
brutzler
@brutzler
Jan 04 2016 20:25
Add HTTP Basic Auth to WebServer and libb64 (base64) to core sounds nice for me.
SDK V 1.5: Wasn't this coupled with some problems? Think I remember this? But I can be wrong :-|
Markus
@Links2004
Jan 04 2016 20:29
yes In some cases the SDK make problems, but we had problems whit every SDK version so far,
its on reason we have a staging version.
to get feedback from users, before we say its stable.
Mario Mikočević
@mozgy
Jan 04 2016 20:46
@brutzler new WiFi is worth alone
Stavros Korokithakis
@skorokithakis
Jan 04 2016 20:47
@mozgy how is the new wifi better?
brutzler
@brutzler
Jan 04 2016 21:02
@mozgy: yes. why is it better?
Markus
@Links2004
Jan 04 2016 21:08
i think @mozgy revering to this #1323
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:11
oh, autoconnections? nice
Patrick Leyman
@pleyman
Jan 04 2016 21:13
Just tried the 2.1.0-rc1 on one of my projects, a very simple RGB fader using the PWM. With 2.0.0 it works perfectly fine, with 2.1.0-rc1 the PWM is very flakey. On some pins analogWrite seems to change frequency instead of duty cycle?!
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:21
did you check that with an analyzer or scope?
Patrick Leyman
@pleyman
Jan 04 2016 21:22
logic analyzer...
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:22
that's odd
Patrick Leyman
@pleyman
Jan 04 2016 21:23
and the rgb strip isn't reacting correctly, it's flickering.
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:23
how are you connecting it to the esp?
Patrick Leyman
@pleyman
Jan 04 2016 21:25
via N-MOSFETs, with a bleed resistor between gate and ground. ESP IO pin is directly connected to the gate.
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:25
that's what i was doing as well, although my problem is that the MOSFET doesn't completely saturate with 3V3
which mosfets are you using?
Patrick Leyman
@pleyman
Jan 04 2016 21:25
AO3042
saturates at 1.5V
sorry meant AO3402
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:27
oh, SMDs? those are good but they can't transmit much current, can they?
(sorry, @Links2004 will know about the PWM problem, i just want to make the LEDs work :P)
Patrick Leyman
@pleyman
Jan 04 2016 21:28
3.2 amps @30V
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:28
they're 30V leds?
Patrick Leyman
@pleyman
Jan 04 2016 21:28
no just 12V, but the MOSFET can handle 30V
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:29
oh, right
each mosfet needs to do around 2 amps though, no?
Patrick Leyman
@pleyman
Jan 04 2016 21:30
Yes, depends on the length of the strip
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:30
my strip is 5 amps total
yeah
i think each led channel is 20 mA
which comes out to a lot of current, so maybe i'm mistaken
Markus
@Links2004
Jan 04 2016 21:30
0,3W per LED
Patrick Leyman
@pleyman
Jan 04 2016 21:31
Indeed
Markus
@Links2004
Jan 04 2016 21:31
for a 12V LED strip there are 3 5050 LED in a row :)
Patrick Leyman
@pleyman
Jan 04 2016 21:31
But you connect the 12V directly, without MOSFET
then each color goes to the ground via one MOSFET each
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:31
well it does have a regulator to dim etc, i wonder what's in it
Patrick Leyman
@pleyman
Jan 04 2016 21:32
draws less current per channel, but 12V line will take the sum...
I opened one, it has 3 MOSFETs
Aditya Tannu
@AdySan
Jan 04 2016 21:32
other than cost, any reason people prefer 5050 over WS2812B (NeoPixels). I like em because they run off 5V, so dont need MOSFETS, etc. Just control data line directly with the ESP
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:33
the esp is 3.3V though, how do you run them with that?
Markus
@Links2004
Jan 04 2016 21:33
@skorokithakis 3 n mos in SOT-23 and some controller a 7805
Patrick Leyman
@pleyman
Jan 04 2016 21:33
True, but more expensive
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:33
or is there a separate data line?
Aditya Tannu
@AdySan
Jan 04 2016 21:33
yes, I know they're 3.3V but the fact is it runs fine
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:33
@Links2004 interesting, then i don't need the TO-220 fets i designed for
@AdySan oh, interesting
Aditya Tannu
@AdySan
Jan 04 2016 21:33
I just wire the 5V/GND to my power supply
and data to a GPIO
maybe a resistor in series to the GPIO to prevent a lot of current
Markus
@Links2004
Jan 04 2016 21:34
WS2812 are wonderful but 2x - 3x per 5m in price, but perfect for an ambiente light for pc or tv
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:35
they're individually addressable too, no?
Markus
@Links2004
Jan 04 2016 21:35
yes each LED
Aditya Tannu
@AdySan
Jan 04 2016 21:35
and you get all the flixibilit yyou want
Patrick Leyman
@pleyman
Jan 04 2016 21:35
@AdySan , I don't think this is necessary most 3V3 logic is 5V tolerant, otherwise a simple resistor divider could do the trick
Markus
@Links2004
Jan 04 2016 21:35
and they can be controlled with a DMA implementation
Aditya Tannu
@AdySan
Jan 04 2016 21:35
ESP is not AFAIK
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:36
yeah, that's what i heard too, although it seems that it can do pulsed 5V
as in, it didn't make smoke when i tried it
Aditya Tannu
@AdySan
Jan 04 2016 21:36
haha
Patrick Leyman
@pleyman
Jan 04 2016 21:36
NO, but the 3V3 output of the ESP could be sufficient to drive the data of the 5050
Markus
@Links2004
Jan 04 2016 21:36
the WS2812 have no pullup they not send any 5V back to the ESP, and work with 3V3
Patrick Leyman
@pleyman
Jan 04 2016 21:37
I meant the WS2812 off course, is getting late here ;-)
Markus
@Links2004
Jan 04 2016 21:37
WS2812 on DMA (whitout interrupts) https://github.com/JoDaNl/esp8266_ws2812_i2s
Aditya Tannu
@AdySan
Jan 04 2016 21:39
sometimes a part of my strip goes numb though, just stays white, until i reboot the ESP
usually hte farther end
Patrick Leyman
@pleyman
Jan 04 2016 21:41
@AdySan Which length are you using?
Aditya Tannu
@AdySan
Jan 04 2016 21:42
I think around 90 LEDs
Markus
@Links2004
Jan 04 2016 21:43
I have used up to 2m with the ESP yet and it working fin, 5m are ordert for the next project.
Aditya Tannu
@AdySan
Jan 04 2016 21:43
this is what I'm doing
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:43
that looks nice
@Links2004 i have a 5m strip, but it looks like it needs 6A
Aditya Tannu
@AdySan
Jan 04 2016 21:43
Not that fancy pattern anymore, jsut ask Siri to set a specific color
Patrick Leyman
@pleyman
Jan 04 2016 21:43
Looks indeed very nice
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:43
which is weird, because the psu that came with it was rated for 5A
Aditya Tannu
@AdySan
Jan 04 2016 21:43
But HomeKit send Hue, Saturation and Brightness separately
Markus
@Links2004
Jan 04 2016 21:44
@skorokithakis my 5m will need 27A when there are here (60leds per m) @ 18Watt/m
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:45
yeah, that's a lot of current
Patrick Leyman
@pleyman
Jan 04 2016 21:45
@skorokithakis, normal, there is an important voltage drop on long strips, you will never reach the maximum.
@Links2004 5m = 72W max. -> 72W/12V = 6A on all channels or 2A per channel
Markus
@Links2004
Jan 04 2016 21:50
@pleyman yes but check that your mos can handle 2.5A or more, the power is not equal on all colors.
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:50
wouldn't these SMD FETs get too hot?
also, which do you connect to ground on N MOSFETs, drain or source?
i can never tell
Markus
@Links2004
Jan 04 2016 21:51
if the RdsOn is low not. source.
Patrick Leyman
@pleyman
Jan 04 2016 21:51
I checked, it can handle a 5m strip without a problem and the FET remains cold (inner resistance is very low, only 85mOhm in worst case
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:51
thanks
Patrick Leyman
@pleyman
Jan 04 2016 21:52
same here gnd on source
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:53
i'm going to make a pcb for this controller
i don't know how wide to make the tracks, though
i went with 2mm
hopefully that'll be enough
Patrick Leyman
@pleyman
Jan 04 2016 21:54
I used 1.4mm
Markus
@Links2004
Jan 04 2016 21:54
if you make a PCB may add a WS2811 IC then you not need to use the PWM
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:54
@Links2004 any idea why the PWM seems to modulate frequency?
Markus
@Links2004
Jan 04 2016 21:55
@skorokithakis no have not looked to the PWM since sdk update.
i have combined a WS2811 IC + a "led amplifier" and you not need any PWM any more, and only one pin for many stripes
Stavros Korokithakis
@skorokithakis
Jan 04 2016 21:57
@pleyman can i see your pcb?
Markus
@Links2004
Jan 04 2016 21:57
blob
Patrick Leyman
@pleyman
Jan 04 2016 21:59
blob
Not entirely routed, as I switched some IO channels
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:00
that looks nice, which ESP goes on that?
Patrick Leyman
@pleyman
Jan 04 2016 22:00
ESP12
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:00
hum
Patrick Leyman
@pleyman
Jan 04 2016 22:00
or ESP07
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:00
what are the holes under it then?
Patrick Leyman
@pleyman
Jan 04 2016 22:00
3V3 switching regulator
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:01
hmm, why are there through-holes under where the ESP should be, though?
Markus
@Links2004
Jan 04 2016 22:01
@pleyman your gnd connection on the mos is small, may lower the trace to the ESP there is no power need.
Aditya Tannu
@AdySan
Jan 04 2016 22:01
someone please design something for ESP-09, it's the smallest module out there.
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:01
below the U1 silk
Patrick Leyman
@pleyman
Jan 04 2016 22:01
@Links2004 I know, PCB is not completed yet...
Markus
@Links2004
Jan 04 2016 22:01
@pleyman or add vias
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:01
oh
@pleyman mine looks like this: https://i.imgur.com/Ro9ZnkN.png
This message was deleted
although now i'm replacing the TO-220s with SOT-23
Patrick Leyman
@pleyman
Jan 04 2016 22:02
looks very similar
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:02
yep
i'm using this breakout though, to avoid all the resistors: https://i.imgur.com/ebT5iyT.png
those FETs you have are tiny
Patrick Leyman
@pleyman
Jan 04 2016 22:04
@Links2004 extra vias won't be necessary. According to http://www.4pcb.com/trace-width-calculator.html I've enough with 1mm for 4A
@skorokithakis, what design tool are you using, looks very cool!
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:04
@pleyman kicad
what are you using?
Patrick Leyman
@pleyman
Jan 04 2016 22:05
Eagle
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:05
ah
i love kicad
Patrick Leyman
@pleyman
Jan 04 2016 22:05
Wanted to switch to KiCad long time ago, but I was looking at massive amount of work to transfer my custom libraries
No I regret I didn't do that, now I've more libraries to migrate
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:06
kicad can open eagle libraries
Patrick Leyman
@pleyman
Jan 04 2016 22:06
But KiCad has evolved a lot since I looked at it
Stavros Korokithakis
@skorokithakis
Jan 04 2016 22:06
yeah, it's great
Markus
@Links2004
Jan 04 2016 22:06
@pleyman have you lower the +10°C? in a closed case +10°C will get hot over time fast.
Patrick Leyman
@pleyman
Jan 04 2016 22:06
Oh, I didn't know... Will experiment
@Links2004, increase in temperature is less than 10 degrees, measured with infrared thermometer. Should be fine.
I also calculated for 4 amps, and I only need 2.5
Markus
@Links2004
Jan 04 2016 22:09
@pleyman ok, I make the error one time and my plastic case has burned in the end, behind my TV.
Patrick Leyman
@pleyman
Jan 04 2016 22:09
But with a linear regulator it gets too hot, so make sure to use a switching one
ouch!
Martin Ayotte
@martinayotte
Jan 04 2016 22:09
@pleyman , thise site http://kicad.jp/Eagle2Kicad/ will help you migrate your libs into kicad ;-)
Markus
@Links2004
Jan 04 2016 22:10
it work for some weeks but over time getting to hot, and then....
Patrick Leyman
@pleyman
Jan 04 2016 22:10
@martinayotte Coooool! thx!
@Links2004 I've a test setup on a bread board now running for over a week. Temperature = room temperature + 2 degrees
The ESP is the warmest (lol)
Markus
@Links2004
Jan 04 2016 22:12
@pleyman then is all good :)
Patrick Leyman
@pleyman
Jan 04 2016 22:12
I hope so, next weekend I plan to produce a PCB and by then I hope that the PWM issue is solved
otherwise back to version 2.0.0; but I would like to use 2.1.0 as it is required for the web sockets library
Markus
@Links2004
Jan 04 2016 22:13
you can use a version before SDK 1.5, web sockets library will work with SDK 1.3.
Patrick Leyman
@pleyman
Jan 04 2016 22:14
But with which other downside? I'm quite new to this ESP story, so I'm unsure what all these SDK versions mean.
Chris Elsworth
@celsworth
Jan 04 2016 22:15
2.1.0 isn't even out properly yet, only an rc1.. if you need a setup working by next weekend, go with 2.0.0
very early days for sdk 1.5
Markus
@Links2004
Jan 04 2016 22:15
the SDK is from espressif the manufacturer of the ESP, and used to control the WiFi and has the base OS.
Patrick Leyman
@pleyman
Jan 04 2016 22:16
Ah I see
I go to sleep now, tomorrow working day... Thanks all for tips and hints, very much appreciated!
brutzler
@brutzler
Jan 04 2016 22:28
Using 10 pcs of DS18B20 on my ESP. Wiring to each about 2-3m in "star wiring" (is this understandable?).
What do you think.
Should I power them with 3,3V or take 5V with a level-shifter for the signal line?
Martin Ayotte
@martinayotte
Jan 04 2016 22:49
@brutzler , although it may work at 3.3V, I would recommend 5V with mosfet shifter, I've done such config with a STM32
brutzler
@brutzler
Jan 04 2016 22:50
@martinayotte : You think that with 5V I have more reserve because of the voltage drop? (This was my intention)
Martin Ayotte
@martinayotte
Jan 04 2016 22:53
@brutzler , Yes, and with the 3.3V with long wires, it can disturb the ESP if it is the same regulator.
brutzler
@brutzler
Jan 04 2016 22:58
kicad.jpg
regarding to the level-shifter:
Do you think this will work (here its for I2C) but I will take one with 4 lines to add the OneWire signal. U3 is the ESP (NodeMCU)
I do not think, that I have to power 3,3V to the shifter, or?
Martin Ayotte
@martinayotte
Jan 04 2016 23:01
No needs to use those 4 channels if only one is needed. In fact, those modules are simply four time those mosfet shifter : http://www.hobbytronics.co.uk/image/data/tutorial/mosfet_level_converter.jpg
Yes, you needs to power the 3.v3V too.
brutzler
@brutzler
Jan 04 2016 23:02
I need 2 for I2C and one for The DS18B20.
Talking about this module: http://www.dx.com/de/p/jy-mcu-5v-3v-iic-uart-spi-level-4-way-converter-module-adapter-178286#.Vor5vlJm7H4
There is a LDO onboard
Martin Ayotte
@martinayotte
Jan 04 2016 23:03
Ah ! Ok ! so if you have 2 channels use by I2C, then it is worth ... LDO on-board, then no needs for 3.3V
brutzler
@brutzler
Jan 04 2016 23:06
the LDO only makes 150mA, but its only for the signals to the ESP. (I2C + OneWire) This should be enough, or?
The 5V for the primary side, I get from a 2A power supply
Martin Ayotte
@martinayotte
Jan 04 2016 23:06
Yes !
brutzler
@brutzler
Jan 04 2016 23:07
thx for confirmation :+1:
Martin Ayotte
@martinayotte
Jan 04 2016 23:08
You're welcome
brutzler
@brutzler
Jan 04 2016 23:09
BTW: you see, I switched over to KiCad ;-) Some time needed to learn, but now its really "easy"
Martin Ayotte
@martinayotte
Jan 04 2016 23:18
:-)