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

How to set up the power supplies

For our system, it is very important to set up the power supply that will be used in the system. First we need to ensure that the voltage for the Arduino is about 5V. In the following diagram, we have shown how to configure the voltage to about 5 volts:

How to set up the power supplies

Power supply for AC loads

If we need to connect AC loads to the Arduino or Raspberry Pi Zero and make an industrial control system, we need to use a voltage of 24 V of DC, as you can see in the following circuit diagram:

Power supply for AC loads

Connecting a relay of 24 DC volts to the Arduino ...

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