So if you gonna connect Arduino's TX to OPi, use 3.3V Arduino or do voltage level shifting. Pro Micro: SDA = D2, SCL = D3 Notice, if you use 5V Arduino Instructions to add ESP8266-support to Arduino IDE:įile -> Preferences -> Additional Boards Manager URLs: Inputattach -baud 9600 -always -stinger -daemon /dev/ttyS1 Hardware ESP8266ĮSP8266: SDA = D2 (GPIO4), SCL = D1 (GPIO5)ĮSP8266, Wii Classic Controller and Orange Pi GPIO's are 3.3V, so there is no need for voltage level shifting. Start automatically at boot /etc/rc.local: You can test it with (device number depends your another controllers): Sudo inputattach -baud 9600 -always -stinger /dev/ttyS1 (I have not yet tested module with clean install of ROPi) inputattach-command loads it automatically, so you don't have to start it by hand. Put it /lib/modules/3.4.112-sun8i/kernel/drivers/input/joystick/stinger.ko and do sudo depmod -a. From this github-page you can download stinger-module for RetrOrangePi 2.5.2. Serport is compiled to kernel (CONFIG_SERIO_SERPORT=y). This needs serport.ko and stinger.ko -modules. (analog sticks of Wii Classic Controller are disabled) RetrOrangePi 2.5.2 Linux are set up like there would be real Stinger connected to physical serial port. Then it converts them to Gravis Stinger 4 data bytes and sends them through serial port (physical or USB). It reads 6 data bytes from Wii Classic Controller with I☬. Stinger_WiiClassicController.ino emulates Gravis Stinger controller. Look ma! I'm driving without USB! (about $3 Wemos ESP8266 and Wii Classic Controller with Orange Pi PC UART1) You will get /dev/input/jsX-device (joysticks and gamepads), /dev/eventX-device (keyboard) or /dev/mouseX-device (mouse). This page is for information how to connect some controllers to serial port. Orange Pi has 4 hardware serial ports (UART), which are rarely used, so one reason is simply to save USB-port(s). There can be situations, when you cannot do or use USB-HID-joystick adapter and you still need way to use Linux with some kind of (game)controller. Short versionĬonvert (game)controller signals with Arduino or ESP8266 to Serial TTL -signal and use it in Linux like any other joystick (/dev/input/jsX). If you can't/don't want to use USB, keep reading. If you want just a easy way to get Arduino act like e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |