Forum Replies Created

Viewing 15 posts - 736 through 750 (of 1,031 total)
  • Author
    Posts
  • in reply to: simpleServer ftp android #16911
    Renzo Mischianti
    Keymaster

      Hi Moni,
      in the screen seems there isn’t nothing strange, did you try to transfer data?
      Bye Renzo

      Renzo Mischianti
      Keymaster

        Hi Felanino,
        I found an example about that for pcf8574, but I think you can reuse that for pcf8575 also.

        Here an image of Arduino connection schema
        pcf8574 IR Connection

        Here the complete code

        
        #include "Arduino.h"
        #include "PCF8574.h"
        
        const byte INTERRUPTED_PIN = 2;
        
        // Function interrupt
        void infraRedActive();
        
        // Set i2c address
        PCF8574 pcf8574List [] = { PCF8574(0x20, INTERRUPTED_PIN, infraRedActive), PCF8574(0x21, INTERRUPTED_PIN, infraRedActive) } ;
        
        bool irActive = false;
        
        int i = 0;
        uint8_t val = -1;
        const int pcf8574Count = 2;
        
        void setup() {
        
          Serial.begin(9600);
          for ( i = 0; i < pcf8574Count ; i++) {
            // Set pinMode to OUTPUT
            pcf8574List[i].pinMode(P0, OUTPUT);
            pcf8574List[i].pinMode(P1, OUTPUT);
            pcf8574List[i].pinMode(P6, INPUT);
            pcf8574List[i].pinMode(P7, INPUT);
        
            Serial.print("Init pcf8574..." + i );
            if (pcf8574List[i].begin()) {
              Serial.println("PCF8574 INIT SUCCESS ");
            } else {
              Serial.println("PCF8574 INIT FAILED ");
            }
          }
        }
        
        void loop() {
          delay(500);
          doOperation(pcf8574List[0], 1);  
          doOperation(pcf8574List[1], 2);
          irActive = false;
        }
        
        void doOperation(PCF8574 pcf8574, int no) {
          pcf8574.digitalWrite(P0, LOW);
          if (irActive) {
            Serial.println(no);
            pcf8574.digitalWrite(P0, HIGH);
            pcf8574.digitalWrite(P1, LOW);
            val = pcf8574.digitalRead(P6);
            if (val == 0) {
              Serial.print("P6 ");
              Serial.println(val);
            }
            val = -1;
            val = pcf8574.digitalRead(P7);
            if (val == 0) {
              Serial.print("P7 ");
              Serial.println(val);
            }
            delay(1000);
            pcf8574.digitalWrite(P1, HIGH);
            val = -1;
          }
        }
        
        void infraRedActive() {
          //Serial.println("*");
          irActive = true;
        }
        

        Thanks to adarshkumarsingh83

        Bye Renzo

        in reply to: simpleServer ftp android #16904
        Renzo Mischianti
        Keymaster

          Hi moniteur41,
          to upload photo you can use 2 way, create an account or use service like Postimage .

          Try to add
          SPIFFS.format();
          after begin phase.

          Bye Renzo

          in reply to: Send and Receive in one sketch #16612
          Renzo Mischianti
          Keymaster

            Hi AuLeeFor,
            you can find It in the first “tutorial” article about e32.
            Ebyte LoRa E32 device for Arduino, esp32 or esp8266: specs and basic usage – Part 1

            Bye Renzo

            in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16581
            Renzo Mischianti
            Keymaster

              Hi r0vert,
              sorry but the problem can be your network or the certificate, I don’t know how to help you better.
              Bye Renzo

              in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16577
              Renzo Mischianti
              Keymaster

                I think It’s permanent, but to be sure try to re-upload the NINA firmware from arduino ide and re-upload the certificate.
                Bye Renzo

                in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16575
                Renzo Mischianti
                Keymaster

                  Hi,
                  the debug message say to us that the micro controller can’t communicate with google, so (if not work with hot spot also) probably there is a problem with the certificate you add to the device.

                  Try to update firmware and the add google.com to the list and request to upload the certificate with the button in the bottom of popup.

                  Bye Renzo

                  in reply to: Download links #16574
                  Renzo Mischianti
                  Keymaster

                    Hi PonyStyle,
                    I upload all the code and the precompiled firmare, you can get more information in the relative articles.
                    MKS WIFI for Makerbase Robin: communication protocol and Cura plugin – 3

                    Bye Renzo

                    in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16569
                    Renzo Mischianti
                    Keymaster

                      Hi r0vert,
                      I try your sketch and It’s work without problem, I think there is some wrong in your network or your gmail account permission.
                      Try to enable debug on library and send me the result.
                      Bye Renzo

                      in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16566
                      Renzo Mischianti
                      Keymaster

                        Hi,
                        arduino answer me, and the wifi Nina is the same.
                        So there aren’t additional problem respect my mkr 1010 that work with the library.

                        Can you write the exact code with xxx on password and other data without change anything else.. ( same breaket and “)

                        Bye Renzo

                        in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16519
                        Renzo Mischianti
                        Keymaster

                          Hi r0vert,
                          theoretically It’s the same, but I write to Arduino to have more info, I write here when they give me a response.
                          Bye Renzo

                          in reply to: Arduino Uno Wifi Rev2 Could not connect to mail server #16516
                          Renzo Mischianti
                          Keymaster

                            Hi r0vert,
                            I retry to send message with my MKR 1010 WiFi and I send email without problem after add google.com to this example
                            the only difference is that I generate an application password like described here.
                            Bye Renzo

                            in reply to: PCF8575 on esp32 #16497
                            Renzo Mischianti
                            Keymaster

                              Hi Zohair,
                              I do the test with the example sketch

                              
                              /*
                               * PCF8575 GPIO Port Expand
                               * Inverted led test: all led is connected with anodo to the IC
                               *
                               * PCF8575    ----- esp32
                               * GND        ----- GND
                               * VDD        ----- 3.3V
                               * SDA        ----- 21
                               * SCL        ----- 22
                               *
                               * P0     ----------------- LED0
                               * P1     ----------------- LED1
                               * P2     ----------------- LED2
                               * P3     ----------------- LED3
                               * P4     ----------------- LED4
                               * P5     ----------------- LED5
                               * P6     ----------------- LED6
                               * P7     ----------------- LED7
                               * P8     ----------------- LED8
                               * P9     ----------------- LED9
                               * P10     ----------------- LED10
                               * P11     ----------------- LED11
                               * P12     ----------------- LED12
                               * P13     ----------------- LED13
                               * P14     ----------------- LED14
                               * P15     ----------------- LED15
                               *
                               */
                              
                              #include "Arduino.h"
                              #include "PCF8575.h"  // https://github.com/xreef/PCF8575_library
                              
                              // Set i2c address
                              PCF8575 pcf8575(0x20);
                              
                              void setup()
                              {
                                Serial.begin(9600);
                              
                                // Set pinMode to OUTPUT
                                for(int i=0;i<16;i++) {
                                  pcf8575.pinMode(i, OUTPUT);
                                }
                                for(int i=0;i<16;i++) {
                              	  pcf8575.digitalWrite(i, HIGH);
                                }
                              
                                pcf8575.begin();
                              }
                              
                              void loop()
                              {
                                static int pin = 0;
                                Serial.print("SET LOW ");
                                Serial.println(pin);
                                pcf8575.digitalWrite(pin, LOW);
                              
                                Serial.print("READ pin and pin5 ");
                                Serial.print(pcf8575.digitalRead(pin));
                                Serial.print(" - ");
                                Serial.println(pcf8575.digitalRead(P5));
                              
                                delay(1000);
                                Serial.print("SET HIGH ");
                                Serial.println(pin);
                                pcf8575.digitalWrite(pin, HIGH);
                              
                                delay(1000);
                                pin++;
                                if (pin > 15) pin = 0;
                              }
                              
                              

                              And all work ok, check the connection schema on the article

                              Remember that IT hasn’t enought power to light a led, so you must put the LED catodo on PCF and power with resistor on anodo.
                              Bye Renzo

                              in reply to: Download links #16273
                              Renzo Mischianti
                              Keymaster

                                Hi Ponystyle,
                                the video It’s a preview, I publish the relative articles and code in the next weeks..
                                Bye Renzo

                                in reply to: WIM Web pages language Italian vs English #16012
                                Renzo Mischianti
                                Keymaster

                                  If you translate these key I add your native language to the WIM

                                  
                                      "layouts.set": "Layouts of the page are saved on device",
                                      "layouts.home.add": "Element added to home page",
                                      "layouts.home.remove": "Element removed from home page",
                                  
                                      "menu.sidebar.home": "Home",
                                      "menu.navbar.home": "Home",
                                  
                                      "menu.sidebar.daily": "Daily chart",
                                      "menu.navbar.daily": "Daily chart",
                                  
                                      "menu.sidebar.monthly": "Monthly chart",
                                      "menu.navbar.monthly": "Monthly chart",
                                  
                                      "menu.sidebar.information_state": "Information & state",
                                      "menu.navbar.information_state": "Inverter infromation & state",
                                  
                                      "menu.sidebar.configuration": "Configuration",
                                      "menu.navbar.configuration": "Configuration",
                                  
                                      "menu.sidebar.introduction": "Introduction",
                                      "menu.navbar.introduction": "Introduction",
                                  
                                      "date.label": "Date",
                                  
                                      "chart.no_data": "No data",
                                      "chart.no_production": "No production",
                                      "chart.loading": "Loading...",
                                  
                                      "chart.production.power.title": "Daily power production",
                                      "chart.production.voltage.title": "Daily voltage trend",
                                      "chart.production.current.title": "Daily current trend",
                                      "chart.production.battery.title": "Battery",
                                  
                                      "chart.production.power.subtitle": "Day: ",
                                      "chart.production.voltage.subtitle": "Day: ",
                                      "chart.production.current.subtitle": "Day: ",
                                      "chart.production.battery.subtitle": "Day: ",
                                  
                                      "chart.production.power.label": "Power",
                                      "chart.production.voltage.label": "Volts",
                                      "chart.production.current.label": "Current",
                                      "chart.production.battery.label": "Volts",
                                  
                                      "informative.total.lifetime.title": "Total lifetime production",
                                      "informative.total.yearly.title": "Total yearly production",
                                      "informative.total.montly.title": "Total montly production",
                                      "informative.total.weekly.title": "Total weekly production",
                                      "informative.total.daily.title": "Total daily production",
                                  
                                      "informative.realtime.power.title": "Realtime production",
                                  
                                      "chart.monthly.production.title": "Monthly production chart",
                                      "chart.monthly.production.subtitle": "Reference month: ",
                                      "chart.monthly.production.label": "Daily power",
                                  
                                      "chart.monthly.production.tooltip": "Power: {pow}w Peak: {peak}w",
                                      "chart.monthly.production.tooltip.label": "Production:",
                                  
                                      "last.update": "Last update",
                                  
                                      "table.inverter.info.title": "Inverter info",
                                      "table.inverter.info.subtitle": "All data from the inverter",
                                      "table.inverter.info.modelName": "Model name",
                                      "table.inverter.info.modelNameIndoorOutdoorType": "Name indoor o outdoor type",
                                      "table.inverter.info.gridStandard": "Grid standard",
                                      "table.inverter.info.trasformerLess": "Trasformer less",
                                      "table.inverter.info.windOrPV": "Wind or PV",
                                      "table.inverter.info.firmwareRelease": "Firmaware version",
                                      "table.inverter.info.systemSN": "System SN",
                                      "table.inverter.info.systemPN": "System PN",
                                      "table.inverter.info.manufactoryDate": "Manufactory date",
                                      "table.inverter.info.configStatus": "Config status",
                                  
                                      "table.inverter.alarm.state": "Alarm state",
                                      "table.inverter.channel1.state": "Channel1 state",
                                      "table.inverter.channel2.state": "Channel2 state",
                                      "table.inverter.inverter.state": "Inverter state",
                                      "table.inverter.state.title": "Inverter state",
                                      "table.inverter.state.subtitle": "All attention point of the inverter",
                                  
                                      "configuration.preferences.title": "Settings",
                                      "configuration.preferences.subtitle": "Generic settings",
                                      "configuration.preferences.GTM.label": "GTM offset",
                                      "configuration.preferences.DST.label": "Daylight saving time (Override GTM)",
                                      "configuration.preferences.update": "Update preferences",
                                  
                                      "configuration.network.title": "Network configuration",
                                      "configuration.network.subtitle": "Remember to set a correct static IP",
                                  
                                      "configuration.network.staticIP.label": "Select a static IP",
                                  
                                      "configuration.email.table.email":"EMail",
                                      "configuration.email.table.name":"Name",
                                      "configuration.email.table.alarms":"Alarm",
                                      "configuration.email.table.channel1":"Channel 1",
                                      "configuration.email.table.channel2":"Channel 2",
                                      "configuration.email.table.states":"State",
                                  
                                      "configuration.email.notification.enabled.label": "Activate notification",
                                  
                                      "configuration.email.table.value.alert":"Alarm",
                                      "configuration.email.table.value.nothing":"None",
                                      "configuration.email.table.value.ever":"All",
                                  
                                      "configuration.network.update": "Update network settings",
                                  
                                      "configuration.email.notification.title": "Notification settings",
                                      "configuration.email.notification.subtitle": "Check if you use all channel",
                                      "configuration.email.notification.add": "New notification email",
                                      "configuration.email.notification.add.modal.title":"Insert",
                                      "configuration.email.notification.add.modal.no_email":"None",
                                      "configuration.email.notification.add.modal.first_alarm":"First alarm",
                                      "configuration.email.notification.add.modal.all_state_change":"At all state change",
                                  
                                      "configuration.email.notification.add.modal.no_run":"No more run",
                                      "configuration.email.notification.add.modal.no_MPPT":"No more on MPPT state",
                                      "configuration.email.notification.update":"Update notification settings",
                                  
                                      "configuration.save.success": "Configuration saved successfully",
                                      "configuration.save.failed": "Failed to save configuration <br>{err}",
                                  
                                      "configuration.smtpserver.title": "Settings server SMTP",
                                      "configuration.smtpserver.subtitle": "To receive notification you need configure SMTP server",
                                      "configuration.smtpserver.update": "Update data of server SMTP",
                                  
                                      "configuration.email.notification.subject.label": "Subject",
                                      "configuration.email.notification.subject.default": "Iverter notification",
                                  
                                      "configuration.email.notification.problem.label": "Message for problem",
                                      "configuration.email.notification.problem.helper": "This is the text sended when problem is raised on your inverter!",
                                      "configuration.email.notification.problem.default": "A problem is raised on your inverter:",
                                  
                                      "configuration.email.notification.no_problem.label": "Message for problem solved",
                                      "configuration.email.notification.no_problem.helper": "This is the text sended when problem is solved on your inverter!",
                                      "configuration.email.notification.no_problem.default": "A problem is restored on your inverter:",
                                  
                                      "home.fab.tooltip": "Locally save current layouts of this page",
                                  
                                      "page.intro": "<div><h2>Introduction</h2><div>To install this Web App activate the chrome features <b> Desktop PWAs</b></div><div>Copy this link and paste in your browser</div><div>chrome://flags/#enable-desktop-pwas</div></div>",
                                  
                                      "websocket.open": "Realtime push notification active",
                                      "websocket.close": "Realtime push notification stopped",
                                      "websocket.error": "Error on realtime push notification <br>Not connected!",
                                  
                                      "websocket.inverter.message.error": "Inverter change starteS <br>Data: {hStr} <br>Alarm: {alarm} - Channel 1: {ch1state} - Channel 2: {ch2state} - Stato: {state}. ",
                                      "websocket.centraline.message.error": "Centraline error <br>Data: {hStr} <br>Time settings: {fixedTime} - SD: {sdStarted}</br>WIFI: {wifiConnected} - File saved: {isFileSaveOK} </br>SD wrong read/write number: {sdWrongReadNumber}. "
                                  
                                  

                                  Bye Renzo

                                Viewing 15 posts - 736 through 750 (of 1,031 total)