{"id":5497,"date":"2024-03-27T20:13:34","date_gmt":"2024-03-27T20:13:34","guid":{"rendered":"https:\/\/rodmilstead.com\/pt\/?page_id=5497"},"modified":"2026-05-08T16:23:34","modified_gmt":"2026-05-08T16:23:34","slug":"2024-intro-joystick-and-servo","status":"publish","type":"page","link":"https:\/\/rodmilstead.com\/pt\/2024-intro-joystick-and-servo\/","title":{"rendered":"Intro: Joystick and Servo"},"content":{"rendered":"<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4038 alignleft\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring-1024x853.jpg\" alt=\"\" width=\"329\" height=\"274\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring-1024x853.jpg 1024w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring-300x250.jpg 300w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring-768x639.jpg 768w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/9gervowiring.jpg 1500w\" sizes=\"auto, (max-width: 329px) 100vw, 329px\" \/><\/a>This intro will guide you through building a real circuit with sample program that uses a joystick to control a standard servo.\u00a0 Standard servos sweep from zero to 180 degrees.<\/p>\n<p>You will use the joystick from your kit and the BLUE servo that came with your kit.<\/p>\n<p>Use this wiring diagram to get started &#8211; I would include a breadboard in your circuit.\u00a0 There is a link to a sample program below the wiring diagram.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4041\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/2022arduinojoystickservowiring.png\" alt=\"\" width=\"613\" height=\"443\" srcset=\"https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/2022arduinojoystickservowiring.png 613w, https:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/02\/2022arduinojoystickservowiring-300x217.png 300w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/p>\n<p><a href=\"https:\/\/docs.google.com\/document\/d\/1heQNLVvurHU4ByBOeG0EPabbE7_UWL7Jm2urDm5fjBk\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">Click here for the code for this circuit. Copy\/paste from the Google Doc to a new Arduino Cloud program and upload to your circuit.<\/a><\/p>\n<p><a href=\"https:\/\/create.arduino.cc\/projecthub\/RiddledExistence\/controlling-a-servo-motor-with-thumb-joystick-46a4d3\" target=\"_blank\" rel=\"noopener\">The inspiration for this can be found here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This intro will guide you through building a real circuit with sample program that uses a joystick to control a standard servo.\u00a0 Standard servos sweep from zero to 180 degrees. You will use the joystick from your kit and the BLUE servo that came with your kit. Use this wiring diagram to get started &#8211; &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/2024-intro-joystick-and-servo\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Intro: Joystick and Servo<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5497","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=5497"}],"version-history":[{"count":3,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5497\/revisions"}],"predecessor-version":[{"id":8481,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/5497\/revisions\/8481"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=5497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}