I am following this tutorial for controlling lights with a Pi.
I have little knowledge of electronic circuit building.
I bought the following for setting up the connection :
Raspberry Pi model B with memory card preloaded with an OS.
5V SPDT relay.
This is the circuit schematic:
I am confused about building this circuit because I missed out some components when ordering the parts, which were not mentioned in blog post. But must be obvious from others' perspective. These components are marked in red :
Here the components are connected like this:
I need help in how to setup this circuit like this with a Raspberry Pi.