Coder Social home page Coder Social logo

poapoauu / smarthome-qt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinlq/smarthome-qt

0.0 0.0 0.0 3.64 MB

基于zigbee和stm32的智能家居系统,上位机使用Qt编写,实现了基本的监控。主要包括监控室内温度、湿度、烟雾浓度,用led灯模拟控制家中的灯。界面良好。

C++ 98.10% C 0.88% CSS 0.66% QMake 0.36%

smarthome-qt's Introduction

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

SmartHome-Qt

基于 Zigbee 和 STM32 的环境监测监控系统
Explore the docs »

View Demo · Report Bug · Request Feature

基于 Zigbee 和 STM32 的环境监测监控系统

项目设计、开发文档、以及开发资料获取方式:

获取更多信息可以关注微信公众号:devstone

安全认证

Security Status

项目介绍

本系统分为硬件和软件两部分内容,下位机 STM32 单片机驱动各个传感器模块采集数据,然后发送给 ZigBee 终端,ZigBee 终端在接收到数据后发送给协调器,协调器是和 ARM开发板(上位机)相连接的,ARM 开发板收到数据后进行相应的解析并显示在界面上。其中ARM开发板上跑的是使用 Qt 编写的程序,经过交叉编译后移植到了开发板上。

framework

有关该项目详细使用说明,可以看这边博客,介绍的比较详细.传送门

开发环境

开发系统:Windows10 64位
Ubuntu 14.04 32 位
软件版本:Qt 4.8.6
IAR .0
Altium Designer 13.0
工具链:arm-linux-gcc 4.4.3

目前已经支持 Qt5 编译运行

编译和运行

下载代码到本地

git clone [email protected]:kevinlq/SmartHome-Qt.git

cd SmartHome-Qt

qmake SmartHomeV5.pro

使用Qt4打开直接编译

为什么说是Qt4呢,因为当时编写基于ARM Linux 平台,使用的是Qt4,在Qt5中有一些函数方法被取消了。如果你在windows下或者其他平台使用非Qt4,那么需要自己进行修改!

运行

程序运行需要数据库,默认使用 QSqlLite 数据库,需要拷贝 file文件夹下的 SmartHome.db 文件到可执行程序同级目录下

默认程序编译完成后,可执行程序在bin目录下

可以在工程配置文件中进行修改!

DESTDIR = $$PWD/bin

关于交叉编译,移植到ARM平台,可以参考我的这篇文档,介绍很详细! 传输门

如果有什么问题欢迎及时联系我

系统功能

详细的介绍可以看博客http://blog.csdn.net/u013704336/article/details/51765397 这个项目作为2016年的毕设,完美完成了各项要求。综合利用了所学的C语言、C++、zigbee、stm32、Qt、ARM、等嵌入式技术。

首页

Image text

控制主界面

Image text

客厅

Image text

卧室

Image text

厨房

Image text

历史曲线数据

Image text

Image text

Image text

电路原理图

电路图使用AD13软件进行绘制,使用的主控芯片是STM32F103

Image text

感谢

欢迎关注微信公众号,互相交流

Change Logs

  • ....
  • 2018-10.14-添加程序编译及运行配置(最近有不少人问,总是编译失败,所以完善了下)
  • 2020.03.11 兼容Qt5,目前测试使用Qt5.13编译通过,可以正常运行(windows10 64b)

分支版本说明

  • 主分支
  • v1.0 tag 基础版本,是刚开始稳定运行版本,使用Qt4编译
  • v2.0 tag 适配Qt5版本,可以正常运行,稳定性未验证(windows 10)

smarthome-qt's People

Contributors

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