Long time lurker, first time poster.
I come here seeking advice after a very long journey with many dead ends. I have extensively googled and searched this forum for answers, but it is difficult to find direct solutions given the scope of my project.
Here is what I have, and what I am trying to accomplish:
I have an Arduino Uno, an RFID/NFC shield from elecfreaks.com, an ENC28J60 Ethernet module, and an MP3 shield with SD card storage also from elecfreaks.com.
Separately, I can get all of my devices working with the Uno. When I try to put 2 or more together I run into hardware and software roadblocks.
This is what I am trying to do:
- Establish a Device ID for the arduino (if I can get this working there will be several arduinos)
- Wait for and then Read RFID Tags
- authenticate Tag & play audio file:
if RFID Tag ID = some value
then
Trigger audio to play
else
do nothing - Update MySQL table with: RFID Tag ID,Arduino's Device ID, and date/time stamp
I am attempting to have data passed from the arduino to a LAMP server using PHP and HTTP POST (or should I be using GET?).
My main difficulties are dealing with the multiple SPI devices and limited pins, (which has led me to try out a WTV-020-SD-mini that can be run independently of the arduino), and combining sketches effectively to carry out all the functions of this project. I am also having software issues with the Ethercard library for the ENC28J60 module. I am able to get DHCP IP and gateway, but I have not been able to successfully build and send a POST (or GET) to the MySQL server.
My goal with this post is to seek advice from the community to determine if what I am trying to do is feasible with a single Arduino Uno, or if I am approaching this project the wrong way. Would moving to a bigger platform like a MEGA with additional pins be the simple solution to my hardware issues? SPI can support multiple devices, but I am finding that hardware mods like cutting traces and remapping pins is necessary... Is there a better way? Also, is it feasible to combine the RFID, MP3, and Ethercard sketches to achieve the goals above?
Thank you in advance for your time
Reference research:
RFID/NFC Shield with pn532(SPI)
http://www.elecfreaks.com/wiki/index.php?title=RFID_/_NFC_Shield (works great, can read, write, etc)
Ethercard ENC28J60 (SPI)
http://nathanhein.com/2013/02/getting-arduino-online-with-an-enc28j60/ (have to use IDE 1.0 to compile)(works, get dhcp)
Audio
2 options, one is a shield with sd card using SPI, the other is a standalone audio player with sdcard:
-WTV020-SD-mini (I have 16 pin, can be autonomous, but play trigger is achieved by pulling a pin low)
https://docs.google.com/file/d/0B4p82-pNB6o7ck03ZndpYUZGOFU/edit?pli=1
control with arduino- sample project
play audio without arduino- sample project
-MP3 Shield (SPI)
http://www.elecfreaks.com/wiki/index.php?title=Freaduino_MP3_Music_Shield
MySQL with arduino
http://thegeekforge.com/index.php?/archives/4-Arduino-Ethernet,-POST-to-PHP-to-MySQL.html
Old forum post for MySQL GET using ENC28J60
ENC28J60 using HTTP GET to put data through PHP/MySQL database - Networking, Protocols, and Devices - Arduino Forum (cannot locate any "my_datafill_cb" or find where/how to build the request in that example)