Thursday, February 13, 2014

Final competition (blog #13)

After a lot of testing, it finally got to the final competition. Our robot was able to put out the fire in room 1 and room 3 on the first and second trials. And it also supported the go home function that earned some extra points. We were lucky to get to the 4th place and here is the actual competition video link..

http://www.youtube.com/watch?v=yTC9OoxM0WA&feature=youtu.be 

Me and my parter Hong..

We got the 4th place..

We were really happy about our result and proud of ourselves. There are still things that could be improved on our robot and our goal is to get a better result on the next competition in April.

Day 12

Today we built our ultrasonic sensor, which looked like that...


It is using the same idea of sona that emit sound and receive the and use the time difference to determine the distance between the sensor and the object in front of it.

The ultrasonic sensor was the last part we needed to navigate the maze, and after we finished our sensor, we started our testing of the actual maze.

Finally, we put our fan onto the robot to put out the fire. In order to power the fan(rated at 12V), we use two 9V batteries and a TIP 120 transistor.


Day 11

Today we made our line sensor and flame sensor.
The idea of the line sensor is that the sensor will emit some sort of light and if it hit on the white surface, most of the light would be reflected and the receiver on the sensor will get some higher value, whereas the black surface would absorb most of the light and the receiver would get some lower value.

Line sensor
The flame sensor is just sensing the infrared light and gives a value to the robotic program, so we can based on the value to determine if there is any fire in front of the flame sensor.

Flame sensor


We also had a mini competition that uses the line sensor and flame sensor to find the flame and stop right in front of the flame.

Day 10

In day 10, we built encoders which allows us to have more accurate turns and moving distance because we are now measuring how many ticks has the encoder been turned instead of using delay to control the movement. We still had a mini competition at the end of the class. Even though none of us finished the maze like last time, our result was so much better and we thought we could make it if we have more time to test the turns and distance.

Here is how our robot looks like with the encoder

We tried to connected the encoder wires to the arduino board

Day 9

Today we started our final project- fire fighter robot.
Our first job was to build the vexduino.

We soldered all components on the PCB board and plug that onto the arduino board.



Then, we plugged all the motors wires and battery into the board, there is also a USB port that can be used to connect to the computer for programing. We use that port and the  robotc program to control our robot.

After we have our hardware and software ready, we started a mini competition that runs in a simple maze, but none of us can complete the maze because it was so hard to control the moving distance and the turns.

Day 7

Today we learn about the LDR (light dependent resistor) and I tried to put it on my bunny.
A LDR is very similar to a pot but instead of turning the rod to change the resistance, the resistance is changed by the light it received.

The resistance is pretty low (around 200 ohms) under the normal light condition 


The resistance gets very high we I blocked the LDR with my hand, and you can see that the resistance is big enough to turn off the LED.


I tried to use the LDR to control the toy's motor moving speed.
I plug a signal wire to the arduino board to get the LDR data and write a code that changes the motor speed based on the LDR value.

Day 6

Today we learned about transistors and Darlington.
A transistor is basically a current amplifier that increase the current.
For example, the christmas tree light requires more current and the arduino board can provide, so we use a transistor to increase the current and light it up.

Using two transistor to amplify the current twice is called Darlington, which can also be achieved by using a TIP 120 transistor. An important thing to notice is that the order of base, collector, and emitter is different on a TIP 120 transistor.