Tuesday, March 15, 2016

mblock and Arduino

                           Angel Gurrola
                            Period 2
Programming my Robot 



              My role in the Robot Group Project was programming. In my eyes programming was the most difficult task I had to overcome this school year. Programming with the mblock was fairly easy because we are familiar to the language of Scratch. However, programming with c++ was like learning a new language. The easiest part in programming was understanding the commands you write to what it makes the robot do. The hardest part in programming was learning how to use the new code in the programs for the robot. I really enjoyed the process of programming but the best part was the end result, when everything ran like it should. I felt a sense of relief. For the robot I made an infrared receiver code where basically you control the robot with an infrared controller. I also made an obstacle-avoidance code where there are ultrasonic sensors on the robot pick up objects near and either turns left or right to avoid the obstacles.
This Is the c++ code in arduino for the robot for the Infrared Receiver code
This is the code of the Obstacle-Avoidance program for the robot 
Our Robot "Walter":)