... | ... | @@ -82,7 +82,7 @@ static int calcDirectOutput(int soundLvl) |
|
|
```
|
|
|
**Negative motor power** (-100 to 100)
|
|
|
|
|
|
For this case when the motors shall be able to spin in both directions according to a linear non-negative output from the sound sensor. This yields that at a sound level of 512 the motors should be at rest with no power applied.
|
|
|
In this case the motors shall be able to spin in both directions according to a linear non-negative output from the sound sensor. This yields that at a sound level of 512 the motors should be at rest with no power applied.
|
|
|
|
|
|
The conversion fractor from previously is used again
|
|
|
|
... | ... | @@ -109,7 +109,15 @@ static int calcOutput(int soundLvl) |
|
|
|
|
|
### Results
|
|
|
|
|
|
**Excitatory** (0 to 100)
|
|
|
|
|
|
The result of the Excitatory setup is seen in the video in the references section. This video shows the initial test setup where the car is turned upside down and placed on a table. Next to the sound sensor a mobile phone is placed with the loudpeaker pointing towards the sound sensor of the lego car. The mobile phone is playing a piece of music and the louder the music gets the faster the wheels spin which is as we expected.
|
|
|
|
|
|
**Inhibitory** (0 to 100)
|
|
|
|
|
|
The result of the Excitatory setup is seen in the video in the references section. This video
|
|
|
|
|
|
**Negative motor power** (-100 to 100)
|
|
|
|
|
|
## Vehicle 2
|
|
|
|
... | ... | @@ -142,3 +150,6 @@ static int calcOutput(int soundLvl) |
|
|
[Vehicle 1 - Inhibitory] - http://youtu.be/M4v3csjxmYQ
|
|
|
[Vehicle 1 - Negative motor power] - http://youtu.be/2u8VhV_bmUE
|
|
|
|
|
|
[Vehicle 2a] - http://youtu.be/GxheAQWwvLs
|
|
|
[Vehicle 2b] - http://youtu.be/378hAFsfZr0
|
|
|
|