Giter Club home page Giter Club logo

esp-idf-web-rc-switch's Introduction

esp-idf-web-rc-switch

315/433MHz RF ON/OFF Switch using esp32.
You can turn ON/OFF Wireless Smart Outlet using a browser.

web-rc-switch

rc_switch

I used this component.
This component can communicate directly with the browser.
There is an example of using the component here. It's a great job.

Software requirements

ESP-IDF V4.4/V5.x.
ESP-IDF V5.0 is required when using ESP32-C2.
ESP-IDF V5.1 is required when using ESP32-C6.

Hardware requirements

  • 315MHz/433MHz ASK Wireless transmitter like this.
    H34A-315/H34A-433
    SYN115
    STX882

I used this: H3V4F-2 H3V4F-3

  • Outlet that can be turned ON/OFF by RF.

SmartOutlet SmartSwitch SmartOutlet2

Installation

git clone https://github.com/nopnop2002/esp-idf-web-rc-switch
cd esp-idf-web-rc-switch
git clone https://github.com/Molorius/esp32-websocket components/websocket
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6}
idf.py menuconfig
idf.py flash

Configuration

config-main config-app

WiFi Setting

config-wifi-1

You can use Static IP.
config-wifi-2

You can connect using mDNS name.
config-wifi-3

Radio Setting

config-radio

Outlet Setting

  • With a 10 pole DIP switch.
    I used the photo here.
    rc_switch_typeA config-outlet-1

  • With two rotary (or sliding) switches with four setting possibilities each.
    I used the photo here.
    rc_switch_typeB
    config-outlet-2

  • Generic.
    Directly specify the ON and OFF codes.
    config-outlet-3

Wirering

RF Module ESP32
DATA -- GPIO4
GND -- GND
VCC -- 3.3V

You can change data pin to any pin using menuconfig.
However, changing to some pins does not work properly.

WEB Page

The WEB page is stored in the html folder.
You can change it as you like.

Task Structure Diagram

Task_structure_diagram

Reference

https://github.com/nopnop2002/esp-idf-rc-switch

esp-idf-web-rc-switch's People

Contributors

nopnop2002 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

darcyg

esp-idf-web-rc-switch's Issues

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.