Events

:

:

Elektronik | Funk | Software

Der Technik-Blog

  • Social Media

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden

    The Tech-Blog

    Arduino Smarthome LED Strip Control Webinterface

    Smarthome - LED Strip control

    Alex @ AEQ-WEB

    Smart home made by yourself

    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.

    Werbung:

    Hardware

    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.

    Arduino Software

    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.

    Werbung:

    Arduino LED-Control
    Download

    Info: This page was automatically translated and may contain errors
    122X122

    About the Author

    Alex, the founder of AEQ-WEB. He works for more of 10 years with different computers, microcontroller and semiconductors. In addition to hardware projects, he also develops websites, apps and software for computers.

    Top articles in this category:

    Arduino LM358 PT1000 Sensor Converter

    PT1000 Converter for Arduino

    • Video
    • DE/EN

    PT1000 sensors can not be measured directly analog with a microcontroller. How to build a PT100 Converter with LM358 and Arduino?

    read more
    Arduino CC1101 433Mhz Data Transfer ISM

    Arduino CC1101 Transceiver

    • DE/EN

    On this page we will show you how to make a data transfer with the CC1101 and an Arduino. Wiring plan and libraries are available on AEQ-WEB

    read more

    Social Media

    Werbung:


    New Posts


    Events

    • Keine zukünftigen Events vorhanden