Voltlog #128 – LM338 Constant Current Regulator Circuit

Welcome to a new voltlog, today we are building a very simple constant current regulator based on the LM338 linear regulator. This is a very robust and stable classical regulator that is being manufactured by many big names like ST and TI, it has quite a high output current  rating of 5A continuous, it even comes in a TO-3 can package but today we’re going to use a TO220 which is more commonly available.

To make a constant current regulator out of this, is very simple, the datasheet gives us the circuit we need to use and we only need a low value resistor to do that plus the optional input bypassing cap which is 0.1uF. We’re going to use this formula to calculate the value of the resistor, so the output current is equal to the Vref divided by the value of the resistor.

External references:

 

Voltlog #101 – S-993A 90W Desoldering Gun

This is a short review of the S-993A 90W Desoldering Gun which was sent to me for free by banggood.com. I was planning on getting one of these for a long time and I’m happy that I finally got it, it’s very useful in repair jobs as I’m showing in the review video below.

Links for buying this desoldering gun:

Voltlog #99 – Samsung TV Power Supply Board Repair MK32P5T BN44-00213A

In this video I am repairing a power supply board from a Samsung TV. The part number for the power supply board is MK32P5T (BN44-00213A). The TV was showing the stand-by led but refused to turn on. It turns out this was a common problem with a simple fix.

Here are links to some of the tools used in this video:

Voltlog #93 – Bluetooth Receiver Weekend Update

This week I build a DIY bluetooth 4.0 audio receiver. I used the CSR8635 bluetooth module, a recycled lithium battery cell that I got out of an old laptop, a TP4056 battery charging & protection IC and a DIY PCB I made myself.

Here are links to these items if you plan to build one yourself:

Or you can just buy a ready-made bluetooth receiver.

 

PCB Assembly Service Review 7pcb.com

I wrote this article to review the pcb assembly service offered by 7pcb.com (Bittele). They offered me a free of charge, complete turn-key pcb assembly service. I will start by discussing the advantages and disadvantages of professional pcb assembly services and then I will review the quality of the actual pcb they assembled for me. So if you are only interested in the review you can skip the first part.

Advantages of professional pcb assembly

If you are thinking about doing the pcb assembly in-house at a professional level you are quickly going to realize the initial investment cost is very high. You will need a minimum of: one pick and place machine, one stencil printing machine and one reflow oven. You probably also want other related equipment for inspection work and hand soldering tools. You will also need manpower and expertise which could raise the investment cost considerably. And finally when you consider there is very little ROI from this kind of investment you will quickly decide to outsource the pcb assembly service. In most cases outsourcing the pcb assembly service to an external company should be more cost effective.

Then there is the aspect of quality; a company specialized on pcb assembly services will have the expertise and manpower to provide excellent quality. They will also invest in their development by always having the latest technology so you the customer get all the benefits from the new assembly technologies. It is likely that you will hit a equipment related limitation doing in-house assembly if you do not upgrade the equipment regularly, for example you might end-up in a situation where you cannot reliably assembly the latest BGA package for a new processor.

There is also the aspect of quality control. A reputable pcb assembly house will also have a good established quality control service which you might benefit from by not having to do the quality control in-house. Sure you might want to do an extra quality control step in-house but it’s good to know at least the pcb’s are all functioning correctly when they leave the assembly line.

Disadvantages of professional pcb assembly

  • One reason you wouldn’t want to outsource the assembly of your project is to protect intellectual property. If you are working on some top secret project or the newest idea that will revolutionize something, you might want to keep that as secret as possible so in that case you might do the pcb assembly in house.
  • There are also cases when the turnaround time of a prototype is critical so you might not afford to wait a week for your pcb to come back from a professional assembly line. In that case it might make more sense to do the assembly in house.
  • Cost is also an important reason you might not want to go with a professional pcb assembly house, especially for small businesses or hobbyists. Prices for pcb assembly services have lowered considerably in the past few years so this is less of an issue these days but still you won’t see too much individuals sending their one off hobby projects to a board assembly house.

How is the ordering process?

When working with board assembly houses they will generally start by requesting 3 things from you: the gerber files for fabricating the pcb(including the solder paste layer for creating a stencil), the component placement list and a BOM(bill of material), The pcb I used for this review was designed in eagle so I had to export the gerber files using the cam processor, next I generated the component placement list using mountsmd.ulp. I continued with generating the BOM by running bom.ulp.

I sent these files by email to someone at 7pcb.com and part of their process is to run an initial DFM (design for manufacturing) check. They detected I had in my bom an inductor that was larger in size than the actual placement I used on the PCB. Luckily they notified me about the issue and I was able to correct that but due to my mistake another day was added to the total processing time.

