Forum Replies Created
-
AuthorPosts
-
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 RenzoI must check If It’s possible with simple authentication.
But I need more time.
Bye RenzoHi Morpheus,
The algorithm of encryption is proprietary to EByte, and I think It’s quite impossible to decrypt, but with brute force (if people try all the 255*255 combinations and the correct channel) people can intercept and read the communication.
Bye RenzoHi,
In get configuration you can retrieve ADDH and ADDL.
To send messages you can read this article.
Ebyte LoRa E220 device for Arduino, esp32 or esp8266: fixed transmission, broadcast, monitor, and RSSI – 4Bye Renzo
Hi Syrinx,
the Arduino GIGA sent from the Arduino factory arrived this week, but now I must check the features.
Probably I start next week.
Bye RenzoHi Elkez,
enable debug and post all the output of the 2 microcontrollers.
Bye Renzo14 February 2024 at 16:14 in reply to: Sending Bytes via Software Serial with E22 Library for Arduino IDE with ESP32 #29756Hi BechicMV,
no, you can’t use SoftwareSerial with esp32, but you can use Serial port with custom pins.To send bytes you can refer to the tutorial.
Bye Renzo
6 February 2024 at 08:23 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29644Hi Woto,
thanks. It’s very interesting and helpful.
I’m going to examine the situation, but with your help, I think It will become simpler.
Thanks again, Renzo.4 February 2024 at 10:56 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29622Hi woto,
I must do some check, but someone uses this approach to clean the strx.encode('utf-8','ignore').decode("utf-8")
But I must check It.
Bye RenzoThanks, Guy; I am waiting for your news.
Bye RenzoHi Guy,
I tested now the library on my Raspberry Pi 4b, and it works correctly.
Can you post your code?
Thanks RenzoHi Guy,
I check that normally aren’t needed, but to prevent messages and issues I add them every time.
So if It works correctly, don’t worry.
Bye RenzoIt’s bizarre, but the only thing I have in mind is that the antenna is short something.
Try to change the antenna or similar.
Bye RM -
AuthorPosts