# CrabSystemProject **Repository Path**: yoooola/CrabSystemProject ## Basic Information - **Project Name**: CrabSystemProject - **Description**: 新螃蟹系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-29 - **Last Updated**: 2025-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CrabSystemProject #### 介绍 新螃蟹系统 #### 软件架构 软件架构说明 #### 安装教程 ### 1. 系统安装 安装64bit系统 2023-02-21-raspios-bullseye-arm64-lite.img.xz 首先安装python-opencv ```bash # 安装pip3 sudo apt install python3-pip sudo apt-get install -y libgl1 # 安装python-opencv sudo apt-get install -y python3-opencv # 安装vim sudo apt install vim # 安装C++版pyhon-opencv sudo apt-get install libopencv-dev # 安装cmake sudo apt install cmake # 安装nlohmann/json sudo apt install nlohmann-json3-dev # 安装curl sudo apt-get install libcurl4-openssl-dev # 安装 schedule pip3 install schedule ``` 将摄像头连接至树莓派 ```bash # 查看usb摄像头ID lsusb ``` ### 2. 编译版本选择 ```bash cmake -DCMAKE_BUILD_TYPE=Debug .. cmake -DCMAKE_BUILD_TYPE=Release .. ``` ### 3. 版本记录: ### | 时间 | 内容 | commit | | :--------: | :------------------------- | :--------------------------------------- | | 2024-11-05 | 跨平台的FIFO功能,已经测过 | 7cfac05795e7c9280a6bd6c74f9184016e10e5a2 | | | | | | | | | ### 4. 传感器配置 #### 外置温度计: 使用上位机设置传感器地址为`0x09` #### 10A继电器输出模块: 使用串口工具,设置波特率为`38400`,进入设备、并设置`发送和接收模式`都为`HEX` ```bash # 设置波特率为9600 01 06 00 33 00 01 B8 05 # 返回设置成功 01 06 00 33 00 01 B8 05 # 断电重启后以9600连接设备 # 读取设备ID 01 03 00 32 00 01 25 C5 # 返回设备ID为 0x0001 01 03 02 00 01 79 84 # 设置设备ID为 0x05 01 06 00 32 00 05 E8 06 # 返回设置成功 01 06 00 32 00 05 E8 06 # 断电重启后读取设备ID 05 03 00 32 00 01 24 41 # 返回设备ID为 0x05 05 03 02 00 05 89 87 # 测试吸合Y1 05 06 00 00 00 01 49 8E # 返回成功 05 06 00 00 00 01 49 8E # 测试断开Y1 05 06 00 00 00 00 88 4E # 返回成功 06 00 00 00 00 88 4E # 读取第一通道数据 05 04 00 00 00 01 30 4E # 返回第一通道数据为未吸合 05 04 02 00 00 48 F0 # 也可以使用 03 读取第一通道 05 03 00 00 00 01 85 8E # 返回第一通道数据为未吸合 05 03 02 00 00 49 84 ``` #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)