Sidewalk: The IoT network from Amazon
08.05.2024
Elektronik | Funk | Software
Der Technik-Blog
There is also a video on YouTube for this article: Arduino Smarthome - Control an LED Strip via WiFi & Ethernet via webinterface (German)
Smarthome is a very popular topic. Most commercial products are often very expensive and not compatible with everything, because some manufacturers use their own protocols. In this article we show how you can control an LED strip via a web interface. An Arduino Uno board works in the background, which communicates with the home network via an Ethernet shield. The power supply from the led strip is controlled via a relay card. The relay card is controlled via the digital I/O pins of the Arduino board.
The LED strip is mounted in Aluminum profiles on the wall. It does not only look very nice, it also makes it easy to replace the strip and keeps it really strong the wall or ceiling. In principle, any LED strip can be used for this project, because the Arduino board does not power the LEDs with its own voltage. Thats the reason while we need a relay card. A relay works like a light switch in this project. When the relay becomes power, two contacts close in it and the energy can flow over it. If the relay has no voltage, the contacts are open and no energy can flow. The relay is used in a large number of circuits and can control high currents galvanically isolated. On the Arduino board we mount an Ethernet Shield. This is necessary for the network connection. Therefore, you need a network cable that is connected to a WiFi access point or a modem. If you enter the IP address on your smartphone or computer via the browser, you should see the web interface from the controller.
The software for the Arduino board does not need any external libraries. The Ethernet Shield should therefore work with the traditional existing libraries. It is important that some parameters are changed before you upload the software to the board. The addresses of MAC, IP, Gateway and Subnet must be adapted to the network environment. Since in most cases a fixed IP address is desired, so we have decided to use a static addresses. Basically, the rest of the code can be take over, except the I/O pins between relay board and Arduino were not wired according to our wiring schematics. Before you start the upload, all connections should already be connected. After that, you can enter the IP address of the Arduino board in your browser and you should see the web interface. After you click on "TURN LED1 ON", then the first relay should switch on and the LED strip should light now.
PT1000 sensors can not be measured directly analog with a microcontroller. How to build a PT100 Converter with LM358 and Arduino?
read moreThe PT100 is a very precise industrial temperature sensor. This article is about building a measuring amplifier for reading a PT100 on the Arduino
read moreAEQ-WEB © 2015-2024 All Right Reserved