Forum Replies Created
-
AuthorPosts
-
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 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 Renzo5 April 2024 at 12:49 in reply to: If high temperature then send email using Arduino Uno and Ethernet Shield W5100 #30256I think the enc28j60 need more resources respect w5500.
Bye Renzo4 April 2024 at 15:52 in reply to: If high temperature then send email using Arduino Uno and Ethernet Shield W5100 #30252Ahhh ok sorry Erjon,
you can reduce memory usage by disabling the attachments.
Bye RenzoHi 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
4 April 2024 at 15:34 in reply to: If high temperature then send email using Arduino Uno and Ethernet Shield W5100 #30249It’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.
-
AuthorPosts