Hello.
I need to make a Blynk control via a WeMos D1 mini LED strip placed behind the TV.
I have roughly grasped the subject:
WeMos D1 mini connected via D1 to a relay for LED on/off
Pin D3 via the IRL530N MOSFET controls the LED brightness
Attached is a screan from Blynk and a schematic (with errors because I've only just started fritzing the first one).
In red I have marked the WeMos D1 mini A to TV
Blue WeMos D1 mini B to the led in the kitchen.
The circuit is supposed to work like this.
When the BUTTON button is pressed, it turns the led on, and the slider controls the brightness of the LED light
From the blynk itself everything works ok, however I need to add a physical bell button to the D4 which will also turn the led on and off. LED.
I do not know how to combine this in the program code.
Below is the rewritten code for the LEDs, which I use in the inspectorate to ventilate and water the tomatoes.
.
I even added a D7 output which is connected to D6, and added
.
I have added a button with the D7 pin in the blynk
It works but sometimes it switches itself or blinks.
And it works best on the code I found on the web:
.
only how to add a physical monostable button here?
I need to make a Blynk control via a WeMos D1 mini LED strip placed behind the TV.
I have roughly grasped the subject:
WeMos D1 mini connected via D1 to a relay for LED on/off
Pin D3 via the IRL530N MOSFET controls the LED brightness
Attached is a screan from Blynk and a schematic (with errors because I've only just started fritzing the first one).
In red I have marked the WeMos D1 mini A to TV
Blue WeMos D1 mini B to the led in the kitchen.
The circuit is supposed to work like this.
When the BUTTON button is pressed, it turns the led on, and the slider controls the brightness of the LED light
From the blynk itself everything works ok, however I need to add a physical bell button to the D4 which will also turn the led on and off. LED.
I do not know how to combine this in the program code.
Below is the rewritten code for the LEDs, which I use in the inspectorate to ventilate and water the tomatoes.
Code: C / C++
I even added a D7 output which is connected to D6, and added
Code: C / C++
I have added a button with the D7 pin in the blynk
It works but sometimes it switches itself or blinks.
And it works best on the code I found on the web:
Code: C / C++
only how to add a physical monostable button here?