Skip to content

Latest commit

 

History

History
74 lines (52 loc) · 4.22 KB

File metadata and controls

74 lines (52 loc) · 4.22 KB

SPEAKING ELECTRONICS QUEUING SYSTEM.

Speaking electronic queuing system speaks the number in the queue, it can be used to control the queue in hospitals, restaurants and other places calling people in the queue.

Project image

Credits

All credits goes to Uteh Str

What you will need.

NAME QTY
Arduino UNO board. 1
Serial MP3 Player Module 1
Micro SD Card 1
P10 LED Panel 1
LED 16 x 2 1
Breadboard 1
Male to Male and Make to Female jumper wires 30
Trimpot / variable resistor (100K) 1
Headphone / Speaker 1

Schematics

project schematics

Programming Arduino for speaking electronic queuing system

The program will require the installation of the required libraries (link at the end of the readMe), then configuration of the P10 module, LCD 16x2 configuration, seral MP3 player module configuration and DMD configuration

A brief description of the playback code for the mp3 file

This is the command to play mp3 files with specific files and folders

7E FF 06 0F 00 01 01 EFPlay the song with the directory /01/001xxx.mp3
7E FF 06 0F 00 01 02 EFPlay the song with the directory /01/002xxx.mp3

This project will use two folders inside the micro SD card 01 (intros) and 02 (numbers), the folders should be named 01 and 02 not with the given names in this repository, they are just for understanding!

In folder 01 there are two files '001 Bell' sound and '002 Number', so to play mp3 files in "01" folder with the name "01 Bell sound" the code is like this:

    sendCOMMAND(CMD_PLAY_FOLDER_FILE, 1, 1);

Button description

  1. Forward button

short press to display the next queue number. Long press to display the next queue number, the queue number will continue forward until the button is released

button forward

  1. Replay button

short press to repeat calling the queue number. Long press to return the queue number to 0

button replay

  1. Previous button

short press to display the previous queue number. Long press to display the previous queue number, the queue number will continue backward until the button is released

button replay

The EEPROM

Until this point, the queue number will return to "00" if there is loss of power, unstable power and so on.

To overcome that, the queue number data will be stored in the EEPROM. But for implementation, its not recommended using internal arduino EEPROM, use external EEPROM or Data Logger.

The demonstration video of both the code with EEPROM and without EEPROM will be shown below.

Video

Watch the video for queuing system here

Libraries

  1. Freetronics dot matrix display library
    https://github.com/freetronics/DMD

  2. TimerOne Library: Use with Freetronics dot matrix display library to configure 16bits hardware timer
    http://code.google.com/p/arduino-timerone/downloads/list

  3. LCD Monitor Library: Arduino LiquidCrystal driver based on the Hitachi HD44780
    https://github.com/adafruit/LiquidCrystal