{"id":1646,"date":"2022-08-02T19:22:42","date_gmt":"2022-08-02T19:22:42","guid":{"rendered":"https:\/\/makerprojekte.de\/?p=1646"},"modified":"2022-08-02T19:22:45","modified_gmt":"2022-08-02T19:22:45","slug":"remote-control-diddyborg-with-gamepad-or-joystick","status":"publish","type":"post","link":"https:\/\/makerprojekte.de\/en\/remote-control-diddyborg-with-gamepad-or-joystick\/","title":{"rendered":"Remote control DiddyBorg with gamepad or joystick"},"content":{"rendered":"\n<p>In this blog I present my Windows app <em>JoystickRC4DiddyBorg <\/em>for remote control of the DiddyBorg (from PiBorg) with a joystick or gamepad.<\/p>\n<p>The DiddyBorg sample programs published by the manufacturer PiBorg also include a Python remote control script with joystick, but it uses Bluetooth and therefore has a rather limited range.<\/p>\n<p>The app presented here uses the existing WLAN and UDP as protocol to ensure sufficient agility of the remote control. For safety reasons, the time-out logic of the ThunderBorg motor controller is activated.<\/p>\n<h2>Software installation<\/h2>\n<p>The DiddyBorg needs a Python script <em>JoystickRC4DiddyBorg<\/em> as receiver, which you can find on <a href=\"https:\/\/github.com\/makerprojects\/JoystickRC4DiddyBorg\">github.com<\/a>. In addition to the receiver program, you will also find a version of the ThunderBorg &#8211; Library for Python 3.x in the repository (the sample programs for the DiddyBorg are still based on Python 2.x).<\/p>\n<p>The easiest way is to copy the two files additionally into the directory with the examples &#8211; then the script should work without further adjustments of path names.<\/p>\n<p>On the PC side, install the Windows app <em>JoystickRC4DiddyBorg of<\/em> the same name, which you can get for free from the <a href=\"https:\/\/apps.microsoft.com\/store\/detail\/joystickrc4diddyborg\/9P6L5F7GF1L1?hl=EN-us&amp;gl=en\">Microsoft App Store<\/a>.<\/p>\n<h2>Operation<\/h2>\n<p>First start the Python script on the DiddyBorg. If you have a screen connected, then the program will log in and indicate that it is waiting for a client.<\/p>\n<p>When you start the PC app, it will automatically search for a DiddyBorg with an active and compatible receiver on the local WLAN (to which both the DiddyBorg and the PC being used must be connected). If no connection can be established, a corresponding error message is displayed.<\/p>\n<p>After the connection has been successfully established, the channels can be assigned to the various joystick axes and keys. Channels 3 and 4 are used as push buttons and allow for example fast \/ slow rotation (the function of the push buttons can be traced in the Python script).<\/p>\n<p>The assignment of the channels is saved and restored at the next program start.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog I present my Windows app JoystickRC4DiddyBorg for remote control of the DiddyBorg (from PiBorg) with a joystick or gamepad. The DiddyBorg sample programs published by the manufacturer PiBorg also include a Python remote control script with joystick, but it uses Bluetooth and therefore has a rather limited range. The app presented here &hellip; <a href=\"https:\/\/makerprojekte.de\/en\/remote-control-diddyborg-with-gamepad-or-joystick\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Remote control DiddyBorg with gamepad or joystick&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1638,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,56,61,62,63],"tags":[],"class_list":["post-1646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-en","category-roboter-en","category-rover-en","category-uav-en","category-ugv-en"],"_links":{"self":[{"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/posts\/1646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/comments?post=1646"}],"version-history":[{"count":2,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/posts\/1646\/revisions"}],"predecessor-version":[{"id":1648,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/posts\/1646\/revisions\/1648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/media\/1638"}],"wp:attachment":[{"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/media?parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/categories?post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/makerprojekte.de\/en\/wp-json\/wp\/v2\/tags?post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}