
If you want to use your smartphone to photograph tiny objects such as electronic chips, you will need a macro effect. Here is an interesting idea you can try: use the magnifying lens from a flashlight to make your own macro lens.
If you happen to have an unused flashlight, you can remove its adjustable front section and use it as the main body of your macro lens.

First, wrap a piece of wire around the front of the flashlight. The flashlight head already has a circular groove that is perfect for holding the wire in place.

Next, place a small object underneath the magnifying lens to raise it and reduce the distance between the lens and your smartphone camera. This will make focusing easier. Use hot glue to secure the lens where it connects to the flashlight head.

Here, you can use small pieces of cotton swabs to raise the lens to the right height. Apply hot glue to attach the cotton swab pieces to the inner ring.

Then, bend the wire to match the position of your smartphone camera. Cover the wire with heat-shrink tubing to prevent it from scratching your phone during use.

You can first use a notebook to simulate your smartphone and test-fit the homemade macro lens. If your phone's camera is located in the upper-left corner, the setup should look like this.

Here is what the front screen looks like.

Below are some sample photos taken with the homemade macro lens. The results are remarkably clear. The estimated magnification is around 20–30x.

Even the flash pins inside a USB flash drive are clearly visible.

The magnifying lens from the flashlight is made of resin rather than glass. Overall, the homemade macro lens offers a very good user experience.