Forum Replies Created
-
AuthorPosts
-
27 July 2022 at 12:24 in reply to: ESP32-CAM upgrade CameraWebServer with flash on ESP32 Framework 2.0.4 #21996
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.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 RenzoHi Celeb10,
I think the transistor isn’t sufficient to control a 12v motor, you need more ampere, try to use a MOSFET.
Bye RenzoHi Musti,
to use the repeater mode you must activate the relative flag on the deviceconfiguration.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
Hi Warleysr,
I don’t know because you have this behavior.
Try to remove completely the resistor.
Bye RenzoHi Neuron,
Have you already seen the relative articles and tutorials?
If not, go here.
Bye RenzoAhh!! I forget to add this tip, E22 has a repeater function and can be very useful in a situation like yours.
Bye RenzoHi 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 RenzoHi Grzegorz,
It’s strange in the framework the default frequency is already 100000
but I think It’s sufficient tu putWire.setClock(100000);
before the pcf8574.begin
Bye Renzo
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
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
No Victor,
you must use 3.3v to control (m0 m1 aux and rx, tx) and from 5v to 5.5v on vcc.
Bye RenzoHi 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 RenzoHi 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.14 July 2022 at 08:22 in reply to: Lora did not send data if ESP32 Serial not connected to PC #21876Hi fixshortcut,
can you attach the code to check It.
Bye Renzo -
AuthorPosts