[{"data":1,"prerenderedAt":232},["ShallowReactive",2],{"project-4896020":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":9,"maker":10,"posted_at":11,"year":12,"points":13,"comments":14,"rank_in_year":15,"shown_in_year":16,"top":14,"tier":17,"category":18,"subcategory":19,"format":18,"keywords":20,"reception":25,"sentiment":26,"stance_mix":27,"scored_comments":31,"aspects":32,"strip":36,"post_text":38,"what":39,"said":76,"maker_in_thread":126,"shape":139,"grid":143,"attempts":196,"same_week":197,"maker_shows":34,"maker_hidden":224,"reader_version":225,"card":226},"4896020","I built a Raspberry Pi\u002FAndroid driven toy car","A Raspberry Pi\u002FAndroid driven toy car","title","Show HN: I built a Raspberry Pi\u002FAndroid driven toy car",null,"doctoboggan",1355085399,2012,64,22,363,1677,"notable","hardware","robotics toy car",[21,22,23,24],"raspberry pi","android accelerometer","robot car","dc motor control","loved",0.55,{"positive":28,"neutral":29,"mixed":30,"critical":30},7,2,0,9,{"idea":33,"execution":35},{"positive":34,"critical":30},5,{"positive":30,"critical":30},[34,37,30,34,30,30,30,30,30,34,34,34,30,30,34,37,30,30,30,30,30,34],3,"I am not sure if this is fits the HN community, but I am posting it here if people are interested.\n\nThis is the current iteration of the car: http:\u002F\u002Fi.imgur.com\u002Fko8YBh.jpg\n\nDetails:\n\nI wrote a simple android app that streams the accelerometer data from the phone to the pi over a simple socket. The pi then uses this data to drive the DC motor and the servo motor. Tilting the phone to control the car feels very natural.\n\nIn this[0] pic you can see the wifi dongle I've used. I am using Adafruit Occidental v0.2[1] as my OS because it has support for my wifi dongle. It also makes some hardware inte",{"problem":40,"audience":9,"pricing":9,"motivation":9,"time_to_build":9,"stack":46,"openness":73,"stage":74,"team_size":75},{"value":41,"source":42,"evidence":43},"Controlling a toy car by tilting a phone","maker",[44],{"id":45},"post",[47,51,55,61,65,69],{"value":48,"source":42,"evidence":49},"Raspberry Pi",[50],{"id":45},{"value":52,"source":42,"evidence":53},"Android app",[54],{"id":45},{"value":56,"source":42,"evidence":57},"Python",[58],{"id":59,"by":10,"text":60},"4960808","I implemented a socket server in python on the raspi. I wrote a very simple android app that opened a connection to the pi and continuously streamed the x, y, and z coordinates.…",{"value":62,"source":42,"evidence":63},"Adafruit Occidentalis v0.2 OS",[64],{"id":45},{"value":66,"source":42,"evidence":67},"ServoBlaster kernel module",[68],{"id":45},{"value":70,"source":42,"evidence":71},"L293DNE H-bridge chip",[72],{"id":45},"open_source","prototype","unknown",{"praise":77,"objections":104,"requests":105,"questions":117,"alternatives":125},[78,94],{"value":79,"source":80,"evidence":81},"Cool, natural phone-tilt control","commenter",[82,86,90],{"id":83,"by":84,"text":85},"4896146","mmastrac","Fascinating project. This is definitely HN-worthy.",{"id":87,"by":88,"text":89},"4896610","adriand","Agreed, this is really cool. Can you post a video that shows you driving it while tilting your phone?",{"id":91,"by":92,"text":93},"4898408","navneetpandey","Just saw the video it's awesome idea to control bot by accelerometer.",{"value":95,"source":80,"evidence":96},"Potential product or featured project",[97,100],{"id":98,"by":88,"text":99},"4906628","That is really cool! Seems to me you're close to having a product you could sell. Nice work!",{"id":101,"by":102,"text":103},"4898286","recantha","Brilliant project. Thanks for sharing. You should send this to the people at raspberrypi.org and\u002For adafruit.com as I'm sure they would feature it. I'm going to reblog it at…",[],[106,110],{"value":107,"source":80,"evidence":108},"Show a video of driving it by tilting the phone",[109],{"id":87,"by":88,"text":89},{"value":111,"source":80,"evidence":112},"Share how the phone connects and sends accelerometer data",[113],{"id":114,"by":115,"text":116},"4956549","sirx","Hi, very interesting project! Could you tell me how you have connected the phone to the raspberry and shared the accelerometer data? Thank you very much",[118],{"value":119,"source":80,"evidence":120},"Can Android phones drive motors directly?",[121],{"id":122,"by":123,"text":124},"4897148","cookingrobot","Has anyone had success driving motors directly from an Android device?",[],{"comments":127,"answered":128,"key":129},6,4,[130,133,136],{"id":131,"text":132},"4896738","I just had my roommate film me controlling it. Here is the video: https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=tfuv-B1X3ck",{"id":134,"text":135},"4896446","The hardest problem on the mechanical side was connecting the motor to wheels. You will often need to gear down a motor before you connect it to the wheels. Without the ability…",{"id":137,"text":138},"4896745","That paper is great, thanks for sharing! It looks like I need to buy some lego technique parts.",{"commenters":140,"max_depth":128,"maker_replies":127,"first_comment_mins":141,"lifespan_hours":142},14,34,337,[144,146,148,150,151,155,157,159,161,165,167,170,173,177,179,180,181,182,183,187,190,193],[83,30,34,145,84,30],"project\u002Fpositive\u002Fidea",[87,30,37,147,88,30],"maker\u002Fneutral\u002Fnone",[131,30,30,147,10,149],1,[98,30,34,145,88,30],[152,149,30,153,154,30],"4896296","other\u002Fneutral\u002Fnone","jaryd",[134,149,30,156,10,149],"maker\u002Fneutral\u002Fexecution",[158,149,30,153,154,30],"4896464",[137,149,30,160,10,149],"commenter\u002Fneutral\u002Fnone",[162,149,30,163,164,30],"4915516","other\u002Fneutral\u002Fexecution","throwaway1979",[101,29,34,166,102,30],"maker\u002Fpositive\u002Fidea",[168,29,34,169,102,30],"4898319","project\u002Fpositive\u002Fnone",[171,37,34,145,172,30],"4898413","luanfernandes",[174,128,30,175,176,30],"4899411","other\u002Fneutral\u002Fidea","lewispollard",[178,128,30,156,10,149],"4900674",[91,34,34,145,92,30],[114,127,37,156,115,30],[59,127,30,156,10,149],[122,28,30,163,123,30],[184,185,30,160,186,30],"4896152",8,"stephengillie",[188,185,30,189,10,149],"4896215","commenter\u002Fneutral\u002Fperformance",[191,185,30,189,192,30],"4896547","VexXtreme",[194,31,34,169,195,30],"4896317","jbcolmena",[],[198,203,207,211,215,219],{"id":199,"name":200,"points":201,"category":202},"4912076","Analytics.js",326,"languages",{"id":204,"name":205,"points":206,"category":202},"4902219","strucjure",204,{"id":208,"name":209,"points":210,"category":202},"4903716","box2d-jquery",167,{"id":212,"name":213,"points":214,"category":202},"4906098","numbers.js",123,{"id":216,"name":217,"points":218,"category":202},"4885689","UXArchive",116,{"id":220,"name":221,"points":222,"category":223},"4909784","Designing Web Applications",105,"learning_science",false,"v2",{"id":227,"name":5,"line":6,"ai":224,"cat":18,"year":12,"points":13,"comments":14,"rec":25,"s":26,"top":14,"kw":228,"maker":10,"domain":229,"tier":17,"attempts":30,"strip":230,"url":-1,"mix":231,"praise":79,"objection":-1,"sub":19},4896020,[21,22,23,24],"","5305000005550053000005",[28,29,30,30],1793990888575]