Posts

Showing posts from April, 2018

Week 16: Final Project Video Demo

Image
If the video cannot be played, open the following link and you can see the video on YouTube. Link: https://youtu.be/fXnautUBqwA

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