Awesome! I don't see resistors with LEDs though. You could be damaging your board. At least through in a resistor in series with the LEDs. Yeah, you need MOSFET (transistors) to turn that many LEDs. Let me know if you have the next song and LED sequence. It's fun!
These things you want can be done but not easily with an arduino. Most likely the phone has a driver that runs on PC/Mac to emulate a modem when it is plugged into the USB. This driver is of course not present on arduino. You will have to know how this driver was written and get a USB host shield and implement that driver in Arduino (heavy coding is needed). If you are OK messing with linux, consider a raspberry PI computer. In case the phone just adds a generic virtual serial port, you can easily communicate with it using a raspberry PI. I don't know about sounds via that same USB but you can use speaker with the PI.
You don't have to completely understand the code to use it. But when it works, it gives you motive to learn the code.
The" #define X Y" sets up a substitution rule so the X in your code is replaced with Y. Now you know what, but why? Suppose you decide to wire pin 2 instead of pin 3 to led0, now without the led0 definition, you will have to chase down all the "3's" that mean pin 3 and replace with 2. That is difficult and prone to mistake (replaced some wrong 3 or missed a few 3). Now with the #define you just replace the #define and be done.
The forum has no provisions for uploading videos, you will have to have the video hosted elsewhere and post a link. If you upload on youtube.com and post its link here, the forum automatically makes it into a video box like on most news outlet websites.
Here is a video with some sound effect I did a while ago:
All I did was pasting the address like this:
OK, you just have to remove the https:// when posting to get the video box.
How do you get date and time as integers (or long) from your library? Give me a few lines of code that do that. My sample needs to be changed to use YOUR library calls to get date and time. Yes, as Peter said, the callback is directed to a function, not grabbing a number.
Awesome! Thanks again pYro! I just added some code to remove a \n from my POST request. I'll have to disconnect my wifi router to give my project a test. It caches unsent data to sd card when wifi is down.
Arduino pins may not be able to sink the amount of current on the back light although the back light has proper current limitation on board. Which arduino board do you use? My UNO V2 has trouble with SD card when I use the arduino wifi shield with microsd slot.