Nice, what is the battery life using lipoly and what is the battery capacity.
I am also trying to decide on high capacity AA cels, or lipo / liion foi my project which will be deployed on the other side of the world !
How do you calibrate the RTC ??
Search found 473 matches
- Sat Feb 25, 2017 1:50 pm
- Forum: Hardware Projects
- Topic: Graphing barometer - storm Doris
- Replies: 4
- Views: 4870
- Sat Feb 25, 2017 1:12 pm
- Forum: ESP8266 boards
- Topic: esp.deepsleep() overflow
- Replies: 3
- Views: 4551
esp.deepsleep() overflow
I am using the esp.deepsleep() function, works fine until I try and sleep for 1 hour or more.
This results in numeric overflow, what is the maximum sleep time that can be set using this method ??
This results in numeric overflow, what is the maximum sleep time that can be set using this method ??
Code: Select all
sleepsec = 3600 ## 1 HR
sleepus = sleepsec * 1000000
esp.deepsleep(sleepus)
- Fri Feb 24, 2017 3:08 am
- Forum: General Discussion and Questions
- Topic: Self Update via Socket
- Replies: 1
- Views: 2076
Self Update via Socket
To save me re-inventing the wheel, does anyone have a code snippet that I can use to connect to a socket server and read a file line by line and save it locally ?? I am trying to create a self update app ?! Or would it be better for the server to serve a file line by line as requested by the client,...
- Fri Feb 24, 2017 1:52 am
- Forum: General Discussion and Questions
- Topic: MQTT check_msg() Assertion Error - Bug ?
- Replies: 0
- Views: 1876
MQTT check_msg() Assertion Error - Bug ?
I am using the check_msg() to retrieve any waiting messages, and it crashes whenever it receives one. I suspect that the cause is the QOS which is set on the incoming message and the umqtt_simple library is not handling it ?? checking... Traceback (most recent call last): File "<stdin>", line 1, in ...
- Thu Feb 23, 2017 12:54 pm
- Forum: ESP8266 boards
- Topic: Reading VCC without external components
- Replies: 7
- Views: 8474
Re: Reading VCC without external components
Ahh, sorrie, I missed that at the beginning of the post.
So 2973 = 3277.4 mv
i.e. ADC(0).read() * 1.024
So 2973 = 3277.4 mv
i.e. ADC(0).read() * 1.024
- Thu Feb 23, 2017 12:41 pm
- Forum: ESP8266 boards
- Topic: Fastest WLAN connect with AP fallback
- Replies: 0
- Views: 1630
Fastest WLAN connect with AP fallback
Does anyone have a faster, more concise, low RAM WLAN connection routine that falls back to AP mode if it can't connect to the wlan ? def connect(timeout=10,ssid=None,passkey=None): from network import WLAN,STA_IF, AP_IF sta = WLAN(STA_IF) if not sta.isconnected(): sta.active(True) sta.connect(ssid,...
- Thu Feb 23, 2017 12:38 pm
- Forum: ESP8266 boards
- Topic: Reading VCC without external components
- Replies: 7
- Views: 8474
Re: Reading VCC without external components
Thanks, but the reading I am getting looks like a millivolt value and not a 0 - 1023 value ! >>> import machine >>> vcc = machine.ADC(1) >>> vcc.read() 2973 Update I have verified that if I change the supply voltage, this reading also changes, however comparing the VCC pin with a voltmeter provides ...
- Thu Feb 23, 2017 9:16 am
- Forum: ESP8266 boards
- Topic: Reading VCC without external components
- Replies: 7
- Views: 8474
Re: Reading VCC without external components
Thanks, but that just results in 65535
>>> from machine import ADC
>>> ADC(0).read()
65535
>>>
This link address specifically mentions reading channel #1 of the ADC ?
https://github.com/micropython/micropython/issues/2352
>>> from machine import ADC
>>> ADC(0).read()
65535
>>>
This link address specifically mentions reading channel #1 of the ADC ?
https://github.com/micropython/micropython/issues/2352
- Thu Feb 23, 2017 5:51 am
- Forum: ESP8266 boards
- Topic: Reading VCC without external components
- Replies: 7
- Views: 8474
Reading VCC without external components
The Board is ESP-12S. Is the method shown here the recommended method of setting the registers to allow reading the A/D value of the VCC pin, or has this now been integrated into the firmware ?? https://github.com/micropython/micropython/issues/2352 import esp from flashbdev import bdev import machi...
- Thu Feb 23, 2017 4:20 am
- Forum: ESP8266 boards
- Topic: TCP Socket Closes due to Small buffer
- Replies: 3
- Views: 3237
Re: TCP Socket Closes due to Small buffer
Hi; I know that I am not really answering your question, but I always use 1024 bytes in the receiving buffer: while True: conn, addr = self.sock.accept() raw = conn.recv(1024).decode('UTF-8') if not raw: print('Null Request.',addr) self.close(conn) else: self.request(conn,raw)