I'm running a breadboard with a NodeMCU powered by a USB 5V say from my laptop.
From the NodeMCU, I'm taking a 3.3v out to the VCC of the Relay and GND to GND of the relay with a D4 or D6 as my data pin to IN1 on the relay.
On the other side, I'm running a twisted wire pair from an AC strip to the relay and from there to the bulb.
I've stripped one wire and run it into the NC port and the same one comes from the COM back to the bulb.
My question is, is this okay and am I gonna blow something? I've not used resistors or the like. Also, can I run the bulb also through a DC source like a 9V battery instead of pluggin into the AC mains?
Update: I'm a nOOb to electronics so to clarify certain things, 1) The "lamp" is a 3W LED in a normal bulb holder. The bulb is rated at 220-240VAC at 50Hz 2) It is very possible I got the diagram wrong. It is my understanding of how the relay circuit works. 3) The relay is actually a 4-relay board with an opto-coupler etc (Refer to image)
Relay Board link: REES52 Relay with Optocoupler