Shop OBEX P1 Docs P2 Docs Learn Events
Polite ActivityBot project - audio feedback to sensor input — Parallax Forums

Polite ActivityBot project - audio feedback to sensor input

Steph LindsaySteph Lindsay Posts: 767
edited 2013-11-04 19:11 in Learn with BlocklyProp
I've made a little ActivityBot project that includes audio response to sensor feedback. It uses updated abdrive & wavplayer libraries - they are zipped with the project archive, and also distributed with updated Learn and ActivityBot library folders.
We had a little fun with making a video, too.

Polite ActivityBot project

Polite WAV files are included. However, you might have a sassy ActivityBot who needs different WAV files. So, we added a quick tutorial for making your own with the free Audacity software:

Creating Audio Files for WAV Players

P.S. The wavplayer 0.9 library fixes a known bug preventing repeated playbacks, and also reduces the clicking noise between files. The abdrive 0.5.5 update saves about 5.2K on average. Andy is working on additional code size savings for it.

Comments

  • dgatelydgately Posts: 1,629
    edited 2013-10-31 20:24
    A treat on Halloween!


    Thanks Steph!

    dgately
  • NikosGNikosG Posts: 705
    edited 2013-11-03 01:54
    Steph,

    This project is realy Fantastic !!!!

    Students can create an entire show with robots with dialogs and suits (I love the ActivityBot glasses. Very nice idea to involve in the project the use of a 3d printer!)

    One question:

    In the “Polite ActivityBot” video the S2 robot that has the headphones looks like dances following the music rhythm. Is it real? Does the S2 have a program that recognizes the sound with the microphone and it moves the wheels according the sound? Or you have program it to do these movements that simply go with the music? In other words if you change the headphone music the S2 will follow the new rhythm?

    Nikos
  • Courtney JacobsCourtney Jacobs Posts: 903
    edited 2013-11-04 14:26
    Nikos,

    The S2 in our video is using a pre-programmed set of movements, while the music was added in for effect. Thanks to the skills of our cameraman/video editor and a little bit of "movie magic", the music and the S2's movements seem to go together. As a side note to this, the ActivityBot in the video really is playing its polite sounds through its Veho speaker, no movie magic required.

    If anyone is interested in seeing another cute way you can customize the ActivityBot and Polite ActivityBot project, check out the Did You Know section at the end of the project. It has been updated to include a teaser of...KittyBot!
    (The KittyBot sounds are available in our Sound Library, along with the normal Polite ActivityBot sounds.)

    Polite ActivityBot project
  • jazzedjazzed Posts: 11,803
    edited 2013-11-04 19:11
    A great project would be to add an FFT COG to make the Propeller "listen" for the music and flash LEDs like a light organ. If you can get that running, then "a dance to the music" is just a few steps away. .... "Working at the car wash, oh-oh-oh-oooo. Toot toot, aaah, Beep beep." ....
Sign In or Register to comment.