In this instructable, I will explain how I've created macro lenses for my iPhone 4 by salvaging parts from old digital cameras. Why buy expensive lens attachments when they are already lying around your house? Disclaimer: I am in no way responsible for any damage you may do to your device or yourself. Follow with caution.
Step 1: Materials List
-Old Cheap Digital Camera (you can find one at a thrift store for less than $10)
-Small Precision Screwdriver
-Loctite Fun-Tak (REMOVABLE)
-Ingenuity and any other materials that result from the former.
Keep in mind that the digital camera that you get may or may not work with this instructable. Be prepared to lose a few bucks if the camera you purchase doesn't give great results.
Step 2: Disassemble the camera
After you have found the digital camera that you don't mind sacrificing, remove the battery from the camera. Then unscrew any screw that keeps you from opening the camera body. Every digital camera is different, so I cannot tell you exactly how to disassemble your camera. Just be safe and gentle as to not damage the lens. Also, don't shock yourself with any charge that may still be built up for the flash.
Step 3: Disassemble the lens assembly
We want the lenses that are in front of the optical sensor. Again, be careful and unscrew the lens assembly from the camera. For this particular camera, I found it easiest to pry it out with a flathead screwdriver. I only did this when I knew for sure I wouldn't risk damaging the lens or myself. Once it is out, discard the rest of the camera, or save it for parts for another project. Begin testing the lens with your phone. If you are not achieving a macro photo, the assembly may need to be taken apart even further. For instance, this assembly had a plastic lens and a cover/mechanism that controlled the shutter that I needed to discard.