Robot that listens then repeats drum beats made from lego NXT!
I made this robot using lego NXT. The program is written in NBC/NXC using BrickCC. A drum pattern is played by the user then after one second of silence the robot repeats the pattern played. This is achieved by using the sound sensor, when a sound loud enough is played the time in ms that the sound was registered is recorded into an array. Once the drum pattern is completed the robot then plays a beat that corresponds to the information stored in the array. If anyone wants the source code your more than welcome, just ask! (but I am self taught so it might not make for great reading! enjoy! :)