Forum Replies Created

Viewing 15 posts - 61 through 75 (of 983 total)
  • Author
    Posts
  • in reply to: RTC_DATA_ATTR Failure #30705
    Renzo Mischianti
    Keymaster

      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 Renzo

      in reply to: E32-433T30D Receiving Struct Problem #30703
      Renzo Mischianti
      Keymaster

        Hi 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 Renzo

        in reply to: EByte e70 very Low sensitivity #30693
        Renzo Mischianti
        Keymaster

          Hi 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

          in reply to: Signal and Package analyzer (E32) #30692
          Renzo Mischianti
          Keymaster

            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 Renzo

            in reply to: EByte e70 very Low sensitivity #30680
            Renzo Mischianti
            Keymaster

              Hi,
              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 Renzo

              in reply to: PCF8575 READ INPUTS #30640
              Renzo Mischianti
              Keymaster

                If 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 Renzo

                in reply to: PCF8575 READ INPUTS #30638
                Renzo Mischianti
                Keymaster

                  Hi,
                  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.
                  in reply to: PCF8575 READ INPUTS #30631
                  Renzo Mischianti
                  Keymaster

                    Hi Amaia,
                    I test the library, and it works correctly.
                    Rewrite the code as usual and retry.
                    Bye Renzo

                    Renzo Mischianti
                    Keymaster

                      Hi,
                      thanks for your feedback, I think your information can be very useful.
                      Bye Renzo

                      Renzo Mischianti
                      Keymaster

                        Hi,
                        It’s very strange; It’s more likely that there are some problems with the power supply and the pull-up resistor.
                        Bye Renzo

                        Renzo Mischianti
                        Keymaster

                          Hi,
                          no, restore to an external 5v power supply and try to change the pullup resistor o try to remove It.
                          Bye Renzo

                          Renzo Mischianti
                          Keymaster

                            Hi 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 Renzo

                            Renzo Mischianti
                            Keymaster

                              Hi 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 Renzo

                              in reply to: E22 channel scanner needs help #30298
                              Renzo Mischianti
                              Keymaster

                                Hi Sid,
                                thanks for your feedback, if you can share your code, I think can be usefully for a lot of people.
                                Bye Renzo

                                in reply to: Max value of ADDH, ADDL and CHAN #30266
                                Renzo Mischianti
                                Keymaster

                                  Hi 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

                                Viewing 15 posts - 61 through 75 (of 983 total)