Using the modularities of the Lego NXT 2.0 kits, we programmed little bots with Python.
This is the official five-minute bot from the set, and a chassis for the different motors and sensors to be used by the robot.
Brick - the computing part of the NXT kit | |
Servo Motor - the motors used by the brick to perform actions in the physical world. It outputs differently based on speed and differing measurements of length, including time and degree. | |
Ultrasonic Sensor - like sonar, it sends out a sound higher than human perception and measures distance by how long it takes to return. Samples returned are in a range from 0 to 255. | |
Touch Sensor - senses for whether the orange tab is depressed. It returns as True if depressed and False if not. | |
Color Sensor - measures for the amount of red, blue, and green on a surface. It returns a color or the saturation of the sample. |
Monday, November 3:
The first day was mostly just an introduction to how to understand motion in Python and the robot. We made some functions:
Monday, November 10:
Today, we finally used sensors in conditionals in order to govern movement.
Wednesday, November 12:
Extending the scatterbot scripts into today, our group made two main variations that both used random movement in different ways.
Thursday, November 13:
With my work done, I spent the day making novelty programs and helping Khanh.