loading

UPDATE: Arduino and iPhone code is posted!


We have been wanting to re-design our family room for quite a while. Playing music or watching a movie is incredibly cumbersome, because we have 6 remote controls, and so many systems that at least one component is usually not working. We wanted a way to simplify these aspects, while at the same time creating a nice piece of furniture that didn't dominate the room like our current set up.

Project Overview:

For starters, all the woodworking is custom and done by hand, and that alone took about 6 months to complete, working on and off over breaks and during the summer. In addition, there is a lot happening "under the hood".

We have an Arduino mounted inside one of the cabinets, which controls several infrared LEDs pointed at the sensors in our DVD player, cable box, amp, TV screen, Apple TV, and video switcher. The Arduino is connected to our home-wifi network so we can control it from our iPhones on an app that my dad wrote. This app is basically a simplified, condensed version of the 6 remotes we normally need to watch TV or a movie, or listen to music. For instance, with the simple push off a "Watch DVD" button, the iPhone-app connects to our wifi-network and tells the Arduino to flash the correct IR sequence to turn everything on, switch the TV and amp inputs to 'DVD player', and opens the disk drive on the DVD player. The app then switches to a DVD-specific control panel with controls for playing and pausing the DVD player, and volume controls for the amp.

We also listen to music throughout the house a lot, and we use the same sound system that we use for movies. So, wherever we are in the house, we can turn the amp on by choosing "Listen to iTunes" from the app main-menu, and the app will switch to the pre-existing app called "Remote" which allows us to play music from our desktop computer through the speakers in our family room via an airport express.

All of this functionality is nicely condensed into one easy-to-use app on your phone!
The hope is that this entertainment center will make it much more convenient to control entertainment in our house, while at the same time acting as a nice piece of furniture and giving us some cool mood lighting! (there are RGB LED strips mounted underneath to provide some ground effects)

Time Scale:

My dad and I have been playing around with this idea for a while, but we really began designing in fall 2012. By November 2012, we had picked a final design, and when I came home from college for winter break in late December we immediately went to our favorite hardwood supplier and picked out all of our wood. Over the following month we finished the frame assembly and glued up the table top. I had to go back to school in late January 2013, and from then until March neither of us worked on it much. Over spring break we worked for another week, got all the cabinet pieces cut, and the floor panels made. Over summer 2013 we finished the electronics, and then during the fall my dad finished up the software for the iPhone app. Overall, this took about a year to complete.

Step 1: Design

My family is very fond of shaker style furniture, with clean lines and maybe a bevel here and there. We made our kitchen table in this style, and since it sits in the next room, we figured it would be a good choice for the style of this piece. Fortunately, this style is also fairly easy to manufacture, which is good because my dad and I have not had any professional woodworking experience and kind of just make stuff up as we go. Glued mortise and tenon joints hold everything together (basically a tongue and groove design), and these joints are easily made with a mortise attachment on a drill press and a dado blade set on a table saw. 

So, the basic skeleton frame will be assembled in this fashion, with mortise and tenon joints. Plywood panels will fill in the skeleton so it actually looks like a solid piece of furniture, and this will be done by recessing the plywood into grooves cut into the adjacent frame pieces. This will all be explained more later too. We chose to use cherry because we wanted it to match the kitchen table. 


We built this to replace a much larger entertainment center, partly because the current one is way to big and obstructive. So, we decided to make this one pretty low and narrow so it doesn't take up too much space. We tweaked the dimensions in SketchUp until we were happy. As you can see, we went through several different designs before we found one we were happy with (we played around with adding some glass shelves supported by chrome tubes, but decided not to do that, partly because the table top turned out so nice that we didn't want to put anything on top of it!)




Step 2: Buying Materials

I got back from school for winter break on a friday at like 9 at night, and early the next morning my dad and I got up to buy some wood!

Whenever we need a lot of hardwood, we always love going to McBeath's Hardwood in Berkley CA. They have a fantastic selection of basically everything, from domestic stuff like maple and cherry to really exotic African rosewood like bubinga. It is a lot of fun picking through the rough cut lumber to find that perfect piece of wood. 

