极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2134|回复: 1

连杆滑块伸缩模组的制作分享

[复制链接]
发表于 2023-6-8 10:03:27 | 显示全部楼层 |阅读模式
本帖最后由 机器谱 于 2023-6-8 10:03 编辑

1. 运动功能说明
       连杆滑块伸缩模组的主要运动方式为舵机带动滑块沿着光轴平行方向做伸缩运动。


2. 结构说明
        本模组主要是由舵机、滑块、光轴、连杆等组成。


3. 电子硬件
        在这个示例中,我们采用了以下硬件,请大家参考:

主控板
Basra主控板(兼容Arduino Uno)
扩展板
Bigfish2.1扩展板
电池
7.4V锂电池

        电路连接:舵机连接在Bigfish扩展板的D4端口。


4. 运动功能实现
       编程环境:Arduino 1.8.19
将参考例程(sketch_apr25a.ino)下载到主控板,实验效果可参考官网演示视频。
  1. /*------------------------------------------------------------------------------------

  2.   版权说明:Copyright 2023 Robottime(Beijing) Technology Co., Ltd. All Rights Reserved.

  3.            Distributed under MIT license.See file LICENSE for detail or copy at

  4.            https://opensource.org/licenses/MIT

  5.            by 机器谱 2023-05-15 https://www.robotway.com/

  6.   ------------------------------*/

  7. #include <Servo.h>


  8. Servo servo_pin_4;


  9. void setup()

  10. {

  11.   servo_pin_4.attach(4);

  12. }


  13. void loop()

  14. {

  15.   servo_pin_4.write( 90 );

  16.   //delay( 500 );

  17.   servo_pin_4.write( 50 );

  18.   delay( 500 );

  19.   servo_pin_4.write( 90 );

  20. // delay( 500 );

  21.   servo_pin_4.write( 130 );

  22.   delay( 500 );

  23. }
复制代码

5. 资料下载
资料内容:
①程序源代码
②模组3D文件
资料下载地址:https://www.robotway.com/h-col-229.html


想了解更多机器人开源项目资料请关注
机器谱网站 https://www.robotway.com

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-29 08:12 , Processed in 0.039243 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表