sound detection with a real e puck · project 1 sound detection with a real e–puck jean-baptiste...

16
Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1

Upload: others

Post on 04-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Project 1

Sound detection with a real e–puck

Jean-Baptiste RazurelGaétan Maechler

27.05.2014 1

Page 2: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Plan

1. Problematic

2. Methodology

3. Results and discussion

4. Conclusion

27.05.2014 2

Page 3: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Introduction

27.05.2014

Material 2 e-puck robots.

• One emitter

• One receiver

A robot has 3 microphones (see Figure 2) and a speaker

Goal => The explorer robot has to find the emitter

Figure 1 : e-puck robot Figure 2 : Position of

microphones

3

Page 4: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Problematic

• How does the explorer recognize the emitter robot?

• How does the robot know the direction of the sound and move towards it?

• The sound is known as a wave thus some parameters can be calculated !

27.05.2014 4

Page 5: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Problematic

27.05.2014

Figure 3: Sound wave problematic

5

Page 6: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Methodology

• Make a clear soundUsing Matlab a 500 Hz signal is created. A signal sound wave at 500Hz should be better to analyze than a voice containing many frequency. But the output is not very musical!

• Record it using microphones

27.05.2014

• Is the main frequency corresponds to

500 Hz?

• Raw signal received by the explorer

with 256 samples => some noise is

present!

Figure 4 : Raw sound

signal

6

Page 7: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Methodology

27.05.2014 7

Page 8: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Methodology

• Results of the Fourier transform

27.05.2014

Figure 5 : Amplitude versus Index of

FFT

• Check if some peaks

corresponds to the

theoretical index

• The experiences told us

that the peak is at 10 and

not 8.

8

Page 9: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Formulas used

27.05.2014 9

Page 10: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

How does it move ?

With the phase

difference we can

know which of the two

microphones hears the

sound first

=> The robot moves in

that direction

1027.05.2014

Figure 6

Page 11: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Theta values

1127.05.2014

Figure 7

Page 12: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Calculate the sound direction

1227.05.2014Figure 8

Page 13: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Dance of the e-puck

We used IR0, IR1, IR6 and

IR7

Spinning around and switching LEDs

ON

1327.05.2014

Figure 9

Page 14: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Limits

• Obstacles

• Long distance

• Noise due to open

environment

1427.05.2014

Page 15: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

Conclusion

• The e-puck reacts to the sound and reach it

• The code can be improved to make the robot movements more smooth

• Obstacle avoidance can be a further step in this project (with an analysis of the intensityof the sound)

27.05.2014 15

Page 16: Sound detection with a real e puck · Project 1 Sound detection with a real e–puck Jean-Baptiste Razurel Gaétan Maechler 27.05.2014 1. Plan 1. Problematic 2. Methodology 3. Results

References

• Generated by Doxygen 1.5.4, e-puck Reference Manual 1.0.

• X.Raemy (SWIS group EPFL), Introduction to the e-puck robot.

• http://www.e-puck.org

• http://www.mathworks.ch/ch/help/matlab/ref/fft.html

• http://fr.wikipedia.org/wiki/D%C3%A9phasage

http://www.gifetgif.com

http://www.gifgratis.net

http://www.quincyma.gov

http://jeffshore.com

1627.05.2014