This place also has a great selection of veneers. We looked through all of them to find the right type of wood for the cabinet door panels, and eventually found the perfect stuff. It is called bird's eye maple, which is a type of maple that has a rare genetic defect that causes the wood to have all of these little beautify "bird's eyes". They look amazing even when the veneer is un-sanded and un-finished, so we could only imagine how awesome it would look once we sanded and finished it. The only problem is, since it's so rare, it also costs a lot... A full sheet (2x8 feet) was 400 dollars, so we opted to get two quarter sheets at 100 dollars each. We figured we could get three door panels out of each quarter sheet, so that should be sufficient.

Later on in the build we realized we had a lot of extra scrap left over, which is great because this stuff wasn't cheap! But, it sure is pretty!

So, we left McBeath's with a minivan full of cherry lumber, bird's eye maple veneer, and a couple sheets of 1/4 and 1/2 inch figured cherry plywood which we will use for the side panels, floor, and shelves, and headed back home to start the build!

Step 3: Legs

For some reason, on all the furniture my dad and I make, we always start with the legs... Im not really sure why this happens, maybe it is just a habit at this point... 

Anyways, the first step is always planing the rough lumber. We planed ours down to about 1.5 inches. Next we ripped the board down to about 2.5 inch strips. This way, we can glue two of these strips together to get a piece thats about 2.5 x 3 inches. We glued up these boards so that we could get one leg out of the short piece, and the other three legs out of the longer piece. After we glued the boards together we cut them down on a table saw, and then planed to their final dimensions of about 2.25 x 2.25 inches. Next, we used our radial arm saw to cut the legs to length. 

Once we had these legs, we started cutting the tenons for all the skirt pieces that must be attached. On each leg, there are four skirts that attach (refer to diagram in design step), so that means we had four tenons to cut per leg. However, we also want to recess plywood in between the legs on the sides of the entertainment center, so this meant cutting an extra groove down the length of each leg to fit the plywood in. Keep in mind that there is a little bit of leg that has to be groove-free because it sticks out below the bottom skirt like a foot. To make sure we didn't cut the grooves too far down on each leg, we set up a stop on our table saw and pushed our leg pieces through only up to the stop. 

The interior shelves need something to rest on, so we decided to use a simple shelf pin method, which means we need to put in holes for those shelf pins. We decided on having four holes spaced 3 inches apart for each shelf so it can be adjusted to four different heights. This meant drilling four holes in each leg.

Finally, we added a taper to the inside edge of each leg, just to make it a little more interesting and sort of continue our arch pattern for the cabinet doors. We did this with a taper jig on the table saw. 

Step 4: Side Skirts

What I'm calling the "side skirts" are basically all of the structural frame elements except the legs, and except the front bottom skirt. You'll see why I separated that specific skirt out from the others in Step 6. 

Again, the first step is planing. We planed our boards down to 3/4 inch, and we made sure to do the final planing pass on each board one after another. This ensures that the planer was set to exactly the same width for each board, therefore ensuring that the different boards are all the same width. 

