Posts

Week 14: Building auto mode, configuring sensor, building simulation environment

     These two weeks, we purchased light intensity sensor online and tried to connect it with Pi, but we get trouble of configuration, and the respond of command line I2cdetect -y 1 showed that there's no connection between Pi and sensor. So we then used arduino uno to test whether sensor was broken, and the result was somehow disappointing, we can't get reasonable data from sensor which meant the sensor was highly likely broken.        As a result, besides buying a new sensor, we also decided to using some random number generation method to build a simulation environment as an alternative way so that we can have some input data for our robot so that we can build and test robot's auto mode.        Because in assignment 3 we successfully interrupted the bumper reaction process, we then implemented our auto mode based on that work. Our first job is build a auto mode prototype. So we just write a function to implement that feature and a GUI button to call that function. The

Week 12: Building manual mode, figure out the problem and plan for the next couple of weeks.

      This week, we try to build the manual mode for our project. Manual mode is used when people think the iRobot is not working normally. It includes up, down, left, right command and the iRobot's direction will be under-control in manual mode. Before building that mode, we try to implement the LED lights with Arduino to check if the connection with Raspberry pi is correct. However, there was always some errors when we were comping the code and we found that the code we designed did not work, when we are building the manual mode. We checked the hardware connection first and then coding error part such as GPIO import etc.. At that point, we thought this is one of the most important parts, so we decided to ask the professors and classmates for help. Finally, we found that some of the commands are written in Capital, some of them are not in the proper format. After that, we learnt that Python cares more about case-sensitive and format in some situations. This will really help us if

Week 10:Learning iRobot

Team members: Enchun Shao and Huyunting Huang         This week, we collected our iRobot for our project. We have also learned how to assign instructions to the iRobot and then iRobot will follow the instructions such as LED display, moving correctly. Since our project is related to iRobot, we will learn more on that and start to work on our algorithm. After we are familiar with the iRobot, we will probably decide which sensor to use for our project as well.

Week 8:Introduction to our project

Team members: Enchun Shao, Huyunting Huang The robot will include a manual mode and an automatic mode and we will use iRobot, camera, detection sensor and raspberry pi to assemble the machine. We will develop an algorithm for automation mode so that the robot is able to detect some emergency situations by itself. We will choose the most appropriate detection sensor to help us detect and analyze the environment. In additional, the robot will include manual mode because we believe that there are still several emergency situations which the robot could not be detected. As a result, we will control ourselves when we consider the robot is not working as we expected. We will use raspberry pi to control the system manually and the camera will help us to view the situation. The manual mode will could be executed on a smart phone through a WIFI connection and the robot can go up, down, left, right by the control. We are able to switch between manual mode and automatic mode on the smart phon