查看“Microduino-USBhost”的源代码
←
Microduino-USBhost
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| style="width: 800px;" |- | [[File:Microduino-USBHOST-rect.jpg|400px|thumb|right|Microduino-USBHOST]] Microduino USBHOST mainly supply the USB host function for some equipment, supports USB host controller and USB peripherals, such as mobile phones OTG function, keyboards, joystick, and camera. ==Features== *Support MicroUSB interface; *Small, cheap, stackable, opened platfrom; *Open source hardware circuit design, compatible with the Arduino IDE development environment for programming; *Define unified interface Microduino specification and contain rich peripheral modules. Set up the quick connection with other Microduino modules and sensors easily and flexibly. *2.54 pitch row female connector for easy integration into breadboard. ==Specifications== *Electrical specifications **3.3V or 5V power; **USB host uses power protocol of 5V/500mA; **Using TC74HC4050 level conversion chip, provides the high anti-interference and stable output; **D+, D- and VBCOMP has ESD protection function; **The firmware/hardware control internal D+ pull up resistors (peripherals mode) and D+/D- pull down resistor (host mode); *Communication **Compatible with the MAX3420E USB peripheral which has the SPI interface; **Comply with USB 2.0 specification (12 Mbps peripherals at full speed, full speed/low speed 12Mbps/1.5 Mbps host); **Smart USB SIE; **Automatic processing of USB flow control and double buffer; **Process low level USB signaling. *Supported devices: **HID devices, such as keyboards, mouse, joystick and so on; **Game controller - Sony PS3,Nintendo Wii,XBOX360; **USB-to-serial converter - FTDI,PL-2303,ACM,mobile phones with OTG function and GPS receiver; **Android mobile with ADK function; **Digital Camera - Canon EOS's Powershot, Nikon digital SLR cameras and P&S, and general PTP; **Mass storage devices, such as U disk, card reader, external hard drive; **Bluetooth dongle. *Pin description: {|class="wikitable" ! rowspan="1" | Chip Pin || Microduino Pin || Function |- | RES || RST || reset chip |- | SCLK || D13 || SPI serial clock input |- | SS || D5 || SPI slave select input |- | MISO || D12 || SPI serial data output |- | MOSI || D11 || SPI serial data input |- | INT || D4 || Interrupt output |} [[file:Microduino-USBHOST-Pinout.jpg|800px|thumb|center|Microduino-USBHOST-Pinout]] ==Document== Eagle PCB local download Main components: *Voltage converter chip:TC74HC4050 '''[[File:TC74HC4050AF.pdf]]''' *Main control chip:MAX3421E '''[[File:MAX3421E.pdf]]''' ==Development== *Need library: https://github.com/felis/USB_Host_Shield_2.0 *Serial debug is disabled under default condition. **You need open the file "settings.h" from library folder; **Find “#define ENABLE_UHS_DEBUGGING 1”, an then change to “#define ENABLE_UHS_DEBUGGING 1”, then save it. *USB_Host_Shield_2.0 library usage: **Bluetooth libraries: An ordinary Bluetooth adapter. You can easily add different Bluetooth services, such as a PS3 or Wii controller or SPP which is supported through Bluetooth virtual serial port. A number of different examples can be found in the examples directory. **HID library: Connect USB peripherals. Such as a mouse, handle etc. **BTHID library: Connect HID devices via Bluetooth, currently supports HID mouse and keyboard. **SPP library: Allow you send data to your Microduino from PM/mobile phone via Bluetooth. **PS4 Library: Allow you to use the Sony PS4 controller via Bluetooth and USB. **PS3 Library: Use DUALSHOCK3, navigation or motion controller via Bluetooth and USB. **Xbox Libraries: **Xbox Libraries: The library uses USB as the Xbox 360 controller. ==Application== Light a LED via a mobile using the ADK example library: ===Prepare work=== *Prepared hardware:Microduino FT232R, Microduino Core, Microduino USBHOST, OTG cable, make sure your Android device supports and turn on the USB debug mode, USB cable; *Prepared software:USB_Host_Shield_2.0 library, Arduino IDE(1.0 release and upper); *Uncompress the zip folder and rename to “USB_Host_Shield” becasue Arduino IDE doesn't support any special characters, then copy to libraries folder of Arduino IDE; *Connect the Microduino FT232R and PC using USB cable to download program and serial monitor; *Connect a LED to I/O port D6 of Microduino-Core; ===Debug=== *Open the example program "ArduinoBlinkLED" from ADK folder of examples; *Change LED_BUILTIN to Microduino pin in "#define LED LED_BUILTIN", such as "#define LED 6". But can't be D13, because D13 is used as SCK. *After compiled, select the board "Microduino Core (Atmega328P@16M,5V)", download directly; *Connect the mobile phone and Microduino USBHOST by OTG cable and USB cable; *Open the serail monitor, will display "Arduino Blink LED Started"; *The phone will automatically pop up the application "ArduinoBlinkLED", download and install it; *After installed the application, will prompte to open the USB connection fittings, and click OK to enter the program interface; *Successful connection will show "connected", and can control the LED light on and off via the button. ==Bug== ==History== ==Picture== ==Front== [[file:Microduino-USBHOST-F.JPG|thumb|600px|center|Microduino-USBHOST Front]] ==Back== [[file:Microduino-USBHOST-b.JPG|thumb|600px|center|Microduino-USBHOST Back]] ==Video== |}
返回至
Microduino-USBhost
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息