Getting Started Guide

CLASS 3
56
Coding the DJ Box
Coding the DJ Box
Here are the programs you need to create.
Now run the program. If you move the infrared sensor to the left of the "C" value, you can hear the drum sounds.
Now we are going to code a program that sounds multiple drums simultaneously at A, B, D and E values. To do
this we need logical conditions. See the flowchart below..
NO
YES
Is the IR sensor value
greater than 'B' and
less than 'C'?
Play the beat
Don't do anything