These are chat archives for esp8266/Arduino

19th
Dec 2015
Chris Elsworth
@celsworth
Dec 19 2015 12:36
@skorokithakis have you managed to upload anything to the esp with platformio 2.6.1?
I'm getting system param error :/ rolling back to 2.5.0 fixes
Chris Elsworth
@celsworth
Dec 19 2015 12:48
dhl shipping notification for esp32 :)) here by 22nd
Mario Mikočević
@mozgy
Dec 19 2015 12:49
lucky
Chris Elsworth
@celsworth
Dec 19 2015 12:50
nice present
Endre Karlson
@ekarlso
Dec 19 2015 13:28
@celsworth what's the use of platformio over standard arduino?
@0x2b3bfa0
Dec 19 2015 13:29
Chris Elsworth
@celsworth
Dec 19 2015 13:30
@ekarlso just far more flexible imo, the standard arduino ide is very limited.. its a bit off to even call it an ide imo, its a glorified editor
@0x2b3bfa0
Dec 19 2015 13:30
Now I have free time.
Chris Elsworth
@celsworth
Dec 19 2015 13:30
it supports loads of frameworks so you can compile ie native esp8266 sdk code with the same command as arduino/esp8266 code
@0x2b3bfa0
Dec 19 2015 13:30
Chris Elsworth
@celsworth
Dec 19 2015 13:31
how do you mean? will it run there? sure
runs on my raspberry pi just fine :)
Markus
Dec 19 2015 13:41
@crushedice2000 morning :)
@0x2b3bfa0
Dec 19 2015 13:41
Markus
Dec 19 2015 13:41
@igrr can you please review the changes in the WiFiClient/WiFiClientSecure here: #1257
@crushedice2000 its 14:42 here ;) but my night where long.
@0x2b3bfa0
Dec 19 2015 13:43
@Links2004: Also 14:43:40 here, but I waken up at 9:30
Markus
Dec 19 2015 13:45
ok back to the LEDs, the big question is how are they wired.
@0x2b3bfa0
Dec 19 2015 13:46
@Links2004: Ok, back to the LEDs then, Could I add a shunt resistor in parallell with the input to avoid PSU malfunction on PWM?
Markus
Dec 19 2015 13:47
it may getting better but then you only get 50% of the LED light at maximum
@0x2b3bfa0
Dec 19 2015 13:47
Markus
Dec 19 2015 13:49
if you change the LEDs to something like this:
you can use a normal power supply.
@0x2b3bfa0
Dec 19 2015 13:50
@Links2004: In this case I prefer to buy dimmable PSUs in Ali, because I can't put a normal power supply in this configuration.
Also i'm expecting 3 new nodemcu to arrive (to prevent in case I fry another) to use instead of Arduino.
Markus
Dec 19 2015 13:52
yes possible, but dimming with a triac and WiFi is not possible on the ESP at the same time.
@0x2b3bfa0
Dec 19 2015 13:52
Markus
Dec 19 2015 13:53
the WiFi interrupts will block the "dimming" (zero crossing) Interrupt wich results in a brightness change,
in the chat log, you will find the code and the try of doning it.
@0x2b3bfa0
Dec 19 2015 13:54
@Links2004: However, could I use the internal DIM pin of the dimmable PSU to avoid using a zero-crossing detector?
Markus
Dec 19 2015 13:56
based of how the internal look like may possible, but for this we need to analyse how the PSU work.
@0x2b3bfa0
Dec 19 2015 13:57
@Links2004: Shouldn't be so complex (if I find the chip datasheet).
Markus
Dec 19 2015 13:59
the chip does a detect of phase angle and then adjust the current to dim.
the interesting question is what input signals get the chip.
@0x2b3bfa0
Dec 19 2015 14:02
A example of dimmable PSU controller
Markus
Dec 19 2015 14:13
this one is fully integrated no change, lets hop the the china psu has a other one.
@0x2b3bfa0
Dec 19 2015 14:14
My current (constant current, non-dimmable) PSU has a 7933ccp (I can't find the datasheet)
Markus
Dec 19 2015 14:15
it may has an resistor to configure the current amount?
@0x2b3bfa0
Dec 19 2015 14:16
I don't know. Lunch time, see you soon. (at 16:15 or so). Sorry.
Sven Eliasson
@comino
Dec 19 2015 14:17

Im getting so super frustated - my project suddenly complains ' "thisProject.h" - no such file or directory'

in thisProject.h I include all project includes.. It is for sure in the directory and exists quite well - it even compiles the libraries I include in the thisProject.h.

It throws this error upon

[... a lot of compiling instructrions]
"C:\Users\SvenEliasson\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266/tools/sdk/include" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\cores\esp8266" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\variants\generic" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\EEPROM" "-IC:\Users\SvenEliasson\Documents\Arduino\libraries\ArduinoJson-master\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ArduinoOTA" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266mDNS" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WebServer\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266HTTPClient\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\Wire" "C:\Users\SVENEL~1\AppData\Local\Temp\build426d860d85ae8fbcd80a865c1be8f011.tmp\sketch\rystaFirmware.ino.cpp" -o "C:\Users\SVENEL~1\AppData\Local\Temp\build426d860d85ae8fbcd80a865c1be8f011.tmp\sketch\rystaFirmware.ino.cpp.o"
"C:\Users\SvenEliasson\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266/tools/sdk/include" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266  -DESP8266 "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\cores\esp8266" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\variants\generic" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\EEPROM" "-IC:\Users\SvenEliasson\Documents\Arduino\libraries\ArduinoJson-master\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ArduinoOTA" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266mDNS" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WiFi\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266WebServer\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\ESP8266HTTPClient\src" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\Ticker" "-IC:\Program Files (x86)\Arduino\hardware\esp8266com\esp8266\libraries\Wire" "C:\Users\SVENEL~1\AppData\Local\Temp\build426d860d85ae8fbcd80a865c1be8f011.tmp\sketch\build\preproc\ctags_target.cpp" -o "C:\Users\SVENEL~1\AppData\Local\Temp\build426d860d85ae8fbcd80a865c1be8f011.tmp\sketch\build\preproc\ctags_target.cpp.o"
E:\Rysta\rystaFirmware\rystaFirmware.ino:2:25: fatal error: thisProject.h: No such file or directory

I didnt change anything on my project. On other computer it compiles just fine. Even if I checkout a older version - same error. I reinstalled arduino ide + github version twice. Still same error.. someone has any idea?

thisProject.h and the **.ino is in the same folder
Sven Eliasson
@comino
Dec 19 2015 14:39
nevermind.. most probably the error has nothing to do with esp specific stuff oO
@0x2b3bfa0
Dec 19 2015 15:28
Markus
Dec 19 2015 16:02
@crushedice2000 me too
@0x2b3bfa0
Dec 19 2015 16:02
@Links2004: The chip marking is 7933CCP, however, its datasheet is this: http://www.maxictech.com/uploads/soft/201306/1_19125039.pdf
@Links2004: Could I use the internal FET to PWM?
Markus
Dec 19 2015 16:07
if you replace the chip, no, the FET switches ~300V.
@0x2b3bfa0
Dec 19 2015 16:08
@Links2004: Without replacing the chip, only interrupting DRV(PIN4)
Markus
Dec 19 2015 16:15
@crushedice2000 the chip is hard to change without the risk of, killing it.
@0x2b3bfa0
Dec 19 2015 16:16
@Links2004: Going offline now, we can continue in a few hours.
Is there any chance to alter the chip working method exciting any pin with PWM? Would be great to "cheat" the chip altering any sensing input to dim the LED.
Markus
Dec 19 2015 16:32
@crushedice2000 the only possibility i see is a Optokoppler with PWM over R3, but the changes a risky since we working on high volt here.
@0x2b3bfa0
Dec 19 2015 16:32
beikeland
@beikeland
Dec 19 2015 16:43
@Links2004 i remebered I found an soic clip, and tried to flash the esp-05 boards flash chip directly. No dice. Did you do anything apart from clipping on, and pulling the esp's reset low? I'm thinking the clip may not get a good enough connection, as it works fine on a bare chip.
Markus
Dec 19 2015 16:47
@beikeland i do clip it on, pull reset, then plug in to usb and it works.
@crushedice2000 lets simply say the voltage is dangerous.
beikeland
@beikeland
Dec 19 2015 16:49
@Links2004 i'll try again when I get the new clip; this one might have outlived its usefullness. Thanks though. Buspirate + soic clip was slow but read/wrote a w25q80 just fine.
Markus
Dec 19 2015 16:51
@crushedice2000 the idea behind a Optokoppler over R3 is to bring the chip in "over voltage" mode, that shut disable the the chip.
(DSEN over 3.2V)
Me No Dev
@me-no-dev
Dec 19 2015 17:28
omg what hppened to the SDK?
Markus
Dec 19 2015 17:29
version 1.5?
Me No Dev
@me-no-dev
Dec 19 2015 17:29
what is current?
where is the stock lwip?
Markus
Dec 19 2015 17:29
that is what we use in the core now.
Me No Dev
@me-no-dev
Dec 19 2015 17:29
what is that?
the source build one?
Markus
Dec 19 2015 17:30
we use SDK version 1.5, in the core.
Me No Dev
@me-no-dev
Dec 19 2015 17:30
I ask again: which lwip is in the tools folder?
the build from source one or the stock one?
Markus
Dec 19 2015 17:31
only @igrr can answer that he has pushed the bin
Me No Dev
@me-no-dev
Dec 19 2015 17:31
alright I'll try the other way and put the stock on top
if it comes that it's not the stock one, then this version of the git will be full of issues
try having ap+sta
Markus
Dec 19 2015 17:33
I found one Issues on incoming data in sta mode, they have many lag.
after adding wifi_set_sleep_type(NONE_SLEEP_T); it where fine.
Me No Dev
@me-no-dev
Dec 19 2015 17:34
I have that added and can not even boot
Markus
Dec 19 2015 17:35
i added it at the end of my setup.
Me No Dev
@me-no-dev
Dec 19 2015 17:37
this is not good... new versions should work better not the other way
Markus
Dec 19 2015 17:39
if the reason for the "lag" is really the modem sleep its a bug inside the lowlevel WiFi, which is really bad.
but the workaround with none sleep is working, perfect and i not found any other reason so far.
on SDK 1.3 its working without none sleep like it shut.
Me No Dev
@me-no-dev
Dec 19 2015 17:41
what we used lately was the lwip that igrr build from the source that espressif released
I opted to the stock though as it is actually stable
many issues when away
I had tried 1.5 on the side but was able toconnect
Markus
Dec 19 2015 17:44
the liblwip.a is binary identical to the one shipped with esp_iot_sdk_v1.5.0_15_11_27.zip
Me No Dev
@me-no-dev
Dec 19 2015 17:48
yes I saw
but still no g with connect
reverted the changes and back in business
it was endless reconnect loop
@0x2b3bfa0
Dec 19 2015 17:56
@Links2004: But, could I fry the chip entering a voltage extremely higher than 3.2V?
Markus
Dec 19 2015 18:02
the chip can handle up to 5V there,
if you know the curent values for R3 an R4 and the normal voltage over them you can callculate a new value to add on row with the opto.
@0x2b3bfa0
Dec 19 2015 18:03
Reverse-engineering the circuit...
@Links2004: There are a 10kΩ resistor and a 56kΩ resistor. The DSEN pin in between these.
Markus
Dec 19 2015 18:08
which is R3 and R4?
@0x2b3bfa0
Dec 19 2015 18:08
@Links2004: I'm trying to get it.
Markus
Dec 19 2015 18:09
one is connected to GND (pin 2 one the chip)
@0x2b3bfa0
Dec 19 2015 18:13
What a nightmare! both seems connected to GND and VCC (continuity check). Now I'll try ohm meter.
Markus
Dec 19 2015 18:17
ok and what is the voltage over R4 when the LED is on? (be careful when measuring it)
@0x2b3bfa0
Dec 19 2015 18:19
Can I simply put the volt meter in parallel with R4?
Markus
Dec 19 2015 18:20
yes, but there are pin with ~300V so do not touch them, better solder a wire on it to be saver.
@0x2b3bfa0
Dec 19 2015 18:23
@Links2004: I'll solder two thin enameled (I don't know how to say it in English, but I believe that is enameled -the same wire that has a small DC motor coil-) copper wires.
Heating up soldering iron...
Markus
Dec 19 2015 18:26
you can use them.
@0x2b3bfa0
Dec 19 2015 18:27
@Links2004: Can I solder two male pins on the other side?
Markus
Dec 19 2015 18:29
why not. the pins it self are not dangerous.
but all components in the upper half of the circuit diagram are "hot" (C1, R5, R6, C2, D1 ...)
@0x2b3bfa0
Dec 19 2015 18:36
@Links2004: I can measure a maximum of 2V. Is that correct?
I have my (digital) volt meter in 1000V scale. Is good to measure this?
May be that the copper wires I soldered are so long?
Markus
Dec 19 2015 18:38
yes 2V is good
@0x2b3bfa0
Dec 19 2015 18:40
@Links2004: Should I lower the scale to 20V and do a more precise measure?
Markus
Dec 19 2015 18:41
the 2V are good, thy where only to verification
@0x2b3bfa0
Dec 19 2015 18:42
@Links2004: I measured lowering the scale to 20V, and then (with more precision) it says 0.97-0.99V
Markus
Dec 19 2015 18:43
k then your Multimeter is not accurate at 1000V scale, will do some short calculation.
@0x2b3bfa0
Dec 19 2015 18:45
Markus
Dec 19 2015 18:49
D1 is protection if we get to high.
@0x2b3bfa0
Dec 19 2015 18:50
Trying... This may take a while...
@Links2004 What voltage should support the optoisolator? 2V is enough?
Markus
Dec 19 2015 18:57
15V where better, my calculation show a voltage of around 10V over R3
what type of opto do you have most can handle more then 2V
@0x2b3bfa0
Dec 19 2015 19:04
4n28 can handle 70V, no worry!
@0x2b3bfa0
Dec 19 2015 19:16
Markus
Dec 19 2015 19:17
the opto is "off" or?
@0x2b3bfa0
Dec 19 2015 19:17
Without connecting the opto, the lamp powers up
Is the opto connected in reverse or broken?
Checking continuity in the opto
Markus
Dec 19 2015 19:18
possible
normally the opto is the "same" as open when you not connect the LED part of it.
@0x2b3bfa0
Dec 19 2015 19:25
I have two optoisolators and both are working badly (even with the continuity check)
@Links2004: Could I simply inject 5V PWM between DSEN and GND with Arduino skipping the optoisolator?
Markus
Dec 19 2015 19:29
This message was deleted
yes and no, that part of the is directly Connection you your main power (230V).
i can not recommend it.
try to add a diode here:
may we have some reverse voltage, this shut block them.
@0x2b3bfa0
Dec 19 2015 19:31
Can I put it after the resistor instead of before?
Markus
Dec 19 2015 19:32
yes
@0x2b3bfa0
Dec 19 2015 19:32
Searching a diode. This may take a while... (3 floors -and a cluttered component box-)
Done!
@Links2004 I keep having the same problem
Markus
Dec 19 2015 19:37
strange very strange,
do you have a oscilloscope?
@0x2b3bfa0
Dec 19 2015 19:38
@Links2004: Ouch! Yes, but is in a cardboard box behind ~10 inkjet printers.
Can I use the tester instead?
Markus
Dec 19 2015 19:39
can you tester draw the signal?
@0x2b3bfa0
Dec 19 2015 19:39

No, it can't. I'll try to get it out...
Markus
Dec 19 2015 19:45
@crushedice2000 thats the plan:
@0x2b3bfa0
Dec 19 2015 19:46
@Links2004: What scale/time/triggermode should I use?
Markus
Dec 19 2015 19:48
scale start at 5V/div, trigger is rising edge, mode is DC,
for time you need to search the signal.
This message was deleted
This message was deleted
This message was deleted
never mind it a full bridge....
@0x2b3bfa0
Dec 19 2015 19:53
@Links2004: down 3 floors again to cut more thin wire (as I reused all the wires and now I haven't a soldered ground...
:sweat_smile:
Markus
Dec 19 2015 19:55
i know this problems, the big part storage is in the basement, and the work place is in the 1.OG.
@0x2b3bfa0
Dec 19 2015 19:55
@Links2004: what is the meaning of 1.0G? one floor above Ground?
Markus
Dec 19 2015 19:56
yes.
@0x2b3bfa0
Dec 19 2015 19:57
@Links2004: Ok, English isn't my mother tongue :smile:
Heating soldering iron...
Markus
Dec 19 2015 19:57
OG is may a german term, nor sure.
@0x2b3bfa0
Dec 19 2015 19:58
@Links2004: German of English, I don't care. My mother tongue is Spanish... :worried:
@0x2b3bfa0
Dec 19 2015 20:05
@Links2004: two line to ground derivations, two electric shocks, one fried NodeMCU, two fried led drivers and all in a week. The latest derivation occurred now between the Ground (soldering tip) and the Line on the led driver.
:tired_face:
Markus
Dec 19 2015 20:07
ouch, hope your are ok and its still working.
@0x2b3bfa0
Dec 19 2015 20:08
@Links2004: I'm ok and it should work again. Connecting.
It works, now I'll connect the oscilloscope.
@Links2004:The first test w/o optocoupler, right?
Markus
Dec 19 2015 20:10
yes, to see how the signal shut be.
@0x2b3bfa0
Dec 19 2015 20:13
derivations+=2;
shortcircuits++;
Markus
Dec 19 2015 20:14
your circuit breaker is kicked out?
@0x2b3bfa0
Dec 19 2015 20:15
I tried to connect the scope ground to the led driver ground, then a small spark and... let's rise again the differential derivation protector.
Then, changed the L/N polarity on the driver input
Connected only the scope ground to the driver ground
bright spark and let's start again!
Markus
Dec 19 2015 20:16
may the china board has no full bridge rectifier?
@0x2b3bfa0
Dec 19 2015 20:17
@Links2004: If you mean this, there are 4 diodes at the line/neutral input
Markus
Dec 19 2015 20:17
ok its a full, but then it shut be identical with the ground of the scope.
@0x2b3bfa0
Dec 19 2015 20:18
:confused:
Markus
Dec 19 2015 20:18
have your scope a PE connection?
@0x2b3bfa0
Dec 19 2015 20:18
Markus
Dec 19 2015 20:20
the connection to earth ground.
of the power grid.
@0x2b3bfa0
Dec 19 2015 20:21
@Links2004: On the scope, but not on the led driver.
Markus
Dec 19 2015 20:22
whats the voltage in DC and AC between "PE" and the ground of the LED driver?
@0x2b3bfa0
Dec 19 2015 20:22
OMG! my led driver plug has TWO lines :cold_sweat: (no neutral)
@Links2004: I'll try with another plug.
derivations++;
Markus
Dec 19 2015 20:26
no good day.
@0x2b3bfa0
Dec 19 2015 20:28
Now I'll dine and sleep. Let's expect that tomorrow is a better day... I would desire (to justify this) that today were friday 13...
@Links2004: Good night. Tomorrow I'll ping you.
And let's expect more luck.
Markus
Dec 19 2015 20:28
good night.