_SKU_DFR0136_Flyduino控制器_兼容Arduino - jimaobian/DFRobotWikiCn GitHub Wiki
Flyduino是一款基于Arduino的微型控制器,40X24mm的尺寸集成了12个数字口(舵机控制口),1个舵机电源接口,8个模拟口,1个XBee无线数传接口。
Flyduino控制自身仅重7.5g,配上XBee或者BLE-LINK模块也只有15g左右。非常适合用作航模控制器,Flyduino可通过编程控制12个舵机同时工作,配合XBee无线模块,可完成远程遥控。
注意事项:需要通过USB Serial Light Adapter编程器(DFR0164)或者FTDI Basic Breakout编程器(DFR0065)对其进行程序烧写,此控制器的工作电压为3.3V,程序烧写时,注意使用编程器的3.3V电压输出,否则使用5V损坏您的设备。
警告:控制器工作电压为3.3V。
- 微控制器:ATMEGA328
- 工作电压:3.3V
- 输入电压:3.6-8V
- 硬件接口:兼容FTDI烧录接口,兼容Xbee插座
- Booloader:Arduino FIO
- 数字I/O口:12个
- 模拟输入口:8个
- flash存储器:32K
- SRAM:2K
- EEPROM:1K
- 晶体振荡器:8MHz
- 平面尺寸:40x25mm
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 0; // variable to store the servo position
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees
{ // in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees
{
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
购买 Flyduino-A 12 Servo Controller(SKU:DFR0136)
category: Product Manual category: DFR Series category: Motors-Servos category: source