Date post: | 14-Jan-2015 |
Category: |
Technology |
Upload: | javier-montaner |
View: | 550 times |
Download: | 6 times |
OSHWCON 2012 (Madrid)
Javier Montaner
@tumaku_
ArduRadio:
Playing Internet Radio with Arduino
OSHWCON 2012 (Madrid)
Agenda
Introduction
Bill of Materials
Key Learnings
Project Status & Next Steps
© Javier Montaner 2012 2
OSHWCON 2012 (Madrid)
Introduction
© Javier Montaner 2012 3
OSHWCON 2012 (Madrid)
Internet Radio on Arduino
Exploratory work to understand what can(not) be done with
Arduino and similar HW platforms
Based on commercial Arduino boards and shields:
Arduino Mega
Ethernet
MP3
NFC
Final source code will be opened through github
© Javier Montaner 2012 4
OSHWCON 2012 (Madrid)
Project Scope
Build an Arduino-based device that plays internet streaming
radio
Use simple touch user interface (NFC/RFID) to select radio
stations
Learn about open HW
Share results with the community
A similar concept has been explored by Jordi Parra (@zenona)
in its SpotifyBox project: http://postscapes.com/spotify-box
© Javier Montaner 2012 5
OSHWCON 2012 (Madrid)
Bill of Materials (BOM)
© Javier Montaner 2012 6
OSHWCON 2012 (Madrid)
Arduino Mega 2560
256 KB
54 Digital I/O Pins
Can be implemented on Arduino
UNO but memory and available
PINs start being a problem
http://arduino.cc/en/Main/ArduinoBoardMega2560
© Javier Montaner 2012 7
OSHWCON 2012 (Madrid)
Arduino Ethernet Shield
Based on Wiznet W5100
10/100 Mb
TCP/IP library
Includes micro-SD card slot
Controlled through SPI
http://arduino.cc/en/Main/ArduinoEthernetShield
© Javier Montaner 2012 8
OSHWCON 2012 (Madrid)
Sparkfun MP3 Player Shield
Based on VS1053B
Plays Ogg Vorbis/MP3/
AAC/WMA/MIDI
3.5mm stereo output jack
Includes micro SD card slot
Controlled through SPI
https://www.sparkfun.com/products/10628
© Javier Montaner 2012 9
OSHWCON 2012 (Madrid)
SeeedStudio NFC Shield
Based on NXP PN532
Support Reader, Card
emulation and Peer to Peer
PCB printed antenna
Controlled through
software SPI
http://www.seeedstudio.com/depot/nfc-shield-p-916.html
© Javier Montaner 2012 10
OSHWCON 2012 (Madrid)
Total Cost of Prototype in €
Component Price
Arduino Mega €41
Ethernet Shield €29
MP3 Shield €32
NFC Shield €24
Speaker €15
Total €141
This cost is not suitable for a commercial product but it is extremely cheap to build a
working prototype
© Javier Montaner 2012 12
OSHWCON 2012 (Madrid)
Key Learnings
© Javier Montaner 2012 14
OSHWCON 2012 (Madrid)
General
Open HW community is very active
Quality of documentation varies greatly but people are
usually helpful and reactive
Google is a great source of (hidden) information
Arduino is a learning and prototyping tool. There are
definitely more powerful and cheaper platforms but almost
any technology that you can think of has already been
integrated in/through an Arduino shield
There are other HW solutions from alternative vendors for
all the elements in the BOM
© Javier Montaner 2012 15
OSHWCON 2012 (Madrid)
Project Status & Next Steps
© Javier Montaner 2012 23
OSHWCON 2012 (Madrid)
Current Status of the Project
I have built a working and stable prototype
It plays32kbps streams from internet
It works with NDEF formatted (NFC Forum) Mifare
Ultralight tags (type 2)
I use Android application to write the content of the tags
Arduino script size is around 34kB (including all the libraries)
© Javier Montaner 2012 24
OSHWCON 2012 (Madrid)
Next Steps?
Clean up all the code and publish it in github
Replace the Ethernet shield by the new Arduino WiFi shield
and try to play streams with higher bitrates
Integrate AM/FM Radio shield
Improve the NFC library to support other types of NFC Tags
Implement Card Emulation and/or Peer-to-Peer mode in
NFC library to interact directly with an Android application
over NFC
Port the solution to an Android USB dongle (can be bought
now for less than €50)
© Javier Montaner 2012 25
OSHWCON 2012 (Madrid) © Javier Montaner 2012
26
More Info
Javier Montaner (Madrid, Spain)
@tumaku_ (twitter)