Hi, i am facing issues while using esp8266 in one of my project, i have tried to explain the issue as follows, kindly see if you can advise me on it:
I am using 1-esp8266-01, 1-PIR motion sensor(powered using a dedicated power source, not shared with esp power) and 1-relay switch(powered using a dedicated power source, not shared with esp power)
The project is about - read any motion detected by the PIR motion sensor and accordingly, put an AC powered Light or a Fan on or off with the help of relay switch.
Since the issue is many folds, i have divided my issue in parts:
Part-1.Startup issue - While reset/restarting the esp chip, i have noticed a particular behaviour i.e., i need to remove connections to all the other components with esp, let esp bootup and then setup the connections with esp back again while esp is running.
Not sure if this is the way to use esp with other components, if so, in a practical project, the expectation with the system will be, it should come back online on its own, in case of any reset, rather than pulling all the connections off and then back on.
2. Execution issue - With all the connections in place, if i try to control GPIO0 and 2 together at the same time, the esp gets reset and the Startup issue as described above is faced.
Not sure if i can use both the GPIO's at the same time, or i should have a time gap in between in setting both the GPIO's.
Appreciate any response on the issues.
Thanks
AK