These are chat archives for esp8266/Arduino

26th
May 2015
tzapu
@tzapu
May 26 2015 14:18
hi guys, is it possible to overwrite the values for SDA and SCL loaded from pins_arduino.h in my sketch?
or at least create a variant of board that doesn t get removed on the next update to the esp8266 package?
the reason being i need a variant for the esp01 with 0,2 as scl sda and so Wire.begin() works
i don t want to use wire.begin(0,2) because it s called in the adafruit lib, not in my code
Michael Miller
@Makuna
May 26 2015 18:11
@tzapu another option would be to modify the begin(void) to check to see if begin(sda,scl) was already called and not reset the pins. This way, in your sketch setup you could call Wire.being(sda, scl) before init the adafruit library.
chad cormier roussel
@chadouming
May 26 2015 18:57
anyone noticed is device wake up from deep sleep early ? If i make it sleep for 5 minutes, sometimes it just wakes up after 2 mins
Ivan Grokhotkov
@igrr
May 26 2015 19:03
@tzapu there's Wire.pins(SDA, SCL); for that
call it before your library calls begin
ficeto
@ficeto
May 26 2015 20:31
@chadouming could the device wake up for some other reason?
like some pin that can wake it up to be floating or something
chad cormier roussel
@chadouming
May 26 2015 20:32
i doubt so
ficeto
@ficeto
May 26 2015 20:32
i imagine when you put it to "sleep" it keeps the clock on
chad cormier roussel
@chadouming
May 26 2015 20:32
rst and gpio16 are tied together to gnd
ficeto
@ficeto
May 26 2015 20:32
then an overflow maybe could wake it up?
chad cormier roussel
@chadouming
May 26 2015 20:33
well, honnestly, i'm only using a very few pins
ficeto
@ficeto
May 26 2015 20:33
did you tie them together? how does that work? I have not really used that function yet...
chad cormier roussel
@chadouming
May 26 2015 20:34
made a PCB
ficeto
@ficeto
May 26 2015 20:35
i'm not sure how the WDT detects the time has come in means of code, but I imagine it reads and compares the clock, or has an alarm, so in case of an overflow it might not be made to handle that condition
rst to ground should keep the mcu off, should it not?
nope, rst should be grounded when in use
it's active on high
Markus
@Links2004
May 26 2015 20:38
no low =reset, high = running
ficeto
@ficeto
May 26 2015 20:38
? you sure? I have that pin pulled up
nice board btw
chad cormier roussel
@chadouming
May 26 2015 20:39
right, they are tied together and pulled up by a 2.2k resistor
thanks
perfect little temperature node :P
plan on changing the DHT22 for an sht20 tho
ficeto
@ficeto
May 26 2015 20:42
can you log the clock value on going to sleep and on wakeup
not the millis(), but the actual timer value
I would also really like to know how long you live on a battery
chad cormier roussel
@chadouming
May 26 2015 20:43
i'm actually doing test
ficeto
@ficeto
May 26 2015 20:43
but since it's not done yet, will wait :)
chad cormier roussel
@chadouming
May 26 2015 20:43
running with a LiFePO4 battery
no need for a regulator :D
ficeto
@ficeto
May 26 2015 20:43
LiFE are the shit!
this is the kind of battery that was needed
my RC transmitter is using such battery
98% of the time, constant 3.3 on a cell
then death
chad cormier roussel
@chadouming
May 26 2015 20:44
yeah
that's why i wanted the readvdd33 function
xD
ficeto
@ficeto
May 26 2015 20:45
i also should say that I run the esp on a lipo and had no issues so far
chad cormier roussel
@chadouming
May 26 2015 20:45
ain't lipo 4.2v fully charged and absolute voltage of the chip 3.6v ?
ficeto
@ficeto
May 26 2015 20:45
well the adc compares with the vcc, don't think it's meant for that
maybe to read the voltage before an LDO
because i tested it and value does not change with vcc
lipo is 4.2 yes
chad cormier roussel
@chadouming
May 26 2015 20:47
analogRead(17) 3.96484375; // That's (4.065/1024)1000 (Calibrated value)
ficeto
@ficeto
May 26 2015 20:47
i have so many, I can fry one
chad cormier roussel
@chadouming
May 26 2015 20:47
read correct value
ficeto
@ficeto
May 26 2015 20:47
but no luck yet
chad cormier roussel
@chadouming
May 26 2015 20:47
meh, if it take lipo, i might move to lipo
ficeto
@ficeto
May 26 2015 20:47
i'll charge one and leave the ESP on
do not fry yours
chad cormier roussel
@chadouming
May 26 2015 20:47
lol
ficeto
@ficeto
May 26 2015 20:47
I have 10-15 of those things
chad cormier roussel
@chadouming
May 26 2015 20:49
I killed one because i was testing with a power supply and changed the voltage instead of the max current xD
seems like they don't like 30V
I want an esp-06 with RST pin exposed
ficeto
@ficeto
May 26 2015 20:50
:D :D
chad cormier roussel
@chadouming
May 26 2015 20:57
or with rst and gpio16 pin already pulled up together
that would be so much awesomeness
ficeto
@ficeto
May 26 2015 21:10
it's unclear to me why none of the modules have the needed pullups installed
en and rst should always be pulled up
people should be able to boot without resistors
chad cormier roussel
@chadouming
May 26 2015 21:13
well, i remember changing en state with arduino
i.e. arduino shut the chip down
chad cormier roussel
@chadouming
May 26 2015 23:49
@Links2004 you switched the flash chip to another on your device ?