Flyduino

概述

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。

技术规格

引脚连接图

Pin Diagram for DFlyduino

FTDI下载器连接示意图

FTDI TO DFlyduino

示例代码

#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
  }
}

<File:nextredirectltr.png>购买 Flyduino-A 12 Servo Controller(SKU:DFR0136)