Forum Replies Created
-
AuthorPosts
-
Hi Willian,
the code is quite complex, and I need time to check It in depth, but what is the scope of the Ticker library?
Bye RenzoHi Baftu,
I think you set the pointer for the structure, not the structure of single elements.
You must create a fixed structure with fixed-size elements.
Bye RenzoHi Elkez,
I normally describe a device module thinking of a real scenario (I don’t write to have a visit), and I select the e70 because it has RSSI and a very good Sleep mode management to manage the battery. You probably never raise a distance if a device is declared for 1.5km but has high sensitivity.
All to say, this can be considered a good solution.
There are alternatives, but the efficiency can’t be the same.But in your case (low number of messages per second), I think it can be a good solution for a LoRa device like the e220.
Bye Renzo
Hi phnahes,
I think you can’t decode because the EByte uses a proprietary cryptography system to obfuscate the message.
Even if some people decode it for e32 (it doesn’t have a key to change the algorithm), here is the thread where you can find some information.
EByte LoRa Communication encode/decode, crypt/decrypt
I don’t know if @Sahar-2 go ahead with Its idea, but I think you can ask.
Bye RenzoHi,
yes, it’s quite impressive, and I start some penetration test and I notice that 4/5 wall (with meet iron) can’t block the signal.
Bye RenzoIf you want to try, I also pushed a new version that adds a lot of features and the possibility to specify the INPUT_PULLUP mode.
Bye RenzoHi,
I tested now this sketch/* KeyPressed on PIN1 by Mischianti Renzo <http://www.mischianti.org> https://www.mischianti.org/2019/01/02/pcf8575-i2c-digital-i-o-expander-fast-easy-usage/ */ #include "Arduino.h" #include "PCF8575.h" // Set i2c address PCF8575 pcf8575(0x20); unsigned long timeElapsed; void setup() { Serial.begin(115200); // pcf8575.pinMode(P0, OUTPUT); pcf8575.pinMode(P1, INPUT); pcf8575.begin(); timeElapsed = millis(); } void loop() { // if (millis() - timeElapsed > 2000) { // if (pcf8575.digitalRead(P0) == HIGH) { // pcf8575.digitalWrite(P0, LOW); // } else { // pcf8575.digitalWrite(P0, HIGH); // } // timeElapsed = millis(); // } uint8_t val = pcf8575.digitalRead(P1); if (val == HIGH) { Serial.println("KEY PRESSED"); } delay(100); }
And this sketch
/* KeyPressed on PIN1 by Mischianti Renzo <http://www.mischianti.org> https://www.mischianti.org/2019/01/02/pcf8575-i2c-digital-i-o-expander-fast-easy-usage/ */ #include "Arduino.h" #include "PCF8575.h" // Set i2c address PCF8575 pcf8575(0x20); unsigned long timeElapsed; void setup() { Serial.begin(115200); pcf8575.pinMode(P0, OUTPUT); pcf8575.pinMode(P1, INPUT); pcf8575.begin(); timeElapsed = millis(); } void loop() { if (millis() - timeElapsed > 2000) { if (pcf8575.digitalRead(P0) == HIGH) { pcf8575.digitalWrite(P0, LOW); } else { pcf8575.digitalWrite(P0, HIGH); } timeElapsed = millis(); } uint8_t val = pcf8575.digitalRead(P1); if (val == HIGH) { Serial.println("KEY PRESSED"); } delay(100); }
and work properly.
Can you also insert the wiring diagram?
Bye Renzo
Attachments:
You must be logged in to view attached files.Hi Amaia,
I test the library, and it works correctly.
Rewrite the code as usual and retry.
Bye Renzo29 April 2024 at 09:24 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30628Hi,
thanks for your feedback, I think your information can be very useful.
Bye Renzo28 April 2024 at 12:16 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30621Hi,
It’s very strange; It’s more likely that there are some problems with the power supply and the pull-up resistor.
Bye Renzo18 April 2024 at 08:55 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30337Hi,
no, restore to an external 5v power supply and try to change the pullup resistor o try to remove It.
Bye Renzo16 April 2024 at 16:38 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30332Hi phnahes,
It’s possible that you connect on Arduino the power pin of e32 to 5v and to the esp32 to the 3.3v?
Bye Renzo16 April 2024 at 08:17 in reply to: BeePrint work with FLSun QQs-Pro stock firmware but not with marilin #30322Hi Luxed,
Other people tell me that they have problems with Marlin firmware. I think it manages communication in a different way, and I think it can’t work with this implementation.
Bye RenzoHi Sid,
thanks for your feedback, if you can share your code, I think can be usefully for a lot of people.
Bye RenzoHi Andrecolz,
yes, the combination for the address is ADDH*ADDL, so 255*255.For the max CHAN value, you must check the datasheet; every device has an It range.
Bye Renzo -
AuthorPosts