In this lab session we will try to create a self-balancing robot, using different sensors as input. These will include a light sensor, a color sensor, and a gyro sensor. Our experimentation and exploration is inspired by Phillippe Hurbain, Brian Bagnall, and Steve Hassenplug.
In this lab session we will try to create a self-balancing robot, using different sensors as input. These will include a light sensor, a color sensor, and a gyro sensor. Our experimentation and exploration is inspired by Phillippe Hurbain, Brian Bagnall, and Steve Hassenplug.
## Self-balancing robot with light sensor
## Self-balancing robot with light sensor
In this section, we replicate the robot from Philippe Hurbain's construction [1], in an attempt to make it balance by itself. The roboto will balance by adjusting the motor-power, based on the light sensor readings.
### Setup & Approach
### Setup & Approach
The only difference between Phillippe's and our robot is that we are using the big battery pack, where Philippe is using the AA-battery pack. This required us to change the cross-beam behind the robot very slightly. Other than that, the robots are similar.






To make it balance, we adopted Brian Bagnall's control system, [Sejway.java](http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson5.dir/Lesson5Programs/Sejway.java)[2]. Here, however, we tried out different settings and constant values. Which we will specify during our experiments.
## Choice of parameters on-the-fly
## Choice of parameters on-the-fly
...
@@ -26,8 +39,8 @@ In this lab session we will try to create a self-balancing robot, using differen
...
@@ -26,8 +39,8 @@ In this lab session we will try to create a self-balancing robot, using differen
### References
### References
* [1], The exercises of the week as well as the sample classes provided by Ole Caprani can be found here: http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson2.dir/Lesson.html