I am trying to build a very basic lighting control module that will turn on and off a common household light (120VAC 60 Hz) with a signal from a micro controller.
I have a standard 3 wire connection at the light switch where I want to put this module consisting of a hot, neutral, and ground wire. I want to use a SPST relay to connect the hot and neutral wires and hopefully turn on the light, but my question is where should I connect the ground wire?
My understanding is that the hot and neutral wires carry current and the ground wire acts as a safety measure connecting to the metal housing of the light switch, microwave, etc... so that you don't shock yourself if the hot or neutral wires come into contact with the housing of the project.
I found this SPST relay on Digikey that is rated to handle 120 VAC but I am not sure where I should connect the ground wire on this relay or if I should connect it to the ground of the protoboard that I am building my circuit on.
I have a standard 3 wire connection at the light switch where I want to put this module consisting of a hot, neutral, and ground wire. I want to use a SPST relay to connect the hot and neutral wires and hopefully turn on the light, but my question is where should I connect the ground wire?
My understanding is that the hot and neutral wires carry current and the ground wire acts as a safety measure connecting to the metal housing of the light switch, microwave, etc... so that you don't shock yourself if the hot or neutral wires come into contact with the housing of the project.
I found this SPST relay on Digikey that is rated to handle 120 VAC but I am not sure where I should connect the ground wire on this relay or if I should connect it to the ground of the protoboard that I am building my circuit on.