Bio Robots Lab Report 3

During the lab, we firstly built the robot as the instruction manual suggest.

Unpack:

Install steering engine and supersonic control board:

Install the motor:

Install the wheels:

Install Microbit and Robotbit central control board:

Install the supersonic detector:

Finished!

Really, be careful about the screws, as each of them is specific for one purpose. Don’t confuse about them.

After that, I programmed the cat (light, motor, servo and supersonic sensor):

It has two modes: needy mode when pressed A, for which the cat will chase after you; and careless mode when pressed B, for which thee cat will turn away and ignore you when you wave at her.
Press A + B to turn off the cat.

Codes shown below:

The light part was the most difficult, as the show function must be used carefully, or the program will raise an error. For example, the show function can’t be used after the clear function.

In order to make the cat’s head turning behavior more fun, I used the random function so that the cat may turn different angles in different times. 

I also successfully made the cat move in a constrained space:

Code:

I tested for hours for it. Firstly I mistakenly connected the wires in VM pins, and I did successfully made them move forward. However I failed to make the cat spin. Secondly I noticed I had to use the pause and stop motor function to slow the program, or the cat wouldn’t be able to turn even if the supersonic detected a barrier. I assume it is because supersonic module takes time to detect and process, while the buffer for the motors are still making them going forward.  

One Reply to “Bio Robots Lab Report 3”

  1. I am very much impressed by your inspirations of the cat’s chasing after one and the tsundere (傲娇)mode. The other function of avoiding obstacles is also intriguing. I have done a similar one–my kitten could also avoid obstacles. However, the difference is that when it stops, it turns the green leds into red, shakes its head, and turns left of approximately 90 degrees. There is an added fun to it to make it seem that the kitten has personality. (Well, my codes are copied from the Internet while you cooked them all by yourself. Respect.)

Leave a Reply