# kwswitch **Repository Path**: pythonloser/kwswitch ## Basic Information - **Project Name**: kwswitch - **Description**: 智能开关平台,包含服务端、硬件端、安卓端和前端。关键词:智能家居、物联网开关、远程开关、红外线遥控开关、WIFI继电器、MQTT协议、ESP8266、Iot smart switch、Android、Spring boot、Vue、Arduino - **Primary Language**: Java - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 454 - **Created**: 2022-04-28 - **Last Updated**: 2022-04-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 平台简介   该智能开关平台包括服务端、硬件端、PC端和安卓端。硬件使用ESP8266模块,成本相对较低,可以发挥想象力,搭配各种传感器,实现自己的智能终端。 [演示视频>>>](https://www.bilibili.com/video/BV1Qg4y1q7nk?from=search&seid=16334091011357696233)

物联网-智能家居-kwswitc
群号:1073236354 **应用场景**:智能开关的应用场景比较广泛,一般家里通电即可使用的设备都能搭配该模块,升级为网络版,进行联网控制。常见的就是智能开关、智能插座和智能灯,搭配土壤湿度传感器可以实现智能浇灌,搭配温湿度传感器可以监控温湿度,其他传感器例如:触控开关、雨滴探测、声音传感器、光敏传感器、烟雾传感器、火焰报警、人体感应等等。 ![场景](https://gitee.com/kerwincui/kwswitch/raw/master/document/0.png) **智能开关目前支持的功能**: - 远程控制 - 掉电记忆 - 触控开关 - 红外遥控 - 温湿度监测 - 本地控制 - 单双路继电器支持 - 智能配网(长按配置按钮进入) - 不联网模式(双击配置按钮切换)
## 技术栈 * 该项目前后端基于[若依权限管理系统](https://gitee.com/y_project/RuoYi-Vue) * 开关的硬件使用[贝壳物联](https://www.bigiot.net/)的Wifi继电器模块 * 安卓端使用乐鑫的[EspTouch](https://github.com/EspressifApp/EsptouchForAndroid) #### 平台架构图: ![平台架构图](https://gitee.com/kerwincui/kwswitch/raw/master/document/1.png) #### 项目结构图: ![项目结构图](https://gitee.com/kerwincui/kwswitch/raw/master/document/01.png) #### 后端 * 相关技术:Spring boot、MyBatis、Spring Security、Jwt、Mysql、Redis、Mongodb、MQTT * 开发工具:IDEA #### 前端 * 相关技术:ES6、Vue、Vuex、Vue-router、Vue-cli、Axios、Element-ui * 开发工具:Visual Studio Code #### 安卓 * 相关技术:Smartconfig、GSON、OkHttp、讯飞语音 * 开发工具:Android Studio #### 硬件端 * 相关技术: Arduino、 ESP8266 core for Arduino、OneButton、IRromoteESP8266、PubSubClient * 开发工具:Arduino IDE、Visual Studio Code * 辅助工具:USB转TTL下载线、AC-DC降压模块(可选)、红外遥控模块(可选)、DHT11温湿度传感器(可选)、触控开关(可选) * 硬件图片:硬件图片来自贝壳物联官网
![硬件图片](https://gitee.com/kerwincui/kwswitch/raw/master/document/2.jpg) * 硬件电路图:
![硬件](https://gitee.com/kerwincui/kwswitch/raw/master/document/3.jpg) * 电路接线图:(默认5V电压,如果要接220V交流电,需要搭配一个AC-DC降压模块)
![硬件](https://gitee.com/kerwincui/kwswitch/raw/master/document/4.png)

## 演示图 ![演示](https://gitee.com/kerwincui/kwswitch/raw/master/document/5.png) ![演示](https://gitee.com/kerwincui/kwswitch/raw/master/document/6.png) ![演示](https://gitee.com/kerwincui/kwswitch/raw/master/document/7.png) ![演示](https://gitee.com/kerwincui/kwswitch/raw/master/document/8.jpg)