{"id":82,"date":"2015-09-24T22:27:34","date_gmt":"2015-09-24T22:27:34","guid":{"rendered":"http:\/\/www.hardwarehacker.co.uk\/blog\/?p=82"},"modified":"2015-09-24T22:30:29","modified_gmt":"2015-09-24T22:30:29","slug":"manual-control-with-an-rc-transmitter","status":"publish","type":"post","link":"https:\/\/www.hardwarehacker.co.uk\/blog\/manual-control-with-an-rc-transmitter\/","title":{"rendered":"Manual Control with an RC transmitter"},"content":{"rendered":"<p>I just discovered something on the internet that I&#8217;m very excited about.<\/p>\n<p>Brian Corteil in his <a href=\"http:\/\/www.corteil.co.uk\/Blog\/raspberry-pi\/methods-for-controlling-your-robot\/\">post on manual control<\/a>\u00a0said that while you could use an RC transmitter to control your robot, but there was no simple solution to connect the signal into your Raspberry Pi.<\/p>\n<p>Well &#8211; I&#8217;ve just <a href=\"http:\/\/diydrones.com\/profiles\/blog\/show?id=705844%3ABlogPost%3A64228\">found one<\/a> \ud83d\ude42<\/p>\n<p>It seems that <a href=\"http:\/\/www.hobbyking.com\/hobbyking\/store\/__73006__OrangeRx_R111XN_DSMX_DSM2_Compatible_Nano_Satellite_Receiver.html\">Spectrum DSM2\/DSMX Satellite receivers<\/a> connect to their master unit using a 3-pin cable. This cable carries 3V3, GND and a SERIAL link. This can connect directly into the <a href=\"http:\/\/elinux.org\/RPi_Serial_Connection\">Raspberry Pi UART<\/a> &#8211; set the baud rate to 115200bps (which I think is the default anyway).<\/p>\n<p>The first 2 bytes in each frame are sync bytes (0x03, 0x01), then there are 7 pairs of bytes which tell you the position of\u00a0each of\u00a0the transmitter channels (joystick axes). \u00a0Just read the bytes\u00a0and make your robot dance! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just discovered something on the internet that I&#8217;m very excited about. Brian Corteil in his post on manual control\u00a0said that while you could use an RC transmitter to control your robot, but there was no simple solution to connect the signal into your Raspberry Pi. Well &#8211; I&#8217;ve just found one \ud83d\ude42 It seems &hellip; <a href=\"https:\/\/www.hardwarehacker.co.uk\/blog\/manual-control-with-an-rc-transmitter\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Manual Control with an RC transmitter<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[2],"_links":{"self":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":4,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardwarehacker.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}