Wednesday, September 1, 2010

iPhone Controlled LED Suit -- Part 2

The Controller / PCB

In the interest of time, and seeing how well my Lantronix breakout board came out on the CNC mill, I decided to CNC my own PCB for the entire suit.  I knew it would be fairly simple since most of the components are built on to the Arduino Pro Mini.  I still haven't found a decent way to design a PCB to be milled.  I use Altium for my circuit design, but this time I had to put my nerves to the test by taking the design into SolidWorks.

First, I started by drawing the overall board shape.  Then I extruded a .002" layer of copper on top of the board as a separate body.  Then I made a sketch containing all of the drilled through-holes for every component.  This took a lot of time because it involved looking up every component (luckily there weren't very many) and creating the footprint in the 2D sketch.  In the next feature I extruded away the excess copper, leaving only the rings around the holes I drilled.  This is accomplished by offsetting all of the entities in the previous sketch by a certain amount that I varied accordingly for each component.  Each piece of copper is a separate body in Solidworks at this point.


  

Next I began drawing traces.  Thankfully Solidworks lets me draw a single line, then extrude it in two directions to create a trace of the same height as the copper layer and with a thickness I choose.  Unfortunately it won't let me create multiple traces in one sketch and extrude them all at once.  So for now I am stuck drawing each trace in its own sketch and extruding them over and over again.  It was a very slow and painful process, but once I got used to it I knocked it out in a few hours.  


Most PCB design software, including my favorite one, Altium, lets you design a PCB by viewing from the top, but while drawing traces on the top or bottom layer.  Unfortunately I forgot about this when getting started with the PCB in Solidworks, but that was easily fixed with a Body Move/Copy to flip the copper to the other side without mirroring it.  Then I performed the same steps on the other side for a few more traces.  To check my sanity, I drew up the larger components and placed them to check for interference.



I chose a right-angle slider switch for the power, and screw terminals (not pictured) for attaching the wires on the right side.  I knew it would be a heavy toll for a 3.3v linear regulator powering the Lantronix module (~250mA) from approximately 12 volt supply voltage.  That is a lot of heat to burn off.  I found this awesome little 1 amp 3.3v switching regulator that is a drop-in replacement for the TO-220 style linear regulators, but it is way more efficient.

Being the impatient person I am, I didn't want to spend any more time on the design.  It was time to start milling right now!  First, all the tools were set up in the tool changer and indicated.  Then a piece of double-sided copper-clad FR4 PCB material was taped down to a 1/4" aluminum plate and clamped in the mill vise.  The first operation involved drilling the different sized holes, and then the traces were routed out with a .020" endmill.






After the traces got routed out and the operations for one side were complete, I cleaned up the burrs and the finish with a Scotchbrite pad.  With some acetone, the tape's adhesive broke down and I removed the board from the aluminum plate.  Then, using the holes that were just drilled, the aluminum plate was tapped for #4-40 screws, and I flipped the board over and mounted it back to the aluminum plate to perform the operations on the other side.  Then with a razor blade under a microscope, the excess copper was separated then peeled away from the board with pliers, leaving just the traces.



Since the Lantronix module was not cheap (around $65) I knew I wanted to make it removable in case this PCB turned into a disaster.  I had some 2mm headers from Sparkfun, but they needed a little work to fit properly.  The ends of the headers had extra material, which kept me from placing them in line with each other.  I took care of this in a few minutes on a manual mill.



I was ready to start soldering the components.  I used a DIP socket for easy Arduino removal as well.  Because the board is double-sided but the through-holes are not plated, I purposely designed some through-holes just to insert pieces of wire to transfer traces from one side to another.  Cool, everything fits!




Now it was back to Solidworks to design an enclosure.  When you have access to a FDM printer, it is fun to reminisce about all the adventures you've had with radio shack project boxes, but it's so nice to move on.  My friend Alex taught me all the tricks to plastic enclosure design in Solidworks:  Lip & Groove, Snap Hooks, and good practices in general.




And seriously, no lie, I pressed "PRINT" and it appeared a few hours later.  I had picked up a 2.4ghz antenna, and added a right-angle male header to my Arduino Mini for easy programming using the FTDI Basic Breakout.






That wraps up the controller for the most part.  I added a tactile pushbutton switch and a LAN activity LED after I took these pictures, but that is what those little holes in the top are for.  Now it's time to get on to more important things, like coding this shenanigans...

20 comments:

  1. You did an amazing job. I really wish I was this technically apt. I know how to read and follow instructions but not how to visualize and follow through with such and amazing project. I wish I could make my own. willgernand@gmail.com if you have a kit or something you want to sell. I'd pay a lot.

    ReplyDelete
  2. I would love to hear if you are selling the kit and iphone app? ivallt@hotmail.com

    ReplyDelete
  3. Incredible. This would make a superb Glastonbury outfit for me next year. Congratulations indeed. Would you be able to get together an idiots guide to building this ? - as per the other posts, i'd pay ! ds@firelanterns.co.uk Darren

    ReplyDelete
  4. Love the suit, I came across this because I had the idea to do something similar, and i found yours. I definitely have some questions about the one I want to make, dunno if you have the time to help answer them, but send me a e-mail if you can to Evoactuality@gmail.com . Thanks for putting all this information up here.

    ReplyDelete
  5. Marc,

    I'm a club DJ and want to build my own version of your LED suit (and hopefully add a few improvements of my own). However, I have ran into a few issues and could use some help from someone who has pulled off building their own successfully.

    Please email me at blucas42@gmail.com ...I look forward to hearing from you.

    ReplyDelete
  6. Would you be willing to make and sell me a board since I don't have a CNC mill handy nor solidworks! Contact me at seatra@gmail.com. Thanks.

    ReplyDelete
  7. Hi Marc,
    I would definitely be interested in buying a guide from you that would enable me to create one of these suits. I am new to Arduino and have started trying out different projects.
    I don't have the technical skill to create some of the components you describe. Have you considered manufacturing and selling some of the custom components?
    I'm definitely interested in purchasing a guide and, if available, some of the custom components.
    Thanks! ronleach@gmail.com

    ReplyDelete
  8. I work as a performer in Las vegas and i would love to utilize this technology for my act. Please contact me at midascott@yahoo.com for kit pricing.

    ReplyDelete
  9. Hi marc, i would like to make this thing for my suit : http://www.youtube.com/watch?v=1CxHxhzPxEg

    Can you give me some information about the iphone app and i would like to make an arduino board with wifi as yours. I didn't know how it works

    I would like to have some help from you to choose the board. I find on bliptronics the leds and i attempt from you some advices to choose the arduino board and wifi shield.

    Great thanks in advance for your help.

    A french user that love your work !!!!

    ReplyDelete
  10. Great tutorial! Very simple, clean, easy to follow. Thanks!circuit board

    ReplyDelete
  11. Thanks a lot for sharing all these secrets. I found above many interesting and quite new for me information, especially about Rich snippets..
    Flexible PCB

    ReplyDelete
  12. Hi,
    Im on my way to make own version of LED Suit (Bluetooth comunication betwen android phone and between two suits to sync them :)
    Can you share some source code, or at least describe algorithm of running different animations (storing them?)?
    zdzichucb@gmail.com
    I will be glad to share experience after making it ;)

    ReplyDelete
  13. MARC I need your help I am CREATING SOMETHING HUGE I can pay but we need to discuss particulars this is not for fun this is for business and you seem to be the perfect guy so shoot me an email Lamonthillhouse@Gmail.Com

    ReplyDelete
  14. Choosing a good website928bet You can be sure that it is a reliable site, protected in the event that you lose and have a chance to win easily. Than other websites

    ReplyDelete
  15. 토토사이트 Really a great post. The topic you discuss is so inspiring and motivating. Thank you for the share..

    ReplyDelete
  16. 스포츠토토 I’m new to this field and this is the most incredible post I’ve ever read about. Thanks so much for your good work.

    ReplyDelete
  17. 카지노사이트홈 Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.

    ReplyDelete
  18. 온라인카지노사이트 Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..

    ReplyDelete