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! :)

Your rating: None Average: 4.7 (7 votes)
fritsl's picture

Nice :)What would happen if

Nice :)

What would happen if your default position for the sticks where 2/3 down, so they would not have to travel that far?

/ Frits

TheCowGod's picture

Ah, didn't see you had

Ah, didn't see you had posted a robot project, I'll copy my comment over from the web link. I like it, watching the video feels like watching someone's first tentative communication with an alien :)
fritsl's picture

YEAH - this is totally ..

YEAH - this is totally .. What was the name of that film?? Only remember the tune "Doo Duu Doo Daa Daaaa"

/ Frits

jip's picture

I think you mean "Close

I think you mean "Close Encounters of The Third Kind" :-)

A drum-playing robot is

A drum-playing robot is great - One that listens is brilliant! Are you going to experiment with letting it repeat with (random or learned) improvisations?

make it play midi files from

make it play midi files from famous drummers !! :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.