Difference between revisions of "ECE434 Project: Dancing Fish"

From eLinux.org
Jump to: navigation, search
Line 102: Line 102:
We've included a video demoing our [http://www.youtube.com/ project] in action.
We've included a video demoing our [http://www.youtube.com/ project] in action.
We've also included our [https://www.hackster.io// hackster.io] page.
== Theory of Operation ==
== Theory of Operation ==

Revision as of 09:33, 14 November 2021

thumb‎ Embedded Linux Class by Mark A. Yoder

Team members: Eliza Romeu, Melina Ferner, Kurtis VonBargen

Grading Template

I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!

09 Executive Summary
09 Packaging
09 Installation Instructions 
09 User Instructions
09 Highlights
09 Theory of Operation
09 Work Breakdown
09 Future Work/Conclusions
09 Hackster.io
09 Demo/Poster
00 Not Late

Score:  90/100

Executive Summary

This project is making a device using the Beaglebone which can stream any chosen audio. The music will come from a specified youtube video and will be played on a wired speaker. In order to make the music being played more interactive, the device will feature a fish that moves on beat with the music controlled by a servo. Additionally, we will have a sound-activated LED Music spectrum (on two different 8x8 LED Matrices) to reflect the different tones that are being played.


10/29 Order Parts
11/4 Install necessary packages on Bone
11/6 Create an interface for led Matrices
11/7 Create an interface for servo
11/9 Play music from youtube on speaker
11/12 Create a python file for FFT of music
11/13 Combine the interfaces for the completed project
11/14 Debugging
11/17 Finish documentation


This project uses:

There are pictures attached of the packaging that we made for the device.

Installation Instructions

To install the project, ssh into your Beaglebone and follow the instructions below:

1.) Clone this github repository

bone$ git clone https://github.com/rhit-vonbarke/ece434_BigFish

2.) Navigate to the project directory and run install.sh. This only needs to be run the first time that you are running the program.

bone$ bash install.sh

3.) Run setup.sh. This needs to be run every time before you want to run the program

bone$ bash setup.sh

4.) Run the program


Once you've done the above three steps, you can proceed to the user instructions.

User Instructions

Once the program is running the terminal will prompt you for a Youtube video link. This will be the audio file the program uses so make sure it is entered incorrectly. After this the song should begin playing, the audio visualizer will start, and the fish will begin to dance. All the user needs to do at this point is sit back and enjoy the music.

After the song is finished, if the user wants to listen to a new song, all they have to do is rerun the main program and enter in another Youtube link to listen to.


We've included a video demoing our project in action.

We've also included our hackster.io page.

Theory of Operation

Give a high level overview of the structure of your software. Are you using GStreamer? Show a diagram of the pipeline. Are you running multiple tasks? Show what they do and how they interact.

Work Breakdown

All three partners worked together on most of the major tasks but below is the breakdown of team members main focuses:


  • LED Matrix Interface
  • Servo Interface
  • Speaker Interface
  • Music playing to work with Audio Processing
  • Setup and Installation Files


  • Speaker Interface
  • Documentation
  • Music playing to work with Audio Processing
  • Setup and Installation Files


  • Youtube-DL Setup
  • Fourier Transform Handling
  • Music playing to work with Audio Processing
  • Setup and Installation Files

Future Work

Some additional things that could be done with this project in the future:

  • Work to interface the program with streaming services other than Youtube (i.e. Spotify, Apple Music, Pandora, etc.)
  • Find ways to play music remotely, unfortunately, the beagle bone black doesn't support Bluetooth but Flask or Blynk would be options
  • Add more capabilities related to playing the music like pausing, playing skipping, etc.
  • Display the cover of the music video on an LCD or any other device with a screen


Our initial goals for this project were loosely set since all of our inspiration came from a viral video of a singing fish. Over time, we realized that some project goals were simply unrealistic given equipment and time. However, our overall goal was to produce a device that plays music, makes a fish dance, and makes an LED matrix react to the music in real-time. We did successfully meet our goals, but there is still some room for improvement. As mentioned in the future work section, it would be really cool to interface the program with streaming services other than Youtube and work on our current timing delay issues.

Through the course of this project, we learned a lot about the Beagle Bone, Linux capabilities, and even how to redirect group work when something goes wrong. At one point during the project, we realized that the Beagle Bone Black does not have Bluetooth capabilities. At this point in time, it was too close to the deadline to buy new parts so we had to undergo a last-minute scramble trying to find cords that would allow for functionality with the speaker and had to scratch our entire plan of interfacing with the speaker. This taught us to be adaptable and how to work quickly when learning an unfamiliar library. One of the biggest areas of learning was contributing to an existing project - YoutubeDL. Since this library already controls a lot of the features for us we had to learn to work with the inputs we were given instead of having creative reign over the whole project. We also learned how to run processes in parallel in one terminal. After, getting the speaker to function we realized that it paused the whole terminal as the song was playing so we had to research how to run processes in parallel in order for our audio processor to function at the same time.

thumb‎ Embedded Linux Class by Mark A. Yoder