How can we program a robot to produce a certain sound? Let's first look at how sound is measured and then program the robot to produce sounds:

To access the full video please subscribe to FLLCasts.com
- #1138
- 08 Mar 2019
What is sound?
Anyone who is not aware of this interesting fact will find it difficult to realize it. Nevertheless, sound is vibration. This vibration moves in the air, reaching our ears but it can also move though other materials as well. For example, dolphins communicate in water and we, humans, can hear some of the sounds they make.
Have you heard that male opera signers have deep voices while female opera singers – high voices?
There are two scales for measuring sound. The sound strength is measured in decibels (db) while sound frequency is measured in Herz (Hz). Male voices vary between 85-180 Hz while female voices – between 165-255 Hz. Did you know than dolphins can produce so high-frequency sounds that humans cannot hear them?
In order to program the robot to play a sound with a specific frequency, we should use the sound block from the green palette in the Play Tone mode:
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Robotics with LEGO - Level 3.0 - Security systems
This is the fifth level of the Robotics with LEGO curriculum for students in fifth to twelfth grades.
In this level students will learn how to work with data measured by the sensors. The concept of Algorithm is introduced and the programs perform calculations without knowing the values beforehand. The programming blocks transfer data between each other via data wires. The robots are designed to address the problems of security systems. Variety of alarm systems are built and the physical principles of different security methods are considered.
- 50
- 1:03
- 213

Lesson 4 - Seismic sensor
Introduction
In the following two lessons you will be the chief prison guard. Rumor has it that a gang of cake robbers is to be moved to your prison and they are planning to escape. In order to avoid a public scandal, the Mayor of the city has decided to invest in a new security system for the prison. Your job is to preserve the good name of your prison and protect the cakes in all pastry shops in the area.
- 5
- 11
- 7
- 3d_rotation 1