Components choosing problem

Guys,I have one doubt plz …help like what I should use for controlling 9w led bulb brightness which is connected to nodemcu because I used relay but relay only allow the light to turn on and off not support for controlling the light brightness and I’m using blynk app Intensity controller for managing the brightness

Hey there,

If your bulb dc then you can use a mosfet, if ac you can use ac dimmer module like this

Can u send me circuit diagram of the module so that I can connect it to nodemcu plz …by the way thanks for the reply