I wonder if the code applied to wemos d1 mini is accurate.
The reason is that the wemos d1 mini received a signal from blynk. And again the wemos d1 mini should send a signal to Arduino Uno with RX, TX line, but there is no such code.
Is the code applied to wemos d1 mini correct?
If not, please help me add some code.
You don’t have any lines of code in your Wemos sketch that is sending data to the serial pins of the Wemos. You’d normally do that with a Serial.print statement.
However, as your Wemos boots itwill also send data to the serial UART, and Blynk will send debug information to the serial UART as well.
Rather than spending time explaining how to overcome this issue at this point, it would be better if you explained exactly what you’re trying to achieve with your project.
What is the role of the Arduino in this setup. Why are you using a Wemos and an Arduino, why not just the Wemos?
I controlled the wemos d1 mini D4pin LED with Blynk’s signal.
And I want to control the 13 pin LED of Arduino Uno with Blynk’s signal.
Blynk Devices is set to Arduino Uno (wi-fi). The button is also set to D13.
Wemos d1 mini RX <-> TX Aduino Uno connection
Wemos d1 mini TX <-> RX Aduino Uno connection
My project
Press the Blynk D13 button.
The Wemos d1 mini receives a signal from Blynk.
Wemos d1 mini sends a signal to Arduino Uno.
Arduino Uno receives a signal from Wemos d1 mini.
The built-in LED on the Arduino Uno turns on.
This is my project.
So I wonder if the code I wrote is correct.
If I’m wrong, let me know what to fix.
First, I fixed your post to properly show formatted code…
The way you are doing it now is incorrect… the Blynk code should only run on the Wemos, which then controls the Arduino (via Serial or i2c) which is what your hardware is connected too.