![]() Need to set PIN_USB_HOST_ENABLE to LOW and OUTPUT_CTR_5V to HIGH. To enable USB Host on Wio Terminal, you must configure two pins. Important Note: Because the USB port of Wio Terminal is being used for USB, to upload another program to Wio Terminal require entering Bootloader mode by pressing the power button twice(the LED will dim), then you should be able see the port again. You should be see serial output from Wio Terminal! Once installed, use the command screen /dev/cu.usbserial 115200 where /dev/cu.usbserial should match from above. Mac: Open terminal and install screen using brew install screen. Now, if you start pressing buttons on Xbox ONE controller, you should see the serial output! Select Serial and change the COM in Serial line to the COM that appeared in the Device Manager, also change the Speed. ![]() For Mac user, use ls /dev/cu.* in terminal to check the module availability.Depending on what USB to Serial Module used, download the USB driver for the module so that your computer can recognize it.įor Windows User, you can open Device Manager to check if it's recognized. GND(USB to Serial Module) -> GND(Pin 6 on Wio Terminal)Ĭonnect the USB to Serial Module to your computer.3.3V(USB to Serial Module) -> 3.3V(Pin 1 on Wio Terminal).RXD(USB to Serial Module) -> TXD(Pin 8 on Wio Terminal).TXD(USB to Serial Module) -> RXD(Pin 10 on Wio Terminal).Xbox ONE Controller -> OTG Adaptor -> Wio Terminal(Type-C Port)Ĭonnect the USB to Serial Module to the Wio Terminal as follow:.Unplug the USB type-C cable from Wio Terminal that used to upload the code.Ĭonnect your Xbox ONE Controller to the OTG adaptor then to the USB-C port of Wio Terminal. Upload the code to Wio Terminal using Arduino IDE. And also it worth mentioning that the USB port on the blue pill board is connected to the STM32F103C8 hardware. If using Xbox 360 controller or clone ones, please check XBOXOLD.ino in the example. Thats why we use the external USB ST-Link clone. Note: Xbox ONE Controller is used in this example. To work with this example, you will need a USB OTG Adaptor and a USB to Serial Module, where the OTG adaptor is used to connect with Xbox controller and the USB to Serial module to read the outputs from Wio Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |