6 years ago.  This question has been closed. Reason: Question answered completely

Need some reverse engineering help

Hello all,

My first mbed project is still under way. I am trying to get Steve Ravet's Big Mouth Billy Bass project going, but I have been having a difficult time due to lack of documentation and lack of sample files. I have contacted the author and he offered to help, but that was weeks ago and I don't get any response now. I tried another fellow who had posted on the project and he offered to help, but I never heard from him again either. I dont have anymore contacts to solicit, so I am hoping someone can help me determine what the format of the "fish.txt" file is supposed to be. I have sample parameters that seem to work ok using his WAV playback library, so just getting the format of the text file should get me going again.

Import programbilly

The Big Mouth Billy Bass program

So if someone out there has the sample files or can help me decode what this program expects in /sd/fish.txt I would really appreciate it.


1 Answer

6 years ago.

Based on a quick scan of the code, I think the /sd/fish.txt file should look something like:

/sd/file1.wav /sd/file1.txt
/sd/file2.wav /sd/file2.txt
# Anything after # is ignored as comment.

You need to place the referenced .wav and .txt (movement) files on the SD card as well. I believe that the format of the movement text files are something like:

# Lines can start with # to indicate whole line is comment.
# First field is time in milliseconds when you want motion to occur.
# Second field indicates part to move.  One of body, mouth, or tail
# Third field is a duty cycle from 0 to 100.
# The following line would start moving body at 10 millisecond mark.
10 body 100
# The following would stop body movement at 1 second mark.
1000 body 0

Thanks, Adam!

I will give this a shot and see what happens.

posted by Ken Kirchner 21 Sep 2013

Looks like you are correct! I got the mouth moving. For some reason my WAV is not playing though. I will re-check my wiring since I have been testing with other wav players. I am using a mono 16-bit 40Khz WAV made with Audacity.

posted by Ken Kirchner 21 Sep 2013

Yep, looks like I had my SD card CS hooked to pin 8 instead of 13 for the previous wav player. Once I fixed that, the audio and movement are now working! Thanks again, Adam!

posted by Ken Kirchner 21 Sep 2013