DIY mobile application mechanics: Adding wheels to your mobile app
Christian Karasiewicz 270005XS4E Visits (7444)
The day I added wheels to my mobile app became the day my app turned into a Mobile Robot Application (MRA). Since then, I have discovered the potential of processing real-world data on a device and making the system react to such data.
Do it yourself (DIY) mobile application mechanics involves having few or no resources. The scope of this blog post is to provide an orientation on how to build a responsive mobile robot app when a user has minimal resources.
Choosing a stack depends mainly on the requirements you are setting to your project. For this particular project, I decided to provide the MRA with the following functionalities:
The following stack allows for an MRA to run autonomously, reacting to environmental changes, network messages and mobile user interface (UI) interactions.
Here are three indispensable additions to make your mobile robot app perceive, sense and react.
The MRA uses an IR sensor attached to a servo motor. It moves and scans from left to right and vice versa at a 120-degree angle. It saves an array of distances, and then it computes maximum and mean values at the left and right of its “eye.” This allows the MRA to decide where to escape and move next.
Here is a video example.
You can also use the set of provided items that are ready for immediate use, which are the accelerometer, microphone, video camera and geolocalization native detection functionalities, and your app will get the best of breed on awareness.
Your app should be able to react to environmental changes.
The MRA is connected to some transistors that control the voltage sent to the directional motors. It uses two motors that transfer movement through the motor gears in order to displace forward and turn left and right. In addition, it uses an additional motor that activates a CO2 compressed air valve.
You also will have the possibility to use native mobile components such as LEDs, speakers, vibrations and social networks' application programming interfaces (APIs) in order to make your MRA inform and respond to environmental changes.
Open Sound Control (OSC) is a plat
Here is a video example.
Nowadays, with the advantage of hybrid mobile application development, people can catch and reach programming technologies rapidly and easily. In order to provide communication to your MRA, you could use a hybrid approach and the benefits of current advanced protocols such as WebSockets.
I am venturing a guess that we are going to transition into an era in which user-friendly devices, robots and droids will coexist in our environment, and, moreover, they will implement some kind of cognitive function in order to perceive and interact in our world.
Here are a few considerations when taking on the adventure of DIY mobile mechanics: