Git Product home page Git Product logo

gtxzsxxk / intelli-switch Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 3.0 17.37 MB

基于stm32-f4智能气象站及Wi-Fi开关,提供温度、气压、湿度及光强度测量、服务器上报,以及Wi-Fi控制下的GPIO口。Intelligent Weather Station and Wi-Fi switcher providing temperature ,atmosphere pressure ,humidity and lightness detecting and reporting .Also the control of GPIO in Wi-Fi.

License: MIT License

C 50.12% Assembly 8.02% Python 11.26% Batchfile 0.03% HTML 24.73% JavaScript 4.48% CSS 1.36%
stm32 esp8266 bmp280 bf1750 wifi-network dht11 microchip arm-cortex-m4 stm32f4 django

intelli-switch's Introduction

IntelliSw 智能WiFi开关

  • Concept Video Uploaded:https://www.bilibili.com/video/BV14A411u7TP
  • Web平台更新
  • STM32平台更新(可能用IOT终端 or MCU来代替这一说法)
  • 配网功能(请见于stm32目录)
  • ESP8266实现HTTP服务器(同上)

Web平台

部署Web平台需要下载Font-Awesome,并添加至Web目录下的static目录。
Web平台采用Django框架构建,建立了3个模型,分别是

  • ServerInfo,储存服务器信息。

  • SampleData,储存IOT终端上报的数据。IOT终端通过ESP8266连接到互联网,为了保持与服务器的长连接,访问与本Web平台共同部署在一起的数据上报接口(iot-uploader.py)。数据上报接口通过GET请求Web平台内定义的/command命令执行接口来更新数据。或者Web平台在View.py内调用socket访问数据上报接口,调用内部已经与IOT终端建立连接的socket发送设备更改或时间同步命令。

  • DeviceControl,设备控制,储存自定义设备的状态。

STM32平台

Instruction to STM32 code

  • This Code Is Running On STM32F401CCU6.You can buy it on Taobao.

  • This is the basic STM32CUBEMX project files.Attention.I have deleted all innecessary driver files such as timer driver and usart driver.But I keep all the module drivers for the followings.

    • ESP8266(The Wifi module)
    • BMP280(Temperature and Atmosphere Pressure Sensor)
    • DHT11(Temperature and Humidity Sensor)
    • BF1750(Digital Lightness Sensor)

MCU数据传输过程

  • MCU ↑↓(By USART)
  • ESP8266 ↑↓ (By long TCP connection and USART)
  • iot-uploader.py in SERVER ↑↓ (By long TCP connection and local TCP connection)
  • Django Framework in SERVER ↑↓ (By local TCP connection)

最后更新于2021年2月13日。这个项目进入生产模式已经15天,出现过几次掉线,但也自动重连成功。迫于升学压力,可能这是我最后一次维护这个项目,得益于多多思考了整个系统的架构,项目还算稳定。不打算再动这个项目太多,简单的小bug会修复。

考上t大了,这个项目运行稳定,值得信赖。 写于17点22分,2022年6月30日

intelli-switch's People

Contributors

gtxzsxxk avatar

Stargazers

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