“Based on the Fishino UNO board, a simple and funny project to join practicality and fun together. We are going to build a robot on wheels controlled from the “Blynk” app and we are going to take advantage of the color sensor to program for games: Freestyle, ColorColor, Run and CrazyTaxi.
Thanks to development boards like Arduino, today, if you have some familiarity with electronics and programming, you can turn once complex ideas into reality. Even the programming of applications (more commonly called apps) for a smartphone is nowadays made easier by specific programs that guide into their creation. The project proposed in these pages supports these statements, because it is about creating a robot on wheel piloted by a smartphone through Wi-Fi and an app which implementation is made easy by the availability of some free applications, thanks to which we will be able to create a catching graphical interface without having to write a single line of code for Android or iOS! We didn’t, however, stop at wirelessly commanding a small robot, but we wanted to create some electronic games, which have the robot as a protagonist, to execute on your smartphone. Thanks to the Fishino UNO board (with integrated Wi-Fi module) acting as the brain of our robot on wheels, development, and test of applications have been remarkably simplified.
The games we have set to create are described below.
Freestyle: allows to pilot your robot machine using the joypad; it’s a common driving mode for a smartphone.
ColorColor: it’s a game in which we can select the color to detect, which can be picked from red, blue and green by default; once you chose the color, you will have to detect it on the track on the ground and tap the “GO!” Button to start the analysis from the color sensor on the robot. If it corresponds to the selected color, you win.
Run: we can challenge another machine (or use just one and compare times) in a run. We start by selecting the number of checkpoints and then the reference color; at each passage on a zone of that color, the inter-time will be displayed. Once the run is over, all you have to do is compare the two times to see who is the winner.
CrazyTaxi: we have from 10 to 60 seconds to reach an established checkpoint based on the color. The number of a checkpoint can range from 3 to 10 and we can choose just one color for all the game, or randomly generate another one at each checkpoint. Time can be incremented by 10 seconds at each checkpoint found, or randomly. Who manages to find all the colors first, is the winner.
With that said, let’s see how we have made everything, starting by analyzing the hardware (the robot on wheels) and later taking care of the smartphone user interface.”