|
|
# Group 4
|
|
|
|
|
|
## Lab Notebook 5
|
|
|
|
|
|
**Date:** 14/04 2015.
|
|
|
**Group members participating:** Tine Hansen, Daniel Moltzen, Mads Eriksen, Lars Høeg.
|
|
|
**Activity duration:** 12 hours.
|
|
|
## Structure
|
|
|
The report is structured as follows;
|
|
|
|
|
|
Each exercise contains the following sections;
|
|
|
Goal: Where we describe the goal of the specific exercise.
|
|
|
Plan: How we are planning to fulfill the goal.
|
|
|
Results: Here we will present the findings and observations.
|
|
|
Implemented Code: The software that we used.
|
|
|
Conclusion: And lastly we will conclude on the findings in relation to the goal and plan.
|
|
|
|
|
|
Furthermore, we have an overall discussion and a conclusion at the end of the notebook, to summarise and discuss the overall findings.
|
|
|
|
|
|
## Exercise 1 - Vehicle 1 with sound sensor
|
|
|
### Goal
|
|
|
The goal with this exercise is to make a vehicle that moves faster forward the loader the environment sound is. For this exercise we will use a sound sensor to track the environmental sounds. The two motors that drives the vehicle will be set to apply the same power.
|
|
|
|
|
|
### Plan
|
|
|
The plan for this exercise is to test different ways to interpret the sound sensor values to see the different behaviors this will result in:
|
|
|
|
|
|
First we will make the robot use a motor power range between 0 and 100.
|
|
|
Afterwards, try to use values for the motor power with value between -100 and 100 to make the robot move backwards.
|
|
|
lastly we will try to subtract the sound levels from the motor power and see what effect this gives
|
|
|
|
|
|
For these test we will use music to see the effect of the different behaviors.
|
|
|
|
|
|
Try to play music and make mappings from the sound sensor to the two motors that will make the vehicle "dance" to the music, like you see in the beginning of the video in Figure 2.
|
|
|
|
|
|
### Results
|
|
|
[![image alt text](http://img.youtube.com/vi/6xmiIcyXkkI/0.jpg)](http://www.youtube.com/watch?v=6xmiIcyXkkI)
|
|
|
##### Video 1 - Car speed increases by the level of sound
|
|
|
|
|
|
As seen in the video the car moves forward when it detects a sound higher than 50 db. We have done this since the sound level that is detected by the microphone, when the room is totally quiet, differs between 10 and 20 db. We do not know exactly why this is, but could relate to a bad microphone or a too sensitive one.
|
|
|
We also notice that when the robot detects a decibel of eg. 60, the power that we have mapped to the motors are not enough for making robot drive. We did not manage to get a dynamic flow of the speed in relation to the distance of the sound source, it seemed like it only differed between three types om movement; backward, no movement, and full-power. |