Code Monkey home page Code Monkey logo

cnsportiot_hardware's Introduction

CNSportIot_hardware

本项目为 CNSportIot 的硬件子项目,项目其他仓库链接:

项目总看板


项目介绍

概述

本项目以ESP32为主体,以MQTT作为通讯协议,以LTE作为通讯方式,配合其他外设模块实现了一个低成本、无需额外供电和配置的球场图像采集模块。

供电设计

此系统采用太阳能供电作为主要供电方式,通过3.7v锂电池进行储能,通过电池管理芯片对电池进行管理,通过电池管理芯片的输出口将电能供给ESP32,ESP32通过电池管理芯片的输入口获取电能。

工程描述

项目基于 PlatformIO 开发构建,其主要包含dataincludelibsrctestplatformio.ini六个部分,其中:

  • data 包含一些配置文件,通过工具存储到 SPIFFS 中
  • lib 为工程依赖的库(本地,通过 platefromio.ini 中的 lib_deps 配置的库位于 ~/.pio/libdeps/<env>/
  • src 为项目工程源码
  • platformio.ini 为 PlatformIO 的配置文件
  • testinclude 尚未涉及,详见PlatformIO 文档

项目构建及烧录运行

驱动准备

使用沁恒CH340系列芯片需要安装驱动,驱动下载地址:CH340 驱动下载

注:2023/03/16(3.8) 版驱动在 win11 系统构建时出现权限错误,使用 2019/03/18(3.5) 版尚未出现问题
v3.5 版驱动下载

环境准备

安装VSCode,并安装PlatformIO插件(略)

知乎上面有很多教程

build & upload

  1. 打开 VSCode ,打开本项目
  2. 修改 data/config.json 中的配置信息
  3. 进入 PIO 主页 PROJECT TASKS,选择 env ,在 Platform 选项组中点击Build Filesystem ImageUpload Filesystem Image,等待配置文件烧写完成
  4. General 选项组中点击 BuildUpload,等待程序烧写完成(完全等效于底部快捷按钮)

cnsportiot_hardware's People

Contributors

qianmoxsn avatar

Watchers

 avatar

cnsportiot_hardware'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.