This shows you the differences between two versions of the page.
iothings:proiecte:2022sric:remote_control_of_a_light_bulb [2023/06/01 23:51] samuel.tanase created |
iothings:proiecte:2022sric:remote_control_of_a_light_bulb [2023/06/02 00:50] (current) samuel.tanase |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Remote control of a light bulb | + | ===== Remote control of a light bulb ===== |
+ | Author: Samuel Tănase | ||
+ | |||
+ | === Introduction === | ||
+ | |||
+ | The purpose of this project is to control a classic 230v light bulb remotely. | ||
+ | It is intended to to force the light bulb to emit more light than the nominal value if the user wants this (with the risk to damage the light bulb). | ||
+ | |||
+ | {{:iothings:proiecte:2022sric:remote_light_bulb_setup.png?direct&600 |}} | ||
+ | |||
+ | === Hardware Description === | ||
+ | |||
+ | The components used for the project were the following: | ||
+ | |||
+ | * ESP32 board | ||
+ | * Custom PWM driver | ||
+ | * A light bulb | ||
+ | * 5VDC power supply | ||
+ | * Wires and connectors | ||
+ | |||
+ | The electronic schema: | ||
+ | |||
+ | {{:iothings:proiecte:2022sric:remote_light_bulb_block_diagram.png?direct&400 |}} | ||
+ | |||
+ | {{:iothings:proiecte:2022sric:pwm_driver_internal.png?direct&600 |}} | ||
+ | |||
+ | |||
+ | === Software Description === | ||
+ | |||
+ | This software part of this project consists of 3 software components: | ||
+ | * ESP32 software: connects to the internet using wifi, downloads a PWM value from the server periodically and sends the PWM signal to the PWM driver | ||
+ | * Android app: user interface for controlling the light bulb intensity, written using Qt C++ | ||
+ | * Web server: used as a glue between the ESP32 board and the remote control app, written in PHP | ||
+ | |||
+ | === Download === | ||
+ | |||
+ | * [[https://github.com/porxyz/light_bulb_remote_control|Source code (GitHub)]] | ||
+ | |||
+ | === Demo === | ||
+ | |||
+ | {{:iothings:proiecte:2022sric:remote_control_bulb_app1.jpg?direct&200|}} {{:iothings:proiecte:2022sric:remote_control_bulb_app2.jpg?direct&200|}} | ||
+ | {{:iothings:proiecte:2022sric:remote_control_bulb_app3.jpg?direct&200|}} | ||
+ | |||
+ | <html><iframe width="712" height="400" src="https://www.youtube.com/embed/011t0khc5EY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></html> | ||
+ | |||
+ | === References === | ||
+ | * [[https://docs.espressif.com/projects/arduino-esp32/en/latest/|ESP32 Arduino Core’s documentation]] | ||
+ | * [[https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/wifi.html|Arduino ESP-32 Wi-Fi API]] | ||
+ | * [[https://doc.qt.io/qt-6/|Qt6 documentation]] | ||
+ | * [[https://www.php.net/docs.php|PHP documentation]] | ||
+ |