项目简介
本项目是一个基于M5StickC的两轮倒立摆机器人系统,可实现两轮机器人的倒立控制及状态监测功能。
项目的主要特性和功能
- 倒立摆控制:实现两轮机器人的倒立控制,展示稳定的倒立状态。
- 状态监测:能够查看机器人的内部状态,方便进行参数调优。
安装使用步骤
前提条件
本项目需要以下库和设备: - 库:无 - 设备:BALA - C
操作步骤
- 复制此仓库并进入目录:
bash cd BalanceCar
- 根据自己的网络环境配置
Config.h
文件:cpp:Config.h //Network setting. const char SSID[] = ""; // Wi-Fi SSID name. const char PASSWORD[] = ""; // Wi-Fi password. const byte BALAC_IP_ADDR[4] = {192, 168, 11, 101}; // IP Address of BalanceCar. const byte BALAC_GATEWAY[4] = {192, 168, 11, 1}; // Gateway of BalanceCar. const byte BALAC_SUBNET[4] = {255, 255, 255, 0}; // Subnetmask of BalanceCar. const int BALAC_PORT = 50008; // Port of BalanceCar. const byte PC_ADDR[] = {192, 168, 11, 100}; // IP address of the data destination PC. const int PC_PORT = 50007; // Port of the data destination PC.
- 构建并写入M5StickC。
- 将BALA - C的开关拨到ON方向(LED会亮起)。
- 将BALA - C侧倒,同时长按Button B。
- 等待M5StickC的LED亮起,屏幕显示“Stand”。
- 当显示“Stand”后,将BALA - C保持倒立状态,等待LED再次亮起。
- LED亮起后,倒立控制开始。
下载地址
点击下载 【提取码: 4003】【解压密码: www.makuang.net】