Search found 33 matches

by lbernstone
Sun Jan 05, 2020 5:13 pm
Forum: ESP32 Arduino
Topic: Trigger sntp request manually
Replies: 1
Views: 166

Re: Trigger sntp request manually

If you use configTime, it will create a sntp task that will attempt to connect to an NTP server (every 60 minutes)- no additional config necessary. After you call it, you can call getLocalTime with a timeout (the second parameter), or set a timer if you want it non-blocking. If it fails to get the t...
by lbernstone
Mon Nov 18, 2019 5:13 pm
Forum: ESP32 Arduino
Topic: Analog Read Accuracy
Replies: 4
Views: 656

Re: Analog Read Accuracy

This is a good read, and includes some examples of calibration. https://github.com/espressif/arduino-esp32/issues/1804
SAR is always going to be biased towards the ends of the scale, and the esp32 seems particularly insensitive there.
by lbernstone
Mon Nov 11, 2019 2:52 pm
Forum: ESP32 Arduino
Topic: How to get current WiFi Status
Replies: 3
Views: 492

Re: How to get current WiFi Status

MAX on any enum value is typically a dummy value set so that if you are iterating over the values, you know you have reached the end. It has no meaning. WIFI_OFF == WIFI_MODE_NULL.
by lbernstone
Mon Nov 11, 2019 2:47 pm
Forum: ESP32 IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 776

Re: Reading temperature and humidity

If you are storing the data for processing, it will be more efficient all the way down the line to work with integers rather than decimals. Efficiency = lower cost. APIs are really for computers to interact (efficiently when possible). The presentation to your eyeballs is the only place where it is ...
by lbernstone
Sun Nov 10, 2019 4:37 pm
Forum: ESP32 IDF
Topic: Reading temperature and humidity
Replies: 15
Views: 776

Re: Reading temperature and humidity

The temperature/humidity sensors have very limited memory, so they save space wherever possible. On a device that measures temperature from 0-100, you can get away with a 10-bit integer register (2^10=1024) to store it, with one decimal place of precision. A float value is 32 bits, and more complica...
by lbernstone
Sun Nov 03, 2019 12:17 am
Forum: Hardware
Topic: ESP32-D0WDQ6 Factory Firmware/Bootloader or is it Empty?
Replies: 2
Views: 266

Re: ESP32-D0WDQ6 Factory Firmware/Bootloader or is it Empty?

There is a bootloader. You can set the bootloader to download by strapping gpio0 to ground. Use an IDE or the bootloader utility (https://github.com/espressif/esptool) to upload your firmware.
by lbernstone
Tue Oct 29, 2019 2:01 pm
Forum: ESP32 Arduino
Topic: Can't upload more than 1 MB to spiffs?
Replies: 2
Views: 559

Re: Can't upload more than 1 MB to spiffs?

In most file systems, there is a minimum physical file size. This means that even if the file is only 1 byte of content, it will use a full block when written to disk. I am not familiar with SPIFFS internals, but the physical block size on SPI_Flash is 4096, so that is probably the filesystem block ...
by lbernstone
Sun Oct 27, 2019 3:33 pm
Forum: ESP32 Arduino
Topic: How to set ware levelling Safety mode in Arduino ESP add on
Replies: 4
Views: 604

Re: How to set ware levelling Safety mode in Arduino ESP add on

Safety mode will be introduced in ESP-IDF v4.0. Arduino-esp32 v1.0.4 uses IDF v3.2. When v4.0 is released and stable, arduino will update to that upstream version. However, using an advanced feature like this will always require you to compile your own libraries. There are no guarantees that all the...
by lbernstone
Sat Oct 26, 2019 1:48 pm
Forum: ESP32 Arduino
Topic: WiFi RSSI to percentage
Replies: 2
Views: 551

Re: WiFi RSSI to percentage

Using a percentage is misleading, most people recognize the "bars" for signal strength better than a number. https://www.netspotapp.com/what-is-rssi-level.html It is better to send the strength as collected, and let the server (or consumer) on the other end do the conversion. Raw data is more accura...

Go to advanced search