Forum Replies Created

Viewing 15 posts - 61 through 75 (of 979 total)
  • Author
    Posts
  • 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

                          Renzo Mischianti
                          Keymaster

                            I think the enc28j60 need more resources respect w5500.
                            Bye Renzo

                            Renzo Mischianti
                            Keymaster

                              Ahhh ok sorry Erjon,
                              you can reduce memory usage by disabling the attachments.
                              Bye Renzo

                              in reply to: TimeStamp not working #30251
                              Renzo Mischianti
                              Keymaster

                                Hi William,
                                if you want to use a Structure, you must use fixed size variables. String is dynamic, and the receiver can’t know the correct size.

                                Try to use something like this.

                                
                                Have struct Message{
                                int switchState;
                                char[13] timeStamp;
                                }message;
                                

                                Bye Renzo

                                Renzo Mischianti
                                Keymaster

                                  It’s possible that firewall block some port and It doesn’t work, however, it’s important to note that the Arduino Uno does not support SSL, which is required for secure email transmission.

                                  Therefore, you would need to use a specific email provider that allows non-SSL communication or explore alternative email sending methods, such as using a third-party service or API designed to work with IoT devices like the Arduino.

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