|
|
# Lab Notebook 6
|
|
|
|
|
|
**Date:** 15st of April 2016
|
|
|
**Date:** 15th of April 2016
|
|
|
|
|
|
**Group number:** Group 14
|
|
|
|
... | ... | @@ -10,7 +10,7 @@ Camilla M. V. Frederiksen, Ida Larsen-Ledet, Nicolai Nibe and Emil Platz |
|
|
**Activity duration:**
|
|
|
## Goal
|
|
|
|
|
|
??
|
|
|
To build, program and experiment with the Braitenberg vehicles [1].
|
|
|
|
|
|
## Plan
|
|
|
|
... | ... | @@ -20,13 +20,18 @@ In the exercises Ida will be writing the code, Nicolai will be taking notes and |
|
|
|
|
|
## Results
|
|
|
Start by rebuild by [1]
|
|
|
|
|
|
Caaaaan we build it? YES WE CAN!!! (perhaps insert picture of fancy AF Frej?)
|
|
|
|
|
|
### Vehicle 1
|
|
|
We started by writing a program to have the robot drive forward proportional to sound received by a single sound sensor. Since we have no specific range of sound values we are interested in, we map the complete range of possible raw values from the sound sensor (0 to 1023) to the range of possible motor power from full stop to full speed forward (0 to 100).
|
|
|
We started by writing a program, **SoundLover.java** to have the robot drive forward proportional to sound received by a single sound sensor. Since we have no specific range of sound values we are interested in, we map the complete range of possible raw values from the sound sensor (0 to 1023) to the range of possible motor power from full stop to full speed forward (0 to 100). We do this simply by converting the measured raw value to a percentage of possible maximum value, and using this percentage as the parameter for motor power.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Vehicle 2
|
|
|
|
|
|
|
|
|
### Vehicle 3
|
|
|
|
|
|
## Conclusion
|
... | ... | |