This has been very long since I left electronics but recently I restarted taking interest in it as hobby.
I bought some PIR sensors from Aliexpress and found it is very simple to implement if I have 5V DC supply on breadboard. I am not sure how I can hook it up to bulb (CFL or 230V LED bulb) as a complete unit.
Can some tell me, should I use 5v DC normal AC-DC step down power supply enclosed everything in small box and mount it near the bulb or is there any other way to do it. I will use 5V relay and relay driver using NPN transistor.
I am asking this because all the tutorials I have seen uses breadboard power supply or 12V DC adapter and 5V regulator IC. I did not come across with real life application using 5v drawn from mains supply.