主控板 |
Basra主控板(兼容Arduino Uno)
|
扩展板 |
Bigfish2.1扩展板
|
电池 | 7.4V锂电池 |
下面提供一个杠杆式6轮爬楼机器人爬楼梯的参考程序(sketch_sep15b.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-09-18 https://www.robotway.com/ ------------------------------*/ /* 本例程采用的是1拖6线进行实验操作 */ void setup() { pinMode( 5 , OUTPUT); pinMode( 6 , OUTPUT); } void loop() { moveForward(); delay(100000); stopMotors(); delay(10000); } void moveForward() { digitalWrite( 5 , HIGH ); digitalWrite( 6 , LOW ); } void stopMotors() { digitalWrite( 5 , LOW ); digitalWrite( 6 , LOW ); }