Another thing to consider when outsourcing work to China is their local holidays. It happened that this collaboration started right before the Chinese new year holiday. So if you are in a hurry don’t order something just before their holidays because that will add delays to the processing time. If I were to exclude the holiday, I think from start to finish they took about 10 days to assemble this board, and that includes the full service: pcb manufacturing, parts sourcing, my mistake with the inductor and the actual assembly.

Review

My design of the pcb originally included a mix of 0805 and 0603 passives but since was going to be assembled in a pick and place machine that can handle the smallest passives easily I designed to switch everything down to 0603. This way it’s small enough to easily place passives close to other components and it’s still accessible for debug & probing.

On the pcb I had a mix of smd and through hole parts and that is not desirable if you want to lower the cost. Generally speaking placing smd components is cheaper than soldering through hole parts. In my case, since this was a review, it didn’t matter because they offered me a free of charge service but you might want to optimize your design for manufacturing and include only smd components.

BOM consolidation is another aspects that might lower your cost. Instead of using separate 10K, 11K and 12K resistor, see if you can use 10K for all of those resistors. Same goes for all the passives on your board, try to use as few different values as possible because the final cost will depend on the number of different values you use.

The assembled board was packed very nice with lots of foam protection and inside an antistatic bag. Shipping was done by FedEx so it arrived very quickly.

I wanted a matte black soldermask finish and I know there are not allot of pcb houses that offer a matte black finish but it seems they work with one that does. As you can see in the picture above it looks very nice with this finish.

Component placement and alignment seems to be perfect and that is to be expected from a good quality pick and place process. I asked 7pcb.com and they said every pcb goes through the pick and place machine even if it’s a single piece that gets assembled.

The through hole components were hand soldered, that is the usual process with small volume runs. But look at the solder joints, they look perfect. The person doing this is certainly very experienced and was probably using very good tools and materials.

Regarding the solder paste and the solder wire used in the assembly, they are no-clean, low residue, lead free. The no-clean part is important, as you can see from the previous 4 images, there is very little flux residue left from the soldering process so the board doesn’t need to go through an extra cleaning step. The lead free part is important for meeting current regulations regarding the usage of hazardous substances in electronics.

Even the fine pitch components like this 64 pin LQFP microcontroller is perfectly aligned and soldered. It seems like they have a pretty good process because these joints look like top quality.

The big bluetooth module that you see missing on the board was left out because I am using one of those cheap HC-05 bluetooth modules from ebay. This kind of module cannot be sourced from a known supplier, only from ebay and grey market china and 7pcb.com do not source parts from those sources. It was either send them the part or leave it out. Sending them the part would have taken too long so I decided to leave it out and just assemble it after I receive the board.

I was curious what was the cost for assembling this board, what would it cost me to have this board assembled if I were to pay for it? They said the cost is $336, this includes all NRE and setup charges. This will reduce significantly as you order more pieces because a big part of the cost are those setup charges. To this cost you would add the BOM cost, which in my case was something like $25 on DigiKey.

Voltlog #86 – Limiting Iphone USB Charging To 500mA

It all started a few days ago when I was talking with a friend and he suggested, since we do most of our phone charging at night, why not charge them at a lower rate for increase battery life. As you may know, when you increase the charging current, charging happens faster at the expense of losing battery life over time, you get fewer battery cycles before it starts losing its capacity.

So I decided to build this small gadget, that goes between the usb output of my charger and the usb plug from my charging cable. In my case I have an Iphone and the charging current can be limited to 500mA by having a set of resistors on the USB data lines.

Links for the parts used to build the project:

Voltlog #85 – STM32 OLED T12 Soldering Station

Today we are taking a look at this soldering station which I got from Taobao (Chinese Ebay). This unit is fully contained, power supply is built-in, it works with T12 Hakko tips and it has a nice 1.3 inch OLED display. It’s powered by the STM32 microcontroller which should make it easy to hack if anyone is interested.

Here are links to the items shown in the video:

Voltlog #82 – DIY Adjustable Analog DC Electronic Load

In this episode I am building an analog adjustable dc load with parts easily obtainable from ebay and banggood. The advantage of such a dc load is that you can understand how it works, modify or repair it if necessary far easier than you would with a digital one. I was able to push mine up to 60W dissipation, but it is recommend to stay under 50W to protect the mosfet.

Here is a list with links to the parts used in this project:

Voltlog #78 – 2x25W Bluetooth 4.1 Stereo Amplifier TDA7492P

In this episode we are going to build a bluetooth speaker amplifier based on the TDA7492P class D audio amplifier coupled with a Bluetooth 4 module. We are not actually going to build the amplifier module because we can get that from China, very affordable, it only costs around $12 shipped which is way less that it would cost us to buy the bluetooth module and the TDA7492P individually not to mention the cost of fabricating a PCB of this size.

So we are actually going to use this module and build the final product with a nice enclosure and a suitable external power supply

Here are some links for the parts used to build this project:

Wiring diagram below: