These are chat archives for esp8266/Arduino

27th
May 2015
ficeto
@ficeto
May 27 2015 00:03
the esp is running fine on 4.2V lipo
maybe a bit worm
but running stable, not hot at all
chad cormier roussel
@chadouming
May 27 2015 00:04
well, that's what happened to mine who took 30v
after that it was only making heat xD
ficeto
@ficeto
May 27 2015 00:04
i'll let it drain it
also the adc seem to have a reference voltage inside
chad cormier roussel
@chadouming
May 27 2015 00:05
just like arduino ?
ficeto
@ficeto
May 27 2015 00:05
better
the arduino one that's inside depends on vcc
this one does not
chad cormier roussel
@chadouming
May 27 2015 00:06
isnt the one in arduino 1.01v whatever the vcc ?
ficeto
@ficeto
May 27 2015 00:06
i thought it did, but i guess my other battery is almost empty
yes, the mega has 2 ref voltages
but they fluctuate with vcc
i think...
what is there by default?
whatever is usualy used fluctuates with vcc
so analog reads on analog sensors are constant
ficeto
@ficeto
May 27 2015 00:08
like thermistor for exampe
chad cormier roussel
@chadouming
May 27 2015 00:08
i'll probably make my own :D
i'll thrown in a ldo
ficeto
@ficeto
May 27 2015 00:08
point is, with divider, you can measure the vcc pretty accurately
chad cormier roussel
@chadouming
May 27 2015 00:08
true
as long as you have precise resistor and not 10% ones
ficeto
@ficeto
May 27 2015 00:09
yup
chad cormier roussel
@chadouming
May 27 2015 00:11
time to charge my lipo
think 250mAh will be enough ?
ficeto
@ficeto
May 27 2015 00:26
this will not do if you want to run it on lipo
chad cormier roussel
@chadouming
May 27 2015 00:27
why ?
ficeto
@ficeto
May 27 2015 00:27
because this is simple LDO
it requires higher voltage to give 3.3
more like 4.4-4.5 V
the least
chad cormier roussel
@chadouming
May 27 2015 00:28
it's has .18v drop
ficeto
@ficeto
May 27 2015 00:28
have not seen such LDO yet
i use up/down switching for such things
but i doubt you need one at all
chad cormier roussel
@chadouming
May 27 2015 00:29
The minimum VIN must meet two conditions: VIN  2.3V and VIN  VR + 3.0%  VDROPOUT.
ficeto
@ficeto
May 27 2015 00:29
as I said, running strong here
chad cormier roussel
@chadouming
May 27 2015 00:29
protection
hmm, didn't print as i wanted, but it's vin >= 2.3v and vin >= (Vr + 3%) +Vdropout
ficeto
@ficeto
May 27 2015 00:31
if it really does 0.18 drop
3.5 is a safe spot for lipo
chad cormier roussel
@chadouming
May 27 2015 00:31
so it would need >= 3.579V
ficeto
@ficeto
May 27 2015 00:31
250mAh should be plenty
ficeto
@ficeto
May 27 2015 00:34
100 :D
chad cormier roussel
@chadouming
May 27 2015 00:35
ficeto
@ficeto
May 27 2015 00:44
ok
flash at 80?
there was one more reason
chad cormier roussel
@chadouming
May 27 2015 00:45
cpu's at 80, i never changed the flash speed
ficeto
@ficeto
May 27 2015 00:46
uninitialized interrupt handler pointer being called before I thought it would.
that was the other reason for that same error
chad cormier roussel
@chadouming
May 27 2015 01:00
hmm, is it my fault or SDK error ?
chad cormier roussel
@chadouming
May 27 2015 01:15
hmm, seems like lipo is going fine here too
function mesure 4.05V when it's showing 4.2 on my multimeter, but it's not meant to go that high so i suppose it's normal
tzapu
@tzapu
May 27 2015 06:25
@Makuna thanks @igrr thanks, i did see wire.pins in the library before, but i think it was marked as deprecated " void pins(int sda, int scl) attribute((deprecated)); // use begin(sda, scl) in new code
"
maybe it s worth keeping for cases like this
fmgomes
@fmgomes
May 27 2015 06:43
I'm getting frequently wdt resets with reset cause 4 running for example the westerner example code without any change. After a few requests from the browser it stops responding for a while and the wdt triggers, with reset cause 4. Any idea for the cause? I've already guarantee a good power supply with capacitors never vcc and gnd of the esp-01 connector
Ivan Grokhotkov
@igrr
May 27 2015 06:50
I failed googling "westerner example code", can you share a link?
fmgomes
@fmgomes
May 27 2015 07:10
Sorry, dumb auto correction!!! I mean webserver example :-)
Ivan Grokhotkov
@igrr
May 27 2015 07:16
right :) works fine on an esp12 here, but I'll check if there's any problem with esp01
can you do Serial.setDebugOutput(true); in your setup method after Serial.begin?
and then we should see if there's anything strange happening
fmgomes
@fmgomes
May 27 2015 08:10
Ok, thanks, I'll do it later today, I don't have the boards with me at the moment. My main concern is that I'm checking it's stability and have always problems like that (for example exception 28 running sming examples). I've already made a change in the power supply, now I'm using a 5v 1a adapter with a 3.3v 1A regulator, and capacitors near the esp-01 pins, with very short connections, but it is still not stable. Could be a problem with the esp-01 modules? I have also some esp-12 in my desk, I could try them to see if the behavior is simila, just have to build some adapter. I've already ordered some modules from olimex including the development board to be sure that there is no hardware issue
Ivan Grokhotkov
@igrr
May 27 2015 08:17
exception 28 in my experience was always related to power supply issues or lack of strapping resistors on gpio0 and gpio2. when I switched from esp01 to esp12 mounted on a yellow carrier board (the one sold with battery compartment attached), I no longer have any of those issues...
seeing that your power supply is okay you may want to make sure all the resistors are in place (GPIO 0 and 2, chpd, rest)
perhaps replacing the module is also an option.
fmgomes
@fmgomes
May 27 2015 08:38
@igrr , thanks for your help! What do you recommend for the pin connections, having them with a pull-up resistor to Vcc and use a jumper to connect them to ground when necessary? What resistor value are you using? Currently I have the reset pin "floating", could this be an issue? I was convinced it had some internal resistor, read it somewhere.
ficeto
@ficeto
May 27 2015 08:39
they dont :(
i use 10K and 4.7K
seen 3.3 used as well
olimex uses 12K on their pullups
soanything above 3Kohm will be fine
Ivan Grokhotkov
@igrr
May 27 2015 08:43
CHPD need lower value, i think Espressif docs have it at 2k
others can be around 10k
fmgomes
@fmgomes
May 27 2015 09:47
I've the CHPD pin directly connected to Vcc, do you think that is a problem? Olimex is using 12k as pull-ups for RST and CHPD, but 2K pull-up for GPIO14/SCL. And uses 2k resistors for GPIO0/GPIO2 jumpers. I could use this as a reference to see if it improves the ESP-01 stability: I'll try to put 12k for RST and CHPD and 2k for GPIO0 and GPIO2, do you agree?
Sorry, you have refered 2k for CHPD, so I'll also use 2K for CHPD, so only 12k for RST, all other with 2k?
Ivan Grokhotkov
@igrr
May 27 2015 09:51
i think that would be a good configuration
ficeto
@ficeto
May 27 2015 10:07
the conf really does not matter much
as long as they are above 1K they will draw small enough current
lower value pullups require more time, energy to be pulled in the other direction (if not done by a switch)
i've ordered an oscilloscope and will look at those thigs exactly, as some I2C slaves have issues when lots of other things are going on in the chip
fmgomes
@fmgomes
May 27 2015 11:09
Yes, specially for I2C, it will be a tradeoff between speed and power. For now I just wanted a 'safe' (specially 'stable') hardware setup for testing the ESP-01 boards I have, until now I wasn't able to use them in a reliable way, even using the supplied examples from the Arduino porting (or the Sming examples, I get the same non stable behavior with Sming also). I am considering them for a product, but have to be sure of its stability and then to choose the more adequate framework to use (Arduino, Sming, Espresiff SDK...)
Markus
@Links2004
May 27 2015 14:36
@chadouming yes i switch my flash chips to 4MB
ficeto
@ficeto
May 27 2015 18:01
yup
any W25Q above 256K will do
Markus
@Links2004
May 27 2015 18:02
yes have W25Q32 on my board :) they are little big bigger then the orginal one.
ficeto
@ficeto
May 27 2015 18:02
fit nice on the ESP-12E, but harder on some older models
i run an 8MB chip
had to bend the legs a bit on the 201 board
no point to have above 4MB though
Markus
@Links2004
May 27 2015 18:04
same here but working well
ficeto
@ficeto
May 27 2015 18:04
only chip erase works above 4MB mark
seems the bootloader can not address the flash above that
chad cormier roussel
@chadouming
May 27 2015 18:28
8 MB seems a lot excessive
ficeto
@ficeto
May 27 2015 18:28
could not find 4MB chips here
only 1 and 8
and I plan second partition there maybe
chad cormier roussel
@chadouming
May 27 2015 18:29
ota ? :D
ficeto
@ficeto
May 27 2015 18:29
since espressif stays away
could be used for anything
store sketches for esp or arduino
or whatever
as said, only chip erase works there and it's a hardware command
the bootloader can't address that space
there are settings for larger flash to be set by the compiler
but espressif does not care
btw, adc is pretty accurate :)
Markus
@Links2004
May 27 2015 18:34
is acces by the flash functions possible?
ficeto
@ficeto
May 27 2015 18:34
still running and after some observations and calculations, what i see is what my meter shows as well
@Links2004 there is something that could be done but it needs understanding first
a small program can be uploaded in the memory and run from there
we can control the UART through the registers
we need to learn how to talk properly to the flash (I'm on it)
Markus
@Links2004
May 27 2015 18:36
if we go down to SPI level i see no problem
ficeto
@ficeto
May 27 2015 18:36
then that could maye used to reflash from uart or spiffs stored image
yeah, generally should be fine
some SPI and some support lib for the flash commands themselves
Markus
@Links2004
May 27 2015 18:37
yes esptool py has an example for ram upload and run inside
ficeto
@ficeto
May 27 2015 18:37
but then have to know how to load it and so on...
yes, exactly
but that's like nothing compared to what we are talking about
so i'm not quite sure how to get it all done
but know @igrr will help
anyone can
:D
Markus
@Links2004
May 27 2015 18:38
for the bootloader its the same. only more data
so the ram load shut work until the ram is full.
ficeto
@ficeto
May 27 2015 18:39
yeah
32K there
for the program I think
should be plenty for uart to flash
no clue of the spiffs footprint yet
Markus
@Links2004
May 27 2015 18:40
yes
ficeto
@ficeto
May 27 2015 18:40
but other options are also available
spiffs is actually not that hard to read
i can prolly hack a function to just read a file
Markus
@Links2004
May 27 2015 18:44
https://www.onlinedisassembler.com/odaweb/cejB6EW3/0 the asm from the embadded stuff in the py tool
chad cormier roussel
@chadouming
May 27 2015 18:50
that online disassembly ide is awesome
ficeto
@ficeto
May 27 2015 18:50
yeah!
Markus
@Links2004
May 27 2015 18:50
yes its very usefull and can handle many core types
chad cormier roussel
@chadouming
May 27 2015 18:53
eh, world is kinda small. I thought i knew that name ficeto. I had darky rom on my SGS
ficeto
@ficeto
May 27 2015 18:54
:D
that is still kinda running
chad cormier roussel
@chadouming
May 27 2015 18:56
i'm the crazy dude that flashed the GT-I9000 bootloader on my T959D
So i could flash international rom on my telus phone xD
ficeto
@ficeto
May 27 2015 18:56
i'm not actively developping,but there are still folks that do, and i'm still hosting the forum and OTA and whatnot
hahahahah
chad cormier roussel
@chadouming
May 27 2015 18:57
eh, I know have a nexus 5
ficeto
@ficeto
May 27 2015 18:57
i had a very close friend of mine that did the same thing
chad cormier roussel
@chadouming
May 27 2015 18:57
way easier
ficeto
@ficeto
May 27 2015 18:57
me too :D
chad cormier roussel
@chadouming
May 27 2015 18:57
and using optipop rom
ficeto
@ficeto
May 27 2015 18:57
well... and an iPhone
no rom
chad cormier roussel
@chadouming
May 27 2015 18:57

devil
xD
ficeto
@ficeto
May 27 2015 18:58
samsung got me out... way too shitty phones and security on top
when the SGS3 came out.. selinux came
so lots of gymnastics to get root going...
later they put some crp in the bootloader that screwed the phone if hacked
chad cormier roussel
@chadouming
May 27 2015 18:59
well, before my N5, i had the Galaxy S II (Telus version), galaxy nexus, Optimus G (That i kinda transformed into a nexus 5), nexus 5 (Mic broken), Xperia Z II, Nexus 5
ficeto
@ficeto
May 27 2015 18:59
too much fight and not enough fun
chad cormier roussel
@chadouming
May 27 2015 18:59
remember the flash reset device
flash counter reset device*
ficeto
@ficeto
May 27 2015 19:00
yup
i still have my SGS around
chad cormier roussel
@chadouming
May 27 2015 19:00
i sold mine
ficeto
@ficeto
May 27 2015 19:00
like to hear Voodoo on boot :D
chad cormier roussel
@chadouming
May 27 2015 19:00
only phone i've sold
ficeto
@ficeto
May 27 2015 19:00
my mom has my SGS2
I had lots of phones... worked on many
gave them to friends
can not sell a phone
Markus
@Links2004
May 27 2015 19:02
o yes still have all my phones xD
ficeto
@ficeto
May 27 2015 19:02
forget phones :D MCUs talking here :D
i keep reading about voip support in those
saw some Sip functions in the rom
any info on those?
Markus
@Links2004
May 27 2015 19:02
yes but no documentation
chad cormier roussel
@chadouming
May 27 2015 19:03
my Z2 is derped too
i tried to make root happen, but bootloader didn't like
that broke my TA partition
and it won't boot anymore
ficeto
@ficeto
May 27 2015 19:03
fun...
chad cormier roussel
@chadouming
May 27 2015 19:04
yeah, well it was fun, until it didn't boot xD
ficeto
@ficeto
May 27 2015 19:04
i got so fed up with it that I no longer write any root apps for android
try not to write at all for it.. :D
chad cormier roussel
@chadouming
May 27 2015 19:04
lol
i hate java
only app i made is my apps to read data from the sensors i am making with the esp8266
ficeto
@ficeto
May 27 2015 19:05
java is not bad, but writing apps for android is
gazillion screen sizes and capabilities
you can never know on what phone and OS your app will endup on
chad cormier roussel
@chadouming
May 27 2015 19:06
i'm writing for my N5, that's about it
ficeto
@ficeto
May 27 2015 19:06
sticking to the SDK is generally fine in means of functionality
ficeto
@ficeto
May 27 2015 19:07
UI is a different story
send a shot better
phone is not hooked
chad cormier roussel
@chadouming
May 27 2015 19:08
flashing a new rom, i'll send a shot when it's done
ficeto
@ficeto
May 27 2015 19:08
:D
have not heard that in a while
chad cormier roussel
@chadouming
May 27 2015 19:08
i'm helping a friend trying to find why play services are crashing
ficeto
@ficeto
May 27 2015 19:09
adb logcat can help with that
chad cormier roussel
@chadouming
May 27 2015 19:09
lol, i know xD
might be more worthy than the app
same data, different format :P
just change for today's date
ficeto
@ficeto
May 27 2015 19:10
which DHT library are you using
chad cormier roussel
@chadouming
May 27 2015 19:12
adafruit dht sensor library
works fine out of the box
ficeto
@ficeto
May 27 2015 19:13
will give it a go
still running on the lipo.. 3.64V
Markus
@Links2004
May 27 2015 19:14
found something esp8089 looks simulare to the esp8266 and has the sip stuff some code: https://github.com/george-hopkins/esp8089-spi/blob/master/ http://espressif.com/en/products/esp8089/
chad cormier roussel
@chadouming
May 27 2015 19:14
still running here too and it's over 4v xD
ficeto
@ficeto
May 27 2015 19:14
will fill it agan and take a nice discharge graph
i do not sleep :D
mine is online 100%
chad cormier roussel
@chadouming
May 27 2015 19:15
that indeed make a huge difference
mine does : wake up, take temperature and humidity, send data, get time, sleep until next XX:X5 or XX:X0 (i.e. : 15h20)
ficeto
@ficeto
May 27 2015 19:21
@Links2004 ours are different
PROVIDE ( sip_alloc_to_host_evt = 0x40005180 );
PROVIDE ( sip_get_ptr = 0x400058a8 );
PROVIDE ( sip_get_state = 0x40005668 );
PROVIDE ( sip_init_attach = 0x4000567c );
PROVIDE ( sip_install_rx_ctrl_cb = 0x4000544c );
PROVIDE ( sip_install_rx_data_cb = 0x4000545c );
PROVIDE ( sip_post = 0x400050fc );
PROVIDE ( sip_post_init = 0x400056c4 );
PROVIDE ( sip_reclaim_from_host_cmd = 0x4000534c );
PROVIDE ( sip_reclaim_tx_data_pkt = 0x400052c0 );
PROVIDE ( sip_send = 0x40005808 );
PROVIDE ( sip_to_host_chain_append = 0x40005864 );
PROVIDE ( sip_to_host_evt_send_done = 0x40005234 );
chad cormier roussel
@chadouming
May 27 2015 19:22
hmm, so if this thing has sip, we could make wifi chip to spy on people :D
you can make really small device with that MCU
ficeto
@ficeto
May 27 2015 19:23
yup
chad cormier roussel
@chadouming
May 27 2015 19:23
(>:D)
Ivan Grokhotkov
@igrr
May 27 2015 19:23
this is not that SIP (VoIP one), it's a shorthand for serial interface protocol
chad cormier roussel
@chadouming
May 27 2015 19:24
D:
ficeto
@ficeto
May 27 2015 19:24
and what is that serial interfece protocol?
chad cormier roussel
@chadouming
May 27 2015 19:24
probably still possible to hook a microphone on these thing and stream everything xD
ficeto
@ficeto
May 27 2015 19:25
i imagine SIP is not that hard to implement... it's UDP and taxt based controll
Ivan Grokhotkov
@igrr
May 27 2015 19:25
esp8089 is used in a slave mode by the host processor (in some rockchip-based tablets)
ficeto
@ficeto
May 27 2015 19:25
then data is udp stream on different port
Ivan Grokhotkov
@igrr
May 27 2015 19:25
it's the protocol that is used to communicate between the host and the slave
ficeto
@ficeto
May 27 2015 19:26
why do we have it?
oh.... oh...
i think i know why...
Ivan Grokhotkov
@igrr
May 27 2015 19:26
esp8266 supports it as well
ficeto
@ficeto
May 27 2015 19:26
i wanted to bood from sd card
while that SDIO is actually the other way arround
the esp acts as SDIO slave
since there are such WiFi adapters
Ivan Grokhotkov
@igrr
May 27 2015 19:27
it can boot in sdio mode, being a SDIO slave
ficeto
@ficeto
May 27 2015 19:27
pin15 high
Ivan Grokhotkov
@igrr
May 27 2015 19:27
yup
ficeto
@ficeto
May 27 2015 19:27
i wandered why i was getting "waiting for host" in boot
that explains it
btw I noticed that my ESP-12Es reboot and flash better when EN pin is used for reset
and my ESP-12s do better using the RST pin
so i tied both together and pulled them up with single resistor and reset at the same time
anything wrong with that?
would it break sleep if I want it?
chad cormier roussel
@chadouming
May 27 2015 19:30
well, you need the rst pin tied to gpio 16 to sleep
ficeto
@ficeto
May 27 2015 19:31
is it a problem if they do trisom with the EN pin?
chad cormier roussel
@chadouming
May 27 2015 19:31
don't know
ficeto
@ficeto
May 27 2015 19:32
you mind pasting that sleep command so i test?
i'm new to sleep :D
chad cormier roussel
@chadouming
May 27 2015 19:32
ESP.deepSleep((secondToSleep * 1000000), WAKE_NO_RFCAL);
ficeto
@ficeto
May 27 2015 19:32
and tie the pins
that's it?
chad cormier roussel
@chadouming
May 27 2015 19:33
wake_no_rfcal is optionnal
yup
tie the pin to a pull=up
pull-up*
ficeto
@ficeto
May 27 2015 19:33
what does WAKE_NO_RFCAL do?
oh yeah
no calibration
faster boot
chad cormier roussel
@chadouming
May 27 2015 19:33
take less battery
which is useful for me xD
i'm still getting a few WDT with reset cause 2 every now and then
chad cormier roussel
@chadouming
May 27 2015 20:03
good news everyone
very good news in fact
Ivan Grokhotkov
@igrr
May 27 2015 20:10
cool
lol they created a new github account for their app
chad cormier roussel
@chadouming
May 27 2015 20:15
bad app? xD
essentially, this says : Fuck you all developers who want to use our tools on other device like the emw3162
chad cormier roussel
@chadouming
May 27 2015 23:43
hmm, seems like they fixed readvdd33 with station only mode :D