本帖最后由 机器谱 于 2023-6-2 10:25 编辑
1. 运动功能说明
齿轮齿条平动模组的主要运动方式为直流电机带动2个齿轮沿着齿条平行方向前进、后退。
2. 结构说明
本模组主要是由直流电机、齿轮、齿条、光轴、滑块、机架等组成。
3. 电子硬件
在这个示例中,我们采用了以下硬件,请大家参考:
主控板 | Basra主控板(兼容Arduino Uno)
| 扩展板 | Bigfish2.1扩展板
| 电池 | 7.4V锂电池 |
电路连接:直流电机连接在Bigfish扩展板的(5,6)引脚。
4. 运动功能实现
编程环境:Arduino 1.8.19
将参考例程(sketch_apr26a.ino)下载到主控板,实验效果可参考官网演示视频。 - /*------------------------------------------------------------------------------------
- 版权说明:Copyright 2023 Robottime(Beijing) Technology Co., Ltd. All Rights Reserved.
- Distributed under MIT license.See file LICENSE for detail or copy at
- https://opensource.org/licenses/MIT
- by 机器谱 2023-05-11 https://www.robotway.com/
- ------------------------------*/
- void setup()
- {
- pinMode( 5 , OUTPUT);
- pinMode( 6 , OUTPUT);
- }
- void loop()
- {
- digitalWrite( 5 , HIGH );
- digitalWrite( 6 , LOW );
- delay( 1000 );
- digitalWrite( 5 , LOW );
- digitalWrite( 6 , HIGH );
- delay( 1000 );
- }
复制代码
5. 扩展机构
这个机构也可以固定电机部分,让齿条部分运动。
6. 资料下载
资料内容:
①程序源代码
②模组3D文件
资料下载地址:https://www.robotway.com/h-col-224.html
想了解更多机器人开源项目资料请关注 机器谱网站 https://www.robotway.com
|