Giter Site home page Giter Site logo

smarthome-esp32-servo-mqtt's Introduction

ESP32 MQTT Servo Control

Project Overview

This project enables communication between an ESP32, a client dashboard, and a servo motor for controlling a volet roulant (rolling shutter). Real-time data is sent to an MQTT broker via Wi-Fi, and the data is displayed in real-time on the dashboard. Dashboard

Table of Contents

Dependencies

  • Arduino IDE
  • [Library Name and Version](Link to the library documentation)

Setup and Installation

  1. Clone this repository:

    git clone https://github.com/your-username/esp32-mqtt-servo-control.git
    
  2. Open the Arduino IDE and load the sketch located in the src folder.

3.Install the required libraries using the Arduino Library Manager. 4. Upload the sketch to your ESP32.

Usage

  1. Connect the ESP32 to your Wi-Fi network.

  2. Configure the MQTT broker settings in the sketch.

    // MQTT Broker Configuration
    #define MQTT_BROKER "your_mqtt_broker_address"
    #define MQTT_PORT 1883
    #define MQTT_USER "your_mqtt_username"
    #define MQTT_PASSWORD "your_mqtt_password"
  3. Power on the servo motor.

  4. Install and run Mosquitto (MQTT broker):

    • Follow the installation instructions for your operating system from the Mosquitto website.

    • Start the Mosquitto broker.

          mosquitto_sub -t "topic" -h "mqtt_broker_host"
      
  5. Install Node.js for real-time communication with Socket.IO:

    • Follow the installation instructions for your operating system from the Node.js website.

    • Verify the installation:

      node -v
      npm -v
  6. Install project dependencies:

    cd path/to/your/project
    npm install
    

7.node server.js 8.Open a web browser and navigate to http://localhost:3000.

The dashboard should be accessible at this address, provided that the server is running and configured correctly.

smarthome-esp32-servo-mqtt's People

Contributors

alaeddineth avatar eyabahri14 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.