Forum Replies Created
-
AuthorPosts
-
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.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 Renzo -
AuthorPosts