I’m building a device that can transmit and receive data by 433MHz radio modules/ managed by ESP-01.
RF modules are cheap FS1000A transmitter and XY-MK-5V receiver.
The should be able either to transmit or receive data at the moment not both. So I added a switch that supplies power to only one RF module at a time. And DATA pin of both modules are connected to the GPIO2.
The device scheme is attached.
Basically it works.
But I have an issue on start up the device. If the switch S2 is in the position of supplying power to the transmitter, then device is not starting correctly when attach the battery. The blue led is constantly light on the ESP and it is not send any data. In this case the ESP start correctly only of to disconnect GPIO2 when power on the battery.
When the S2 is supplying power to receiver on start up all goes right.
I would appreciate any advices on fixing this issue.