http://www.instructables.com

User avatar
pzygmunt
Posts: 18287
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

ESP8266 and Relay Control Using Smartphone
http://www.instructables.com/id/ESP8266 ... martphone/

Open the Gate, Wicket or Door With Your Smartphone and Raspberry PI
http://www.instructables.com/id/Open-th ... artphone-/
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hi pzygmunt,

I already tried to follow that tutorial using SparkFun ESP8266 Thing.
I have some issues related to this :

1. When i push the button to be ON for Lamp Switch in Android app, the LED is ON, but the relay module is still Off, cannot be triggered.
I've checked with multimeter for each relay port, there are still NO (Normally Open), means no relay is active.
Is it related to BC547 transistor? i've changed another new one but still the same.

2. When i compare the Lamp status between Android app and Cloud, the Lamp status in the Cloud seems not working.
It is always showing ON, even when the LED status is actually Off.

3. When i tried to connect device to another Wifi network and try to switch to config mode using micro switch, it can not work. I cannot see SUPLA-ESP8266 on the network list. Even when i re-flashing the firmware.

Could you please help me related this issues?

Thanks.
User avatar
pzygmunt
Posts: 18287
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Hi, which firmware did you use ?
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hi,
I use socket-firmware from your Github repo.
Channel 0 ---> Relay (GPIO 4)
Channel 1 ---> Temp Sensor DS18B20 (GPIO 2)
User avatar
pzygmunt
Posts: 18287
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

Did you pullup GPIO5 (cfg button) ?
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hi,

Yes, i add pullup resistor just the same as tutorial.
User avatar
pzygmunt
Posts: 18287
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

1. Please connect multimeter directly to the GPIO4
2. You can check port status at cloud.supla.org just for sensors. Light switch icon always will be ON
3. Hold down the button for min 5 seconds.
4. Check console logs
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hi,

1. I've checked GPIO4 with multimeter and i got the measured voltage around 2V when the LED is ON.
Just thinking about current output from power supply that used by relay module, i only got 2,2 mA measured current.
How much power supply current that could trigger the relay actually?

2. So, the web interface is for administration and configuration only?
I suggest it is better if web interface can be alternative option for realtime monitoring instead of mobile apps, e.g : ON/Off Lamp status, etc.

3. Already, but still remain the same.

4. Did you mean i have to check it using serial monitor console, like minicom?
User avatar
pzygmunt
Posts: 18287
Joined: Tue Jan 19, 2016 9:26 am
Location: Paczków
Contact:

1. You can't connect GPIO directly to the relay. Use transistor.
2. At this moment just administration/configuration
3. It possible that you changed "Button type" as "Switch" during configuration. In this case try press cfg button min 10 times during < 10 sec.
4. Minicom / putty / screen etc.
astonix
Posts: 22
Joined: Wed Aug 03, 2016 5:45 am

Hi,

1. I knew it. Offcourse i am using BC547 transistor to drive the relay. The relay still cannot be triggered.
2. Got it.
3. Now, i've changed button type to switch, and did pressing the cfg button as you suggested. Still no change.
4. Ok, will try it later.
Post Reply

Return to “General discussion”