User Tools

Site Tools


waveshield

Arduino met Waveshield

De basishardware bestaat uit een Arduino Duemilanove (2009) en een Waveshield van Adafruit.

Arduino Duemilanove

Waveshield

Format the SD card

While using linux you need to formmt the SD card as a regular FAT16 card. If the card is too large, use fdisk to make the first partition with a size of 400 Mb. Change the type of the partition to: 6 (FAT16)

Use the debian package “dosfstools”

find the corresponding device using: mount
format the drive with: mkfs.msdos /dev/mmcblk0p1
sudo mkdir /mnt/tmp_img
mount the SD drive separately with: sudo mount /dev/mmcblk0p1 -t msdos /mnt/tmp_img
check the listing on the SD card.

Convert the audio file

The audio file for the waveshield must have the following properties:

  • 16 bit
  • mono
  • PCM WAV

The command “sox” can convert to the desired wav format. Unfortunately only wav and ogg formats are recognized. Sox does not recognize mp3's. convert them with mpg123 or equivalent.

sox --show-progress \
    INFILE.{wav,ogg} \
    -b 16 -t wav --endian little -c 1 -r 22050 \
    OUTFILE.wav \
    polyphase

Protoshiel v5

waveshield.txt · Last modified: 2015/05/16 14:35 by 127.0.0.1