| 主控板 |
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 );
}