O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Regulating the current of an AC lamp dimmer

In this section, we will see how to regulate an AC lamp. For so many years I've wanted to explain and share a project like this, and I'm finally. This can be applied to regulate your lamps at home in order to decrease domestic power the consumption: the following sections will explain the project in more detail.

Hardware requirements

We need the following electronic components:

  • H-bridge
  • 24 AC transformer
  • Two resistors 22k (1 watt)
  • One integrated circuit (4N25)
  • One resistor 10k
  • One potentiometer of 5k
  • One resistor 330 ohms
  • One resistor 180 ohms
  • One integrated circuit MOC3011
  • One TRIAC 2N6073

In the following circuit diagram, we can see the connections for the dimmer from the Arduino board:

Software code

You can now ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required