{"id":864,"slug":"remote-control-via-android","title":"Remote Control Via Android","excerpt":"The motorized orange thing project is a wrap. Well, as wrapped as it will be for the time being\u0026hellip;Katie is full term, so we are working on borrowed time. I …","content":"\u003cp\u003eThe motorized orange thing project is a wrap. Well, as wrapped as it will be for the time being\u0026hellip;Katie is full term, so we are working on borrowed time. I managed to introduce remote control to the orange thing via Android and my IOIO board. I found a goofy motorized alarm clock, Clocky, on Woot a while ago. My first thought was something along the lines of \u0026rsquo;that looks like a great thing to tear apart.\u0026rsquo; The unit is designed to make a lot of noise, and drop off the nightstand when the alarm is triggered\u0026hellip;key features are its \u0026lsquo;ruggedness\u0026rsquo; and two-wheel design. Pretty slick platform for horsing around with my IOIO. Once it arrived, I began ripping it apart: \u003cimg src=\"/uploads/2011/12/clocky_testing-570x320.jpg\" alt=\"clocky\u0026rsquo;s guts\" title=\"clocky_testing\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n My focus points were fairly straight forward\u0026hellip;keep the drive train system intact, and gain control of the motor function. The stock power was via four AAA batteries, so I did some testing with my 3.3V outputs on the IOIO: \u003cimg src=\"/uploads/2011/12/clocky_breakout-570x320.jpg\" alt=\"breakout to ioio\" title=\"clocky_breakout\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n My 3.3V connections really made the unit crank. The on-board DC motors were fairly snappy\u0026hellip;looked promising. I broke out the leads from the battery holder as well, figuring that I *may be able to drive the IOIO with the 6V. That is when thing got sort of dicey\u0026hellip;I could run over a hard connection, but the current needs of the board / bluetooth setup was too great for this application. I determined that I would need to introduce some technology, which ramped up the complexity of the build by a bit. Luckily, I had a Adafruit MotorSheild collecting dust on my bench. I scrapped one of the H-Bridge chips, and mounted it on a simple test board: \u003cimg src=\"/uploads/2011/12/clocky_more_testing-570x320.jpg\" alt=\"wires and dev boards\" title=\"clocky_more_testing\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n This approach worked. DC motors are power thirsty little bastards\u0026hellip;keeping my power sources isolated was the key to getting everything running w/o issues. Basic setup became this mess: \u003cimg src=\"/uploads/2011/12/the_setup1-570x356.jpg\" alt=\"android ioio\" title=\"the_setup\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n Zip ties, electrical tape, Altoids tin, some swearing, etc. later\u0026hellip; \u003cimg src=\"/uploads/2011/12/IOIO_project_finished-570x320.jpg\" alt=\"ioio project finihed\" title=\"IOIO_project_finished\"\n  loading=\"lazy\"\n  decoding=\"async\"\n/\u003e\n \u0026hellip;weird orange thing is ready to roll. Check the video: \u003ciframe allowfullscreen=\"\" frameborder=\"0\" height=\"386\" src=\"https://www.youtube.com/embed/ZNQsiZ8WioA\" width=\"569\"\u003e\u003c/iframe\u003eDown the road, I would like to turn orange thing into a mobile mount for the phone itself. The end-goal of this whole bizarre project would be to have a web-controlled vehicle with on-board video streaming. I need to do some research and figure out how to mash around the video feed\u0026hellip;going to have to step the Java game up a few notches. That takes time, and spare time is not abundant\u0026hellip;it could happen though. I will dump this code on GitHub and throw the apk on the Android Market. Stay tuned.\u003c/p\u003e\n","date":"2011-12-18T15:40:45Z","permalink":"https://swantron.com/2011/12/18/remote-control-via-android/","link":"https://swantron.com/2011/12/18/remote-control-via-android/","path":"/2011/12/18/remote-control-via-android/","featuredImage":"/uploads/2011/12/clocky_testing-570x320.jpg","categories":[],"tags":[]}