Forum Replies Created

Viewing 15 posts - 466 through 480 (of 1,015 total)
  • Author
    Posts
  • Renzo Mischianti
    Keymaster

      Hi Rodyeo,
      I check the 2.0.4 version of CameraWebServer, and I put on working with these changes.
      In the main CameraWebServer.ino I add these lines.

      
      const int pwmfreq = 50000;     // 50K pwm frequency
      const int pwmresolution = 9;   // duty cycle bit range
      ledcSetup(config.ledc_channel, pwmfreq, pwmresolution);  // configure LED PWM channel
      ledcAttachPin(4, config.ledc_channel);            // attach the GPIO pin to the channel
      

      after the setting of camera_config_t config; structure

      And in the file app_attpd.cpp after the include I add these lines:

      
      //
      // LED Illuminator
      //
      #define CONFIG_LED_ILLUMINATOR_ENABLED
      #define CONFIG_LED_LEDC_PIN 4
      #define CONFIG_LED_MAX_INTENSITY 255
      //#define CONFIG_LED_LEDC_LOW_SPEED_MODE
      // CONFIG_LED_LEDC_HIGH_SPEED_MODE is not set
      #define CONFIG_LED_LEDC_TIMER LEDC_TIMER_0
      #define CONFIG_LED_LEDC_CHANNEL LEDC_CHANNEL_0
      // end of LED Illuminator
      

      I have also attached the modified files.

      Bye Renzo

      Attachments:
      You must be logged in to view attached files.
      in reply to: Trouble with the Ebyte E32433T30D #21978
      Renzo Mischianti
      Keymaster

        Hi moonman,
        connect AUX also (without It, you can’t have real feedback from the device) and enable the DEBUG.

        Check also the ampere sent to the device, the 1W module wants 700mAh or more.
        Bye Renzo

        in reply to: PCF8574-transistor base switch #21944
        Renzo Mischianti
        Keymaster

          Hi Celeb10,
          I think the transistor isn’t sufficient to control a 12v motor, you need more ampere, try to use a MOSFET.
          Bye Renzo

          in reply to: E22 Relay (repeater) Mode Using #21942
          Renzo Mischianti
          Keymaster

            Hi Musti,
            to use the repeater mode you must activate the relative flag on the device

            
                    configuration.TRANSMISSION_MODE.enableRepeater = REPEATER_ENABLED;
            

            Then you must use ADDH and ADDL to specify from which NETID to which NETID you want to repeat the signal.

            But now I think the schema is more simple to understand.

            Bye Renzo

            in reply to: E220 using ESP8266 #21925
            Renzo Mischianti
            Keymaster

              Hi Warleysr,
              I don’t know because you have this behavior.
              Try to remove completely the resistor.
              Bye Renzo

              in reply to: Mega 2560 and LoRa e22 EByte problems #21924
              Renzo Mischianti
              Keymaster

                Hi Neuron,
                Have you already seen the relative articles and tutorials?
                If not, go here.
                Bye Renzo

                in reply to: Maximum current through esp32 with 30dB module #21913
                Renzo Mischianti
                Keymaster

                  Ahh!! I forget to add this tip, E22 has a repeater function and can be very useful in a situation like yours.
                  Bye Renzo

                  in reply to: Maximum current through esp32 with 30dB module #21893
                  Renzo Mischianti
                  Keymaster

                    Hi bepaald,
                    If you select the 5v pin, It absorbs energy directly from the USB, so if the USB has sufficient ampere, It works correctly.

                    To avoid the obstacles, there are 2 important factors, first power and second the frequency. A small frequency is able to avoid the obstacles better.
                    But If the structure to avoid is too big, It’s very difficult to have good efficiency.

                    The PCB is fully compatible, but some LoRa device has a big form factor and can be difficult to put in.
                    Bye Renzo

                    in reply to: Compatible with stm32duino #21891
                    Renzo Mischianti
                    Keymaster

                      Hi Grzegorz,
                      It’s strange in the framework the default frequency is already 100000
                      but I think It’s sufficient tu put

                      
                      Wire.setClock(100000);
                      

                      before the pcf8574.begin

                      Bye Renzo

                      in reply to: E220 using ESP8266 #21890
                      Renzo Mischianti
                      Keymaster

                        Hi warleysr,
                        a similar problem also here (resolved with the properly use of library).

                        Try to add an external power supply and check if M0 and M1 go HIGH correctly.

                        Bye Renzo

                        in reply to: E220 strange communication errors #21889
                        Renzo Mischianti
                        Keymaster

                          Hi Fabio,
                          sorry for the late response, I lost this message.

                          But all seems correct. Try to change the E220 and send the debug messages.

                          Bye Renzo

                          in reply to: RX Voltage Divider Doubt #21887
                          Renzo Mischianti
                          Keymaster

                            No Victor,
                            you must use 3.3v to control (m0 m1 aux and rx, tx) and from 5v to 5.5v on vcc.
                            Bye Renzo

                            in reply to: RX Voltage Divider Doubt #21885
                            Renzo Mischianti
                            Keymaster

                              Hi Ivan,
                              no, 3.3v on arduino rx works correctly. A factory of my friends (use the library for an irrigation system), work with Arduino with voltage divider without problem.
                              Bye Renzo

                              in reply to: RX Voltage Divider Doubt #21880
                              Renzo Mischianti
                              Keymaster

                                Hi Ivan,
                                you must use 5 to 5.5v to power the device (to get the best performance), but the communication level volts is 3.3. With 5v, you fire the device in long-term communication.

                                Attachments:
                                You must be logged in to view attached files.
                                Renzo Mischianti
                                Keymaster

                                  Hi fixshortcut,
                                  can you attach the code to check It.
                                  Bye Renzo

                                Viewing 15 posts - 466 through 480 (of 1,015 total)