{"id":358,"date":"2014-11-20T04:39:00","date_gmt":"2014-11-20T04:39:00","guid":{"rendered":"http:\/\/itp.fromjia.com\/?p=358"},"modified":"2014-11-20T04:39:00","modified_gmt":"2014-11-20T04:39:00","slug":"the-game-of-driving-a-straight-line","status":"publish","type":"post","link":"http:\/\/itp.fromjia.com\/?p=358","title":{"rendered":"The game of driving a straight line"},"content":{"rendered":"<p>Following up to testing <a href=\"http:\/\/itp.fromjia.com\/?p=331\">all the sensors<\/a>, our team custom made a steering wheel that controlled a game developed by Ayanna. The player drives a car and tries to stay on the road. That&#8217;s it! The constraints of the project was that we had to spend less than four dollars on materials and that we had to use only the sensors provided by Kaho. We created the wheel out of two plastic plates with two tilt sensors, a sonar sensor, and the Flora. Two holes were cut out from the plate to ensure the player would hold it the right way, so that we can get the best readings from the tilt sensors.<\/p>\n<p>I like to think of our game as the Flappy Bird of hardware games. It&#8217;s deceptively simple, but nearly impossible to win. Because the tilt sensors work more like switches. Even though we were able to get increasing and decreasing values from them, they essentially produce binary results \u2013 on or off. That makes driving a straight line extremely difficult with our wheel. Once the player makes his\/her first turn, it&#8217;s impossible to go back to just driving in a straight line, because the wheel is always creating a left or right turn on the screen. One of our testers even flipped the car over while trying to steer it back to the middle of the road! What I learned from this project is that simple, impossible games are pretty addictive. Even after flipping his car over, the player still wanted to try again. The stupidly simple goal of the game makes it frustrating to players that they can&#8217;t beat it, so they keep playing. (insert evil laugh)<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/player.vimeo.com\/video\/112353349\" width=\"500\" height=\"281\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe> <\/p>\n<p><a href=\"http:\/\/vimeo.com\/112353349\">IMG 3987<\/a> from <a href=\"http:\/\/vimeo.com\/user3471662\">Jiashan Wu<\/a> on <a href=\"https:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/player.vimeo.com\/video\/112353348\" width=\"500\" height=\"281\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe> <\/p>\n<p><a href=\"http:\/\/vimeo.com\/112353348\">IMG 3988<\/a> from <a href=\"http:\/\/vimeo.com\/user3471662\">Jiashan Wu<\/a> on <a href=\"https:\/\/vimeo.com\">Vimeo<\/a>.<\/p>\n<div id=\"attachment_359\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3975.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-359\" class=\"size-medium wp-image-359\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3975-300x225.jpg\" alt=\"Tilt sensors between the plates.\" width=\"300\" height=\"225\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3975-300x225.jpg 300w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3975-1024x768.jpg 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3975-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-359\" class=\"wp-caption-text\">Tilt sensors between the plates.<\/p><\/div>\n<div id=\"attachment_362\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3985.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-362\" class=\"wp-image-362 size-medium\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3985-300x225.jpg\" alt=\"IMG_3985\" width=\"300\" height=\"225\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3985-300x225.jpg 300w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3985-1024x768.jpg 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3985-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-362\" class=\"wp-caption-text\">We also tried using the Arduino, because we were having issues reading the sonar values with the Flora.<\/p><\/div>\n<div id=\"attachment_361\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3978.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-361\" class=\"wp-image-361 size-medium\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3978-300x225.jpg\" alt=\"IMG_3978\" width=\"300\" height=\"225\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3978-300x225.jpg 300w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3978-1024x768.jpg 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3978-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-361\" class=\"wp-caption-text\">We went back to the Flora because the Uno didn&#8217;t support keypress events.<\/p><\/div>\n<div id=\"attachment_360\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3977.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-360\" class=\"wp-image-360 size-medium\" src=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3977-300x225.jpg\" alt=\"IMG_3977\" width=\"300\" height=\"225\" srcset=\"http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3977-300x225.jpg 300w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3977-1024x768.jpg 1024w, http:\/\/itp.fromjia.com\/wp-content\/uploads\/2014\/11\/IMG_3977-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-360\" class=\"wp-caption-text\">Completed steering wheel!<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Following up to testing all the sensors, our team custom made a steering wheel that controlled a game developed by Ayanna. The player drives a car and tries to stay on the road. That&#8217;s it! The constraints of the project was that we had to spend less than four dollars on materials and that we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-358","post","type-post","status-publish","format-standard","hentry","category-costume-as-game-controller"],"_links":{"self":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=358"}],"version-history":[{"count":2,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/358\/revisions"}],"predecessor-version":[{"id":364,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=\/wp\/v2\/posts\/358\/revisions\/364"}],"wp:attachment":[{"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itp.fromjia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}