sagar502 wrote:drgeoff wrote:We need details of the relay module. Ane details of what you are intenfing to switch with the relay will not go amiss either.
i have this
12v relay module and want to
turn on-off lights using GPIO this relay and RPi3 now how to do this plz help
http://www.ebay.in/itm/332068677111?aff_source=Sok-Goog
You forgot to mention what type of lights, voltage etc.
It is important to understand that a 12V relay uses 12V to operate the coils..... it does not provide 12V power for whatever is connected to the relays.
Also note that the relay contact rating is totally different than the coil rating. The relay contact rating from the ebay listing: AC250V 10A ; DC30V 10A...... So whatever lights you use must be <= to the rating shown.
Normally for the RPi you would use a 5V relay board then use 5V power from the RPi board to power the relays.
If the lights you want to control are 12V then your 12V relay board can be used. The 12V power source you use for the lights can also be used for the 12V relay coils. (... assuming the RPi and relay board is close to the power source).
If the lights are not 12V then you would need a separate 12V power supply for the relay + whatever power source is needed for the lights. (Or get a 5V relay board).
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.