Skip to content

TypNull/ArduinoJukebox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Jukebox

An Arduino jukebox for the buzzer

logo

A modern application that can connect to a ble arduino module and play songs trough a buzzer. Example is for an MakeBot/MBot. Start, stop, mute, next, previous, random, dance function. All songs based on https://github.com/robsoncouto/arduino-songs

Features

  • Scan devices
  • Play songs
  • Play random songs
  • Disconnect
  • Mute
  • Customisable button

How to use

  1. Download release: Install or portable version.
  2. Download and install .Net 6 Framework Here
  3. Unzip the folder and Copy the songs to your document directory.
  4. Open the application.

Here is the Home Menu: off on

Play and Shuffle songs.

Here is the Settings View. The Button in the top right corner can change the view. settings

  • Select and connect to a device
  • Change the song path

On application side:

  • Send Byte = 3: Buffer is full please wait.

On arduino side:

  • Send Byte = 200: New song will be played
  • Send Byte = 201: Play song
  • Send Byte = 202: Pause song
  • Send Byte = 203: Mute song
  • Send Byte = 204: Unmute song
  • Send Byte = 205: On Customisable
  • Send Byte = 206: Off Customisable
  • Send Byte = 206: Customisable
  • Send Byte > 100 < 180: Length of the played song
  • Send Byte < 100: Frequescy of the song
void getSerialInput() {
  while (Serial.available() > 0) {
    byte readByte = Serial.read();
    if(tempo==-1){
      tempo = readByte*2;
      continue;
    }
    switch (readByte) {
      case 200:
        clearBuffer();
        tempo = Serial.read() * 2;
        if(tempo!= -1)
        isPlaying = true;
        break;
      case 201:
        isPlaying = true;
        break;
      case 202:
        isPlaying = false;
        break;
      case 203:
        isMuted = true;
        break;
      case 204:
        isMuted = false;
        break;
      case 205:
        isDancing = true;
        break;
      case 206:
        isDancing = false;
      rgbled_7.setColor(0, 0, 0, 0);
      rgbled_7.show();
        break;
      default:
        if (savedByte == 255 && Serial.available() > 0) {
            insertInList(readByte, 254);
        } else {
          if (savedByte == 255) {
            savedByte = readByte;
          } else {
            insertInList(savedByte, readByte);
            savedByte = 255;
          }
        }

        break;
    }
    if (bufferLength >= 8) {
      Serial.print(3);
    }
  }
  proofInput();
}

License

MIT

About

Arduino play buzzer songs GUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published