I'm new to IOT stuff. I recently started working on a simple project to switch on/off a lamp using 8266 (ESP-12e) and relay. I'm able to successfully create a web server and control led connected to ESP-12e. When I connect relay to the same pin, instead of led, I can see small led on relay board responding (going on/off) to signal from pin. But when I connect a lamp with relay, then lamp doesn't work at all. Seems like circuit is not complete. I tried 2 different relays and also tried (NC-COM) as well as (NO-COM) combinations, but results were same. It would be great if someone can suggest what's going wrong here. Please find pictures of breadboard attached.
I'm new to IOT stuff. I recently started working on a simple project to switch on/off a lamp using 8266 (ESP-12e) and relay. I'm able to successfully create a web server and control led connected to ESP-12e. When I connect relay to the same pin, instead of led, I can see small led on relay board responding (going on/off) to signal from pin. But when I connect a lamp with relay, then lamp doesn't work at all. Seems like circuit is not complete. I tried 2 different relays and also tried (NC-COM) as well as (NO-COM) combinations, but results were same. It would be great if someone can suggest what's going wrong here. Please find pictures of breadboard attached.