Next we used chalk to sketch out rough placement of each skirt in the wood. There were also some other pieces like the 'uprights' (which you'll see later) which had to be cut from the same boards, so we chalked those in too. This chalking technique just makes sure that you actually have enough wood for all the pieces you plan to cut out of it! 

Once we had a layout of our pieces on the boards, we ripped everything to width and cross cut everything to length.

Next came pulling out the dado blade set and getting those mounted onto the table saw. A dado blade is basically a regular table saw blade but just super fat. It allows you to make a super wide cut, and take a lot of material off all at once. The dado blade is useful for this specific application because it allows you to make tenons quickly and accurately. Simply set up a block and push your piece through with a miter gauge, then rotate it onto a different side and repeat. Do this for all four sides of your piece and wallaa! You've got a tenon! Refer to the pictures for more information.






Step 5: Side Panels

Once we had the legs and side skirts made it was time to assemble the side panels. The side panels will be connected by the front and back skirts, and this creates the basic skeleton / frame of the whole piece of furniture. 

We used 1/4 inch figured cherry plywood for the paneling in the side panels, and we cut these down to length with our radial arm saw. We had to rip them to the correct width after, and we did this with the table saw. 

Once we had the paneling cut, we did a test fit with all the pieces. The paneling fits into the channels that we cut into the inside of the legs and side skirts. The channeling was a bit wide for the plywood so when we glue up we will use shims from the back to make sure there weren't any gaps on the outside (refer to picture above for more explanation on this).

There were so many different things to check during the glue up that we had to make a list for ourselves so we didn't forget to check anything. For instance, we had to make sure the whole thing was square and flat, we had to make sure the top skirt was flush with the legs, we had to check to make sure the dimension was correct from the bottom of the legs to the bottom skirt, we had to shim the paneling so there were no gaps on the outside, etc. There are just a lot of things to check! And the glue doesn't stay workable forever, so the list really helped. 


Step 6: Front Bottom Skirt

The front bottom skirt deserves its own step because it was sort of a pain in the butt to make. 

First of all, we wanted the cabinet doors to be flush with the skirt when the doors are closed, which meant we had to make the skirt thicker [to make construction easier]. So, we had to glue two boards together to make the skirt. 

However, we didn't realize we needed to do this until we had already cut out the board for the bottom skirt, so we had to cut another board the same length and glue it on the back after the fact. This wasn't ideal because it is always good to cut to final dimension after you glue so that you get nice clean lines and dont have to spend hours sanding down glue bumps or ridges between boards. But, like I said, we already had cut the skirt to final dimension. So, after we glued, we had to trim a little off, which made the final dimension of the bottom skirt a little less then intended. The overall length was still the same thankfully, but it was just a little narrower then intended. 

We also had to use the dado blades to make some wide rabbits so that the upright pieces would recess into this skirt. 

Step 7: Uprights

The two uprights are the pieces that will be mounted upright, spanning the front-top and front-bottom skirts. These will act as the separators for each cabinet 'compartment', and will be positioned so each of the three compartments are the same width. The four central cabinet doors will also mount to these pieces.

There wasn't much we had to do on these guys. The tops will be flush mounted with a butt joint to the top skirt, and the bottoms will be recessed into the bottom skirt, into those notches we cut in the last step. The only interesting feature of these pieces are the two sets of four holes on the back of each, which will be used to hold the shelf pins that support the shelves. I didn't get any pictures of drilling those holes, but we used the same set up as we did for drilling the same holes in the legs. 

Step 8: Frame Assembly

The frame assembly happened in a couple steps. The first step was the most awesome, because that was when the whole project actually sort of looked like something. In this step we glued the side panels and front and back skirts together, so we actually had a free-standing thing that looked like a shelving unit / entertainment center (sort of).

This first step was actually broken down into two sub steps, because we didn't have enough clamps to do the whole glue up at once. First we glued together the bottom half: the two front and back skirts on the bottom. We put two long pipe clamps over the bottom skirts to hold the joints in place while they dried, and we also put a clamp across the diagonal to make sure the whole thing was square. An easy way to check if something is square is to measure the two diagonals, if they are the same, it's square! So, we measured both, and then put a clamp on the longer side and cranked the clamp down until the diagonals were equal. 

We let that dry overnight, and then did the same exact thing except on the top skirts. That marked the end of the first stage of assembly!

The second assembly stage was adding in some cross-braces in-between the bottom front and back skirts to support the floor panels, and something similar in-between the top skirts to provide rigidity (because the top skirts were super thin so they moved a lot even after being glued in). 
In this second stage we also glued in the uprights. 


Step 9: Table Top


Planing these boards was really interesting because they were so thick and wide, however we got it done eventually after a lot of heavy lifting. We picked pieces with some big knots and holes in them because those features are really interesting. 

We used three boards for the table top, two ~7 inch pieces sandwiching an ~11 inch piece. The final top must be a little less than 22 inches, so this configuration will give us some extra to trim off on each side at the end. Once we figured out the arrangement we taped a big triangle across the top so that we can line up the boards easily.

Next we trimmed off both edges of each board to get a nice straight smooth surface to apply glue to. The general technique for this step takes advantage of the rough board's "true edge". All rough lumber is supposed to have a true edge, which means that edge is supposed to be more or less straight. The other edge can be as wonky as ever, but as long as you have that one relatively true edge, you can put that edge against the table saw fence, then cut off the wonky side. Then, by flipping the board around and putting the clean edge you just made up against the fence, you can cut off the relatively true edge so you have an actual true edge. Now you are left with two clean-cut edges on your previously-rough lumber. 

We used this technique for truing up the two smaller boards, but on the large 11 inch board, both sides were un-true. If this is the case, you have to fake a true edge by screwing an actual true edge to one side. Refer to the images for further explanation of this. Once the first cut is made, you unscrew this added true edge, and then cut the other side the same way as before with the normal technique. 

Once we had all three of our boards trued, we did a test clamp up to make sure all gaps in the joints closed up. We noticed that while the gaps were closed, the boards were warped enough that we had to add vertical clamps as well as horizontal clamps to hold the boards in the same plane. We devised a method of clamping the entire table top to the flat, rigid table saw bed to aid this flattening process. Using a flashlight in a dark garage to help us see cracks and openings, we decided this method actually worked. 

Once we were convinced this would work, we undid out clamps and prepared for the actual glue up. We applied Titebond III glue to both sides of each joint, and clamped everything up, making sure to wipe up excess glue drops. After a coldish night and day drying in the garage, we decided to move it inside where it was warmer to make sure the glue really did dry properly. Thanks Mom for letting us bring sawhorses into the kitchen!

After the glue dried for another day, we made the final dimension cuts on the table top. We wanted a slight bevel on the sides and front edges of the top (not the back because it will be butted up against a wall, so the edge should be straight). I used an angle gauge and the sketch up model on my laptop to transfer the correct bevel angle to our skill saw. We used a skill saw and a guide for these cuts instead of the table saw because the top is just so heavy that its easier to move the saw than the workpiece, haha. Before cutting, we applied masking tape to the top and bottom edges of the table top to prevent tear out. 

Step 10: Floor Panels

We used 1/2 inch cherry plywood for the floor panels. The idea was to cut three pieces that fit in-between each of the uprights, and then drop down into place. 

First we ripped the plywood down to width on the table saw, and then we used our radial arm saw to cross cut each piece to length. Because there are some legs and uprights that protrude into the floor space around the corners, we had to make several notches in the corners of each floor panel so they would fit. We used our bandsaw to make these corner notches. 

Step 11: Cabinet Door Frames

This step covers the making of the four side pieces for each of the six cabinet doors.

After planing the cherry boards down, we used our table saw to rip the pieces to width, and then used a stop on the radial arm saw to make sure all corresponding pieces were the same length. 

The sides of the doors will overlap over the tops and bottom pieces, so we cut a dado groove all the way down the interior sides of each of the four pieces, and then cut tenons in the ends of the top and bottom pieces. This way, the four pieces fit together with tenons, and there is also a groove all the way around the interior (the veneer panels will fit in there). 

The top piece on each door has an arc in it so that overall theres a big arc across the top of all the cabinets. Because its easier to cut the dado grooves if the edge is straight, we cut the top pieces oversize (in width), cut a deep groove, and then used the band saw to get the arc. 


Step 12: Cabinet Door Veneer Panels

In this step we attached the awesome Bird's Eye maple veneer to the back of some nice maple plywood (1/4" thick). This way we can have awesome maple showing on the front of the doors, and when you open the doors you'll see pretty cherry ply on the back.

To do this, we painted Titebond II (2) glue on the back of the veneer and on the plywood (both cut slightly oversize). After this dried, we lined up the veneer on top of the plywood (with the glue faces together), and then used a clothes iron to bond the two pieces together. We used one layer of a paper grocery bag to protect the veneer from the hot iron. 

It was then just a matter of cutting each panel to width and length. We used the radial arm saw to cut to length, and the table saw to cut to width.



Step 13: Cabinet Assembly

To make this assembly step easier and less stressful, we built a jig that would automatically make sure the door was flat, square, and would also allow us to shove shims in the back of the panel to make sure it was pushed up flush with the groves. This not only made the gluing up process easier, but also ensured that all six doors were the same, which is hard to do if you are assembling each one individually.

We used small craft paint brushes to paint glue (Titebond 2) in the groves and on the tenons, then fit everything together and placed it onto the jig. We had two clamps holding the door down to the jig, and two clamps along the top and bottom of the door to squeeze the joints together and close up the gaps. 

Step 14: Sanding

Yay sanding! We spent about 2 days sanding everything. First we used 120 grit, then 220, then 600. In many cases we had to go back over areas with 100 grit that still had burn marks, glue residue, or deep scratches, but after a couple days it was basically all up to 600 grit again. I even did a quick pass with 1500 grit on the table top to really make it glassy looking and super smooth. 

Even though this was probably the step that took the most time, it has the shortest write up. Just make sure to sand with the grain, and switch hands often so one doesn't fall off. Also, it's a good idea to wear some type of ventilator because breathing fine sawdust for two days straight probably isn't good. 

Step 15: Door Hinges

We got Blum hinges with "blue motion", meaning they ease into the closed position when you close the door (to prevent slamming the doors closed). To mount these hinges, you have to drill a ~1/2" deep hole with a 1-3/8" foresters bit in the door. Check out the photo of the 'hinge test' above to get a sense of how the hinges work.

Each of our doors needs two hinges, so that is 12 holes total. Again, to make this process easier we built a jig. We extended the bed of the drill press by screwing on a piece of plywood, and then set the fence to the correct position so the distance from the door edge was always the same for each hole. To set the fence, we used a cabinet door from our kitchen that uses the exact same hinges. Then we added 'stops' on both sides so that the vertical position of the hinges would be the same for each door. 

Before drilling holes in our doors, we drilled and installed two test doors to make sure all the placement was right and everything. (we used our oak test door and the bottom piece of our door-assembly-jig as our test doors). Check out this video that shows the two test doors in action (look for the 'blue motion'!). 



Once we were confident that the drilling jig was correct, we drilled all the holes in the actual doors. Then we put in all the hinges and marked the pilot holes for the screws that actually attach the hinges. We stopped after drilling the pilot holes, because we wanted to apply finish to everything before mounting the hinges and the doors to the rest of the entertainment center. 

Step 16: Finishing

For the past couple pieces of furniture we've made, we have used this finish called "Good Stuff". It really is good stuff, it is easy to apply, easy to sand off if you need to touch things up a bit, and it really looks great. It also dries in only four hours which is nice if you want to apply multiple coats are handle the pieces. 


Step 17: Mounting the Doors

After the finish on the doors cured for a day, we mounted the hinges in our doors. We spent so much time with choosing the hole size and lining all the holes up that mounting the hinges was a breeze, just two screws each and ta-da!


We wanted a consistent gap along the bottom of the doors, all the way across all six, so we used stacks of playing cards to set the gap on each door when we put the screws in to mount it to the frame. Each playing card is almost exactly 1 hundredth of an inch thick, so we stacked 5 to give us a gap of .05" along the bottom edge. 

Once all the doors were on, and once we set the top on, it really looked like a completed piece of furniture. My dad and I stepped back and were like "wow, that really looks pretty good...". We had been looking at all the pieces separately for months, but it wasn't till they were all assembled that it really came to life. We moved it into our family room, in front of our current entertainment center which it will be replacing, just to get a sense of what it would look like. 

Step 18: Shelves

We sort of forgot about the shelves when we were buying our wood. And, since the place we usually go (McBeath's Hardwood) is about an hour away, we went to a local hardware store and bought a 2x8 sheet of 3/4 inch finished maple plywood. This was great because we didnt have to sand and finish it (yay!), and it also came with some veneer glued on the front edge (so you can't see the layers of plywood glued together). Overall it saved us at least a day of work buying this pre-finished shelving plywood, because otherwise we would have had to cut strips of other wood to glue on the front to cover up the ply layers. 

Anyways, we needed three shelves, one per cabinet space. It was a simple matter of ripping the piece to width on the table saw, and then cross cutting to length with the radial arm saw. We also had to cut notches in the corners of the two side shelves with the band saw so they would fit in-between the legs (refer to photos). 

Step 19: Installation

At this point in the project, the entertainment center was ready to move into place. Of course it isn't dont yet, but we were eager to see how it looked in the space, and it had everything it needed to function as a "regular" entertainment center, so we moved it into place. 

The central cabinet area has enough room for all of the media equipment, which leaves us the two side cabinets for storing DVDs, extra A/V cables 

Step 20: RGB LEDs!

We ordered some RGB LED strips off of adafruit.com (the sticky-backed kind) and stuck them to the bottom of the floor panels. These will also be controlled by the onboard Arduino. 

Step 21: Arduino Hardware

In order to control all of our different media equipment (our amplifier, DVD player, cable box, TV screen, Apple TV, and video switcher) we needed an ‘on board’ Arduino mounted somewhere inside. This Arduino needs to control the IR LEDs mounted in front of each piece of media equipment, the RGB LEDs mounted in the shelf, and also must be able to communicate with the iPhone/iPad app via WiFi.


We also wanted to add some sort of feature to the Arduino so that we can see what its IP address is. The Arduino will be connected to our wireless network, so it will be given some IP address that may change if we reset the Arduino, or the power goes out, etc. Our iPhone app needs to know the IP to actually send it data, so yeah, we need to know what the IP is. We decided to hook up an LCD screen to the Arduino and have the IP displayed there. This would also allow us to post error messages and debugging statements, etc.

We’ve got a wifi shield and an LCD screen plugged into an Arduino Mega, and then just a bunch of IR and RGB LEDs plugged into digital outputs. Not very complex in terms of wiring.

The sort of complex part was building a nice display box for everything to mount to, and making everything modular enough that we could remove components in order to de-bug or replace them.

We took measurements off of all the components, and then designed a laser-cut acrylic box to house everything. 


Cool Idea for the Future:

I really want to add a ‘door detector’. This would just be a momentary button mounted near the cabinet door that is in front of the DVD player. When the door is closed the button is depressed, if its open the button is un-pressed. If we push “Watch DVD” on our iPhone app, and the door is open, the Arduino will tell the DVD player to eject the disk drive. If the door is closed, it will wait until the next time the door is opened, and then it will eject the disk drive.

Step 22: Arduino Software

There was a lot of debate on how exactly to partition the software between the Arduino and the iPhone app. But, first I’ll give some background on the scheme we are using.

The Arduino connects to our home wifi network and sets up a wireless server. The iPhone connects to that server and will send some sort of information down to the Arduino depending on user input.

The reason I say “some sort of information” is because there are really two types of commands that we can send, high level and low level. Low level commands would be different button presses on a remote, like “turn the TV on” or “turn the volume up one click on the amplifier”. High level commands are bundles of these low level functions, like “Watch DVD”. This command has to turn on the DVD player, amp, and TV, then open the DVD disk drive, then set the amp to the right input setting, then set the TV to the right input setting, it should also check to make sure the amp volume is at a reasonable level, etc. There is a lot of information and commands stuffed into “Watch DVD”. And so, the question is: do we send high level commands to the Arduino, and then the Arduino software breaks down these commands into all the separate low level commands? Or on the other hand, do we do all of the breakdown into the low level commands on the iPhone app, and send those individual low level commands down to the Arduino, which just executes them?

Another question is this. Each low level command has a ~200 digit list of numbers corresponding to a PWM code for the IR LED which is actually responsible for transmitting that information to whatever media device we are talking to. Do we store this list on the Arduino or the iPhone app? (more said about this type of signal later in this step).

The easiest and most efficient thing to do would be to store everything on the Arduino. This way, we only need to send a small amount of information over wireless, and since the Arduino does all the processing, it would be easy to control everything from a web page just like the iPhone app. (if the iPhone was sending low level commands over wireless, then the web page would have to do the same and it would be cumbersome to use).

However, the Arduino Uno only has about 32 kb of memory onboard (we were originally using an Uno before switching to Mega). There is a micro SD card reader on the wifi shield, and we were planning on using that to store some of the overflow data, but we couldn’t get it working.

The Arduino Mega has a lot more memory, around 128 kb, but we tried using it to control the IR LEDs and it was not working. We tracked down the problem to the loop in the code that generates the carrier frequency for the IR signal. Let me explain how the signal is actually generated and transmitted:

It acts a lot like an AM radio. The IR LED flashes at a certain carrier frequency (32 kHz), and then there is a square wave superimposed over that which actually carries the information. The lists we are using to store the command information look something like [300, 50, 200, 60]. This means turn on the carrier frequency for 300 milliseconds, then turn it off for 50, then turn it back on for 200, and off for 60. Each command signal is actually about 50 of these ‘on-off’ commands.

Now, to actually generate a signal like this with Arduino, you need a function that outputs the carrier frequency, and then another function that calls the carrier function at the correct time and for the correct duration. Since all of these timing issues have such high resolution, it is also necessary to call a function which tells the Arduino not to do anything else at all during this process, ensuring that the timing is very accurate. Otherwise, the signal would not be recognized by whatever device you are pointed it at, like a DVD player for instance.

Like I said, the problem we found in switching from Uno to Mega was in the carrier frequency function. This function has a couple digital write commands that actually generate the signal, but it also has a couple delays so that overall, the function executes at the right frequency. Now, a digital write command on an Uno actually takes about 3 milliseconds to execute, so you must factor this in when determining how long the delays should be. However, a digital write command on a Mega takes a bit longer, and so, when we put the Uno code on the Mega, we were generating an incorrect carrier frequency! Thanks to my dad who figured all this out.

So, with this problem fixed, we were able to switch to using a Mega. This was great because it not only gave us all the memory we needed (we hope) to store all the low level command break down and other logic right on the Arduino, but also gave us more pins to work with.

Step 23: IPhone App Development

My dad did most of the iPhone app development, because it had to be done in C and I have no idea how to use XCode or Interface Builder (those are the applications used to write and create the layout for iOS apps).

Basically, the app launches with a home screen that has the following options (buttons): Watch TV, Watch Movie, Listen to iTunes. Clicking each of these takes you to a separate control panel designed specifically for that kind of entertainment.


Step 24: Finished!

<p>This is awesome. I'm trying to learn more about woodworking and have little access to an actual shop, so I appreciate your comments on the photos describing what you are using / doing (like the belt sander). I am trying to learn the various power tools for woodworking and machining, as I do have access to a limited machine shop. it's so cool that you and your dad can do this at home! Do you go to school on the west coast too, or have you come to the dark side (east coast)? (:</p>
<p>Hey Heidi!</p><p>Thanks! Glad to know that the post has been helpful :) </p><p>I go to school near LA, so home isn't too far off. </p><p>Best of luck with the woodworking! Let me know if there's anything you've got questions about and I can do my best to help.</p>
Nice. I would be interested in obtaining the code and extra plans etc
<p>This turned out great! I heard so much about it last summer, it's nice to see it come together :)</p>
<p>Great project, thanks.</p>
<p>First of all, this is freaking awesome. Thanks for the post! Second, a question. I get the breakdown of how the IR signals ended up getting coded, but how did you figure out the specific sequence of signals needed for each command from the remotes? Did you just point the remote at an IR sensor and record the signal it would shoot out with each specific button press?</p>
<p>Yes! Thats exactly how we did it. We wrote an arduino script to recognize the specific carrier frequency and print out a list of off and on durations. I should probably include that in the write up... Thanks!</p>
<p>Hi, I am wondering how you attached the top to the frame? Is it permanently attached or does it just sit on the frame? Also, is there a back on it or did you leave that open? </p><p>I ask because I would really like to use your design as a reference for making my own. It's excellent! Thanks!</p>
<p>Great questions! I can tell you paid attention because no, the top isn't attached at all and nope, theres no back on it! Both of these 'features' make it really easy to work on, especially having the back open. We figured that if we put a back on we'd be constantly drilling through it to run wires, and it makes it much easier to do cable management when you can just slide it away from the wall and get quick access. We will probably attach the top soon though. Good luck on making your own!!</p>
<p>Awesome, I agree with you about the &quot;features.&quot; Thanks for clearing that up for me, and thanks for making such a detailed Instructable. Keep it up!</p>
<p>I'm taking a intro to iPhone app programming course (home study) </p><p><a href="http://www.ciebookstore.com/learn-to-create-ipad-and-iphone-apps-course" rel="nofollow">http://www.ciebookstore.com/learn-to-create-ipad-a...</a> and this is an awesome way to put my skills to work (both as a woodworker and programmer) thanks so much - great idea!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SO COOL. Props to you and your dad.</p>
<p>Thanks nikoala!!</p>
I'd love to see the code for the arduino and the code for the iphone app. Without it, the instructable is sort of just how to build a cabinet.
<p>Code is coming soon! Thanks for reminding me.</p>
<p>I see you attached the code. Thank you! Really great work on this project.</p>
<p>umm...WOW! This is incredible and very awesome. I mean that for the Entertainment Center and the Instructable. Very well done and nice pics too! I would be interested if if you market it what the cost would be and when I could have it! LOL Makes me wish this was in a contest so that I could vote for it. </p>
<p>Thank you so much for the complements! If you're serious about wanting to purchase the control system, send me a PM (collecting all requests there), not sure if I'll be selling them, but if I do I dont want to forget you! Thanks</p>
the code would be awesome! I'm currently using an old logitech harmony remote for my home theatre. I also have a power switching power bar to save energy. My amp is set as the master, so when it gets shut off it kills the power to the TV, xbox, appletv etc. problem I run into is the remote always tries to turn on the TV first and then the amp. and unless I buy a new remote($200), I can't change the order of switching. this could solve my problem quite cheaply. I have most of the components necessary minus the wi-fi sheild. Excellent work on this instructable!
<p>Im uploading the code now! Yeah the wifi shield is sort of expensive too, you could try an ethernet shield instead which are cheaper. Best of luck! You should send a pic when you're done :) </p>
<ol><li>8-O<li>I would love to see that Arduino code as well.<li>Any thoughts on making it web enabled so that it could be device agnostic?<li>8-O</ol>
Can you change the channel with the app also?
<p>Yes of course! When I get back from college I'm going to make a video that shows all the functionality of the phone app.</p>
<p>I'm sure you probably already knew this, but you can set your arduino to have a static IP either IN the arduino's firmware OR as a preset on the router's DHCP service. </p>
<p>I did not know this! Thanks for the tip, that will definitely lower costs if I decide to market this (no screen required).</p>
Awesome design and implementation. The side board turned out beautiful. Am really impressed with the development and the iPhone SW. Any chance you would sell this? This is exactly what I'm looking for.
<p>Thank you! </p><p>I've had several requests for selling this system, I'll talk to my dad and see if thats an option. Thanks for the interest!! (If I dont get back to you soon please send me a PM)</p>
First... Awesome! Second, what about cable management? Well documented and this shows that a well thought out design will yield a spectacular result.
<p>Thanks for reminding me about that, next time I'm home I'll take some pics of how we routed cables in the back</p>
What an artisan...you're family is blessed... Nice build
<p>Thank you for the complements!</p>
<p>Fantastic job.</p><p>Really looking forward to the Arduino hardware setup and the Arduino and iPhone code.</p><p>Well done!</p>
<p>Even though this is beyond my skills I viewed the who ible. I think the other wonderful thing about this project is this was a father-son effort.</p>
Very nicely done and documented. Reminds me of my stereo cabinet I made back in the '70's. In an apartment with only a 3/8&quot; drill and a circular saw. Used birch vineer plywood, and the cabinet fronts were wicker cane. Plans were in a Sunset magazine bought at a super market. What I really liked about it was an impressive piece of furniture, but inside were all the pieces of stereo hardware including a turntable, tape deck, etc!
Wow, really well done and incredibly well documented.
<p>All things old are new again. This reminds me of the Magnavox stereo consoles from the 1960's. Great job!</p>
<p>WOW! Simply amazing. Love the photos of the construction! Have no idea how you guys programmed the iPhone, but awesome nonetheless. The final result is so clean looking!</p>
This is a great design. Looking forward to the iPhone app and code.
Very nice!! Something to certainly strive for!
<p>Dude, this is awesome!</p>
<p>Thanks!!</p>
very well put together instructable and beautiful center.

About This Instructable

56,176views

672favorites

License:

Bio: I'm a senior at Harvey Mudd in Claremont California. This past summer I worked at Make Magazine. I love working out and eating well ... More »
More by Sam DeRose:Auto-Generated Custom Greenhouse Star Wars Projects Projects for Valentine's Day 
Add instructable to: