Step 7: Arduino Code

So the main things the Arduino has to interface with are: the Ethernet Shield (via Ethernet library), the LED Matrix drivers (via LEDControl library), the 20x4 LCD (via LiquidCrystal library), the 40x2 LCD (via LiquidCrystal library), the Audio system (via standard digital IO pins and analogue input) and the Button Panel (via standard digital IO pins).

It is difficult for me to explain the structure of the code without actually showing you it and explaining it through annotations, so that's what I'll do, I'll include the standard version of the code (i.e. the one I use on the table) and an annotated version.

There's also a block diagram which I hope will give a better idea of the structure of the code and the purpose of each of the functions.
cool... i loved the song and album display! <br>Also, the visualization light on the ceiling was awesome...
I can see this becoming the 2012 A-Lister must have addition to the penthouse furnishings.
Wow! Very cool!
Video when you have the chance, tables look great! Does it just tweet and play music? If so, still awesome! Now all you need is some sound reactive LEDs for the music! Maybe filling in the empty area around the electronics in the middle with an Aurora https://www.instructables.com/id/Aurora-18x18
I should get a video done later today that helps to explain the functionality of the table a little better. <br>The table has two &quot;modes&quot;, news and media, in news the LED matrix is blank and an RSS feed is shown on the green LCD and weather forecast on the blue LCD, in media mode the LED matrix reacts to the music, the blue LCD shows the current song (via Last.fm) and the green LCD is blank. <br>I hope to explain this better in a video, but it is difficult as I cannot take the table home as it has to be marked for my A level in Product Design and the Ethernet shield does not support networks that use a proxy server.
Dan - What was the final cost of the project? Excellent work by the way!
Thanks, total cost was around &Acirc;&pound;190, around &Acirc;&pound;60 for the electronics, &Acirc;&pound;75 for the glass surface and &Acirc;&pound;55 for the rest of the materials, plywood etc.
it looks like you have a dead led on your matrix in the test video
Yeah, there were about three that never lit and one that flickered occasionally, I'm not sure if it was because I burned them when soldering or they were just bad LEDs (I checked the polarity and that was fine). <br>This did really annoy me, but I couldn't see any easy way of fixing it.
Nice. When you get a video done you should add it to the intro
Thanks, and yeah I'll put it in the intro.

About This Instructable




More by DanNixon:Arduino Keyboard Learning Lights Attachment Google Play Music Internet Radio (Raspberry Pi and Arduino) Arduino Web Enabled RGB Lighting 
Add instructable to: