SDUCX – Raspberry Pi Robot

This is the assignment for the 2021 Shandong University Future Science Camp (Summer) - Artificial Intelligence and Invention Creation Future Science Camp So just take a look

Basic Information

  • Name: Remote Intelligent Room Patrol Alarm Robot

Solve the problem of long-term unoccupied homes/rooms, but there are equipment operations or other needs that require remote monitoring. It can conveniently remotely monitor the home environment and monitor the operating status of the equipment. It has good mobility and flexibility and can adapt to different room environments.

Hardware connection diagram

graph LR

摄像头 --- 树莓派
超声传感器 --- 扩展板
5路组件 --- 扩展板
树莓派 --- 扩展板
扩展板 --- 电机驱动板
扩展板 --- 测速左
扩展板 --- 测速右
电机驱动板 --- 电机左
电机驱动板 --- 电机右
扩展板 --- 电池

Software block diagram

car

graph TD

各传感器数据收集 --> 数据打包 --> 网络通信
摄像头画面收集 --> 压缩转码 --> 网络通信
网络通信 --> 数据解包 --> 电机控制

网络通信 --- Socket-UDP

Control terminal

graph TD

操作收集 --> 数据打包 --> 网络通信

Socket-UDP --- 网络通信

网络通信 --> 传感器数据解包
网络通信 --> 摄像头画面解包
传感器数据解包 --> 可视化还原
摄像头画面解包 --> 可视化还原

Software flow chart

Car speed measurement counting thread

graph TD
左轮计数回调 --> 左轮计数
右轮计数回调 --> 右轮计数

Car ultrasonic thread

graph TD
开始 --> A{不停止?}
A -->|Yes| 发射超声脉冲
发射超声脉冲 --> 等待发射完成
等待发射完成 --> 等待回波
等待回波 --> 更新距离
更新距离 --> A
A -->|NO| 结束

Car motor thread

graph TD
开始 --> A{不停止?}
A -->|YES| 执行电机命令
执行电机命令 --> A
A -->|NO| 结束

Car image collection thread

graph TD
开始 --> A{不停止?}
A -->|YES| 截取画面
截取画面 --> 打包数据
打包数据 --> UDP发送
UDP发送 --> A
A -->|NO| 关闭摄像头
关闭摄像头 --> 结束

Car UDP thread

graph TD
开始 --> A{不停止?}
A -->|YES| 接受消息
接受消息 --> 更新电机指令
更新电机指令 --> 更新控制端网络地址
更新控制端网络地址 --> 打包传感器数据
打包传感器数据 --> UDP发送
UDP发送 --> A
A -->|NO| 结束

Control terminal

graph TD
Tick开始 --> 打包电机命令
打包电机命令 --> 发送UDP消息
发送UDP消息 --> A{接受UDP消息}
A -->|13| 更新传感器变量
A -->|770| 更新摄像机缓冲区
A -->|NO| 请求更新摄像机画面
更新传感器变量 --> A
更新摄像机缓冲区 --> A
请求更新摄像机画面 --> Tick结束

Implementation process

  1. Car construction
    1. Test each sensor function
    2. Test motor function
    3. Test servo function
  2. Control terminal
    1. Basic UI layout
  3. interaction
    1. Upload data from each sensor
    2. Motor control instruction download
    3. Picture transmission
  4. Intelligent
    1. Moving object detection
    2. environmental information modeling
    3. Automatic path decision

key code

View in Gitea

Innovation

Apparently JD sells it

  1. Combining remote control cars and sensors constitutes a new product with remote monitoring functions.
  2. This project changed the dimensional parameters in the product and improved its performance.
  3. Applying network remote control technology to the field of remote control cars creatively solves the problem of remote control distance limitation.

market expectation

The market prospects are outrageous

As a low-cost solution, it can solve the need for flexible monitoring in the home. The beneficiaries are people who are away from home for a long time but have equipment running 7/24 at home and need unattended and remote monitoring of equipment operation.
As a low-cost solution, mainly for home use, the price is 1999 and the profit is 500.

Profit ratio (percentage) over time (days):

Goods display

Post Reply