Forum Replies Created
-
AuthorPosts
-
Hi William,
Sorry, I lost the first message on this topic.
But I don’t have any measurements for esp32 and E220, but as described here
ESP32 practical power saving: deep sleep and hibernation – 3
remember that there are several differences between the different prototype boards.
Bye RenzoHi William,
Thanks for the report, I’ll go and fix it.
Thank youThanks Jules,
Your info will be precious for a lie of people.
Bye RenzoHi Sid,
try to put the procedure in a function to check if something in the context remains dirty.
Use only local variables and not global ones.
Bye RenzoHi William,
It’s normal the device use a WOR cycle to check if some message is coming, you can find more information here.WOR Cycle
A critical configuration parameter is WOR Cycle, for the sender is essential because It adds a long preamble to the message (long as wake time). The handset uses the wake-up time as the cadence for checking a wake-up message. So if the receiver checks every 2000ms (polling time) if there is a message, the sender adds a 2000ms preamble. The receiver intercepts the message preamble, waits for the actual message to read, and returns to power save mode.So If you want to maximize the power save, you must put minimal WOR Cycle. If you want more efficiency, you must do the inverse.
Bye Renzo
Hi Sid,
try to put a bigger delay for every transmission and give our a feedback.
Bye RenzoNo,
for GIGA exists specified API with custom operators.
Here is my implementation, but it does not work for now.
Bye RenzoHi William,
Thanks for your feedback.
Bye RenzoHi Syrinx,
Sending mail with GIGA works correctly, but I think USB stick support can’t be added because of some problems with the library’s scope.
I release the official new version of EMailSender soon.
Bye RenzoHi William,
first of all, try to send a String and check if It’s transferred correctly.
Then, try to use a char or byte to set the value.
Bye RenzoDon’t worry, William, I must write the same articles for E32 for E220, but for now, the examples can be useful.
Rye RenzoHi William,
The E220 has a different setting structure; please take a look at the examples of the library.
Here, you can find the WOR sender and WOR receiver configuration.Here is the sketch to send WOR, and here is the sketch to receive It.
Bye Renzo
But I think it’s not safe to connect the output battery directly to the ESP32. It’s better to use a step-up and connect to the 5v (and use this for the ESP32 and LoRa module).
I usually do this: I use a TP4056 to charge the 18650 battery, a step-up to convert the battery’s voltage to a fixed 5v, and from there, I power both the Arduino and the LoRa device (do not power at 3.3v as it reduces the range).
Here you can find a detail.
Emergency power bank homemadeBye Renzo
Hi Sid,
for my projects, I use this functionfloat getBatteryVoltage(){ //************ Measuring Battery Voltage *********** float sample1 = 0; for (int i = 0; i < 100; i++) { sample1 = sample1 + analogRead(A0); //read the voltage from the divider circuit delay(2); } sample1 = sample1 / 100; DEBUG_PRINT(F("AnalogRead...")); DEBUG_PRINTLN(sample1); float batVolt = (sample1 * 3.3 * (BAT_RES_VALUE_VCC + BAT_RES_VALUE_GND) / BAT_RES_VALUE_GND) / 1023; int bvI = batVolt * 100; batVolt = (float)bvI/100; return batVolt; }
Where
BAT_RES_VALUE_VCC is the resistor value of VCC part
BAT_RES_VALUE_GND is the resistor value of GND part
3.3 is the reference voltage of the ESP8266
and 1023 is the divider of the analog pin.I use 20k and 10k resistor.
I do multiple reads to be sure that the reading is correct without voltage oscillation.
Bye RenzoHi William,
all shields support E220 with the correct library.
Bye Renzo -
AuthorPosts