GithubHelp home page GithubHelp logo

tharindu209 / arduino-web-controlled-led-bulbs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Control LED bulbs remotely using a web interface with this project. An Arduino board and a Flask web application facilitate serial communication to toggle LEDs on and off. Easily set up with Python and Arduino IDE, this project offers a simple yet effective home automation solution.

License: MIT License

Python 17.30% HTML 30.14% CSS 42.32% C++ 10.23%

arduino-web-controlled-led-bulbs's Introduction

Web Controlled LED Bulbs using Arduino and Flask

=====================================================

This project allows you to control multiple LED bulbs remotely using a web interface. The system consists of an Arduino board connected to the LED bulbs, and a Flask web application that communicates with the Arduino board using serial communication.

Hardware Requirements

  • Arduino board (e.g. Arduino Uno)
  • LED bulbs
  • Breadboard and jumper wires
  • Serial cable (USB to serial)

Software Requirements

  • Arduino IDE
  • Python 3.x
  • Flask web framework
  • Serial library for Python

How it Works

  1. The Arduino board is connected to the LED bulbs and configured to receive serial commands.
  2. The Flask web application is run on a computer connected to the same network as the Arduino board.
  3. The user accesses the web interface using a web browser and sends commands to turn the LED bulbs on or off.
  4. The Flask application receives the commands and sends them to the Arduino board using serial communication.
  5. The Arduino board receives the commands and turns the corresponding LED bulbs on or off.

Project Structure

  • app.py: The Flask web application code
  • templates/index.html: The web interface HTML file
  • webLED/webLED.ino: The Arduino code

Getting Started

  1. Clone the repository and navigate to the project directory.
  2. Install the required Python packages using pip install -r requirements.txt.
  3. Upload the Arduino code to the Arduino board using the Arduino IDE.
  4. Run the Flask application using python app.py.
  5. Access the web interface using a web browser at http://localhost:5000.

License

This project is licensed under the MIT License. See LICENSE for details.

arduino-web-controlled-led-bulbs's People

Contributors

tharindu209 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.