Forum Replies Created
-
AuthorPosts
-
Hi john,
yes, the pump work in a specified time period, and It start if tank is not full and stop if it’s full.
Bye RenzoHi Musti,
I write an article on how to manage the microcontroller deep sleep with E32, and you can find It herebut for the management of E22 you can get all the information here.
Practically, when your E22 is in sleep mode, you must use the AUX pin (managed bye the E22) to wake up the microcontroller also.
If you need more information write here.
Bye Renzo
PS: I also started writing the specified section for esp8266, esp32, stm32, Arduino, and Arduino SAMD about the sleep mode.
31 July 2022 at 22:35 in reply to: ESP32-CAM upgrade CameraWebServer with flash on ESP32 Framework 2.0.4 #22115Hi,
I think the frequencies is only for the pin PWM and you can use 50K.
Bye RenzoHi Moonman,
I think the best solution is to use a battery like 18650 and a step up booster to get 5v.Bye Renzo
Wait for version 2.3.3, the problem is fixed.
Thanks for the help to fix It RenzoI’ll fix It in the future release, for memory optimization I use uint8_t but the Wire library use int and this generates the issue.
Bye Renzo28 July 2022 at 14:30 in reply to: ESP32-CAM upgrade CameraWebServer with flash on ESP32 Framework 2.0.4 #22081Good work Rodyeo!
Bye RenzoPerfect!
Thanks for the feedback!
Bye RenzoHi Joppnl,
I tested the connection with this sketch#include "Arduino.h" #include "PCF8574.h" #define SDA D2 // D2=GPIO4 #define SCL D3 // D3=GPIO0 // Set i2c address PCF8574 pcf8574(0x38, SDA, SCL); void setup() { Serial.begin(115200); // Set pinMode to OUTPUT pcf8574.pinMode(P0, INPUT); pcf8574.pinMode(P1, INPUT_PULLUP); pcf8574.pinMode(P5, OUTPUT); pcf8574.pinMode(P6, OUTPUT, LOW); pcf8574.pinMode(P7, OUTPUT); pcf8574.begin(); } bool startVal = HIGH; void loop() { // pcf8574.digitalWrite(P0, HIGH); // delay(1000); // pcf8574.digitalWrite(P0, LOW); byte val = pcf8574.digitalRead(P0); Serial.print("PIN 0: "); Serial.println(val); val = pcf8574.digitalRead(P1); Serial.print("PIN 1: "); Serial.println(val); pcf8574.digitalWrite(P7, startVal); if (startVal==HIGH) { startVal = LOW; }else{ startVal = HIGH; } delay(3000); }
It works correctly without any change.
I think there is an issue with your code. Try to change the define like so:
#define SDA D2 // D2=GPIO4 #define SCL D3 // D3=GPIO0
Bye Renzo
Attachments:
You must be logged in to view attached files.Hi Joppnl,
other people tell me about that problem, for now, seems that aWire.begin();
at the beginning of the setup function fix the problem.
But I must investigate.Bye Renzo
Hi 1n5an1ac,
as you can see in the table attached extracted from the datasheet, the limitation of the 9600 baud rate is applied only when you are programming the device.
The transfer function works correctly.
Bye RenzoAttachments:
You must be logged in to view attached files.27 July 2022 at 15:21 in reply to: ESP32-CAM upgrade CameraWebServer with flash on ESP32 Framework 2.0.4 #22032Thanks to you for helping to find the solution.
Bye RenzoHi 1n5an1ac,
Sorry, but I don’t know why but your topic was going on spam.
But I’m happy that you have found the solution.
Bye Renzo27 July 2022 at 12:24 in reply to: ESP32-CAM upgrade CameraWebServer with flash on ESP32 Framework 2.0.4 #21996Hi 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. -
AuthorPosts