How to Build the Mixed Scale Digital Readout Kit

Sunday, April 24, 2016

Last Monday I shipped the first batch of orders for the Mixed Scale DIY DRO Kit, so those of you that have placed an order have likely already received it. I know that many of the people who ordered the kits have electronics experience and won't need a step-by-step assembly instructions. With that said, I designed the kit to be very beginner-friendly, so in this post I will go over the assembly process in some detail, so someone with limited electronics experience should be able to follow it and end up with a working DRO controller.

Required Tools and Materials

Soldering iron - quite obviously, to solder the kit you will need a soldering iron. It doesn't have to be particularly powerful but should have a tip that is small enough to solder IC pins individually. If you don't already have a soldering station, I recommed Hakko FX888D or similar.

Flux core solder - I recommend Rosin core 63/37 solder wire in 0.030" diameter for through hole assembly. 63/37 stands for 63% tin, 37 % lead. This particular alloy is "eutectic": it goes from liquid to solid state almost instantaneously. Another popular alloy, 60/40 has a "plastic" stage, where it's no longer liquid, but not yet solid, and when the pin moves during this stage, solder joint can develop cracks or voids. Unless you are good at soldering, I'd avoid lead-free solders, as they are a bit more challenging to work with.

Wire cutters - after the parts are soldered, the leads need to be clipped using wire cutters. Alternatively you can pre-cut the leads to the desired length with scissors before soldering.

Lead forming tool (optional) - if you want your resistors to be straight and neat, a simple lead bending jig will make the job much easier. Otherwise a pair of needle-nose pliers or sturdy tweezers will work as well.

Soldering Tips

Soldering is one of those things that looks easy, but if not done right will make the finished product flaky and unreliable. The two biggest issues you can have are solder bridges and colder solder joints.

Solder bridges are caused by applying too much solder and not enough flux. Fortunately they are relatively easy to detect using visual inspection and/or a multimeter.

Cold solder joints are much trickier to avoid and detect. They can be caused by both too much heat, and not enough heat. In the former case the flux is burned off and/or a brittle intermetallic layer forms. The join might look reasonably well on the outside but might crack later and cause reliability issues. The latter case can be avoided by heating the lead and the pad at the same time, and then touching the solder to the lead and making sure that it flows to the pad as well, instead of applying it to the soldering iron's tip. Moreover, use a lot of flux. It will look ugly and require extra cleanup but you will be happy you did.

When soldering, heat up the pad and the lead at the same time

General Assembly Tips

Putting the DRO kit together should be pretty straightforward, but before we begin, I'd like to cover a few basics. Some are more obvious than others:

First and foremost (and this one should be pretty obvious): you will be working with a hot soldering iron and molten metal that has potential of splashing into your eyes, so wear proper eye protection and avoid touching hot things.

When bending the leads of the ceramic capacitors (small yellow axial parts) and even resistors, make sure the lead doesn't bend too close to the body. These parts are prone to stress fractures that might be difficult to detect but will eventually render the part useless. In lieu of lead bending jig, hold the lead with a tweezers or needle nose pliers next to the body and bend the protruding part.

To avoid micro cracks hold the lead with a tweezer

Electrolytic capacitors, LEDs and ICs are directional, so make sure your orientation matches the silk screen (and the pictures). If installed incorrectly, ICs are a giant pain to desolder, LEDs won't work, and capacitors will explode.

The kit uses three kinds of resistors that attached to three different strips of tape. They have different values and should not be interchanged. The values are encoded using color-coded bands on the body of the resistor. Fortunately you can identify the resistors for this kit by count - there are 17 47 K resistors, 8 5K resistors, and 5 220 Ohm resistors. They are not directional.

Resistors and capacitors come attached to paper tape. Using scissors or wire cutters, cut them off the tape leaving the leads as long enough to be easy to work with. If you've bought or made a lead forming jig, bend the leads to the correct size. Otherwise use a pair of needle nose pliers or tweezers to bend the leads as shown below. The point here is to avoid putting stress on the component body, as it might cause micro-cracks that will lead to a component failure. If you don't have needlenose pliers, a wooden ruler can be used in a pinch as shown below.

Old scissors make short work of cutting resistors off the tape

Once the leads are formed, insert the parts into their locations and slightly bend the leads outwards on the back side, which will keep the parts from falling out, etc. This way you can insert several components and then solder them together.

Bending lead out on the underside will prevent resistor from falling out

2-row headers come as a single strip and need to be cut or broken apart. The style that I ordered for the kit has a thin connection between pairs, which should make cutting them with a knife easier. It also possible to break them apart, but I found that a chance of messing one up goes up, compared to cutting with a knife.

Finally, I'm listing the components in the sequence that was most convenient for me. The idea is to go from the pars with the lowest profile to highest. This way the board can be laid relatively flat while soldering the pins on the back side.

Assembly

When laying out the board I tried to keep similar parts together as much as possible to make the assembly a bit easier and less error prone. Moreover, all resistors locations have the value indicated on the silkscreen, so hopefully there should be no confusion as to what goes where.

The only exception are the ceramic capacitors, which have to be located next to the parts for which they provide bypass path. We will install all of the resistors first, so it will be obvious where the capacitors need to go.

47 KOhm Resistors

There are 17 47KOhm resistors on the board. 16 of them are located on the left side of the board and provide virtual ground and pull-up/pull-down for the comparators. The last one is next to the MSP430 microcontroller and pulls-up the reset pin, so the chip can be re-programmed if needed.

All 47 KOhm resistors installed (17 positions)

5 KOhm Resistors

There are 8 5 KOhm resistors on the right side of the board, next to the microcontroller. They pull-up the comparator outputs to 3.3V, since LM339 is an open-drain chip.

There are 8 5 KOhm resistors (blue)

220 Ohm Resistors

There are five 220 Ohm resistors, located in the lower-left corner of the board. First three (on the left) provide current limiting for the LED. The two right-most ones are used to divide 3.3V into 1.65 V for the 1.5 scales. If the board will be used with 5V glass or magnetic DRO scales instead, these two resistors can be skipped, so the rail can be used to provide 5V to the scale Vcc pins. The most convenient way to do so is to solder a jumper as shown below.

Five 220 Ohm resistors added (bottom right)

If you intend to use the kit only with 3V scales, these two resistors can be skipped altogether.

0.1 uF Capacitors

There are 9 of these capacitors sprinkled throughout the board. Their function is to provide a bypass for high-frequency noise. As I mentioned before, it's very important to make sure that there are no cracks in the body from bending the pins. The board will function with some of the capacitors missing/broken, but will be more susceptible to ambient noise.

All 0.1 uF capacitors inserted into their places

LM339 Comparators

Comparators are the two of the shorter ICs that came with the kit. These parts are directional, so make sure that the notch on the IC is facing the top of the board, matching the outline shown on the silkscreen.

From the factory the leads are bent slightly outwards to aid automated insertion, but will not go into the holes easily. The easiest way to deal with this is to gently press the leads together with your fingers until they bend slightly.

Another thing to keep in mind is that these ICs are sensitive to electrostatic discharges and should be handled in ESD-controlled environment. This is usually impossible to do at home, so try to discharge yourself before touching the leads of an IC.

MSP430 Socket

The kit includes a socket for the microcontroller. Although it's completely up to you whether or not you want to solder the chip directly into the board, or socket it, I recommend using the socket. It might come handy later, if you decide to (or need to) replace the microcontroller.

The microcontroller is directional; the socket is not. Nevertheless, install the socket with the notch facing the top of the board (matching the silkscreen).

Don't insert the chip into the socket yet, though, since will make soldering the power jack more fiddly.

Notches on the ICs should all be pointing up

Jumper Headers

There are four 2x3 headers and one 1x4 header on the board. The kit comes with a strip of 2-row headers that needs to be cut apart into appropriately sized chunks.

Installing these headers is a bit of a pain, since they won't stay in the board, so the easiest thing to do is insert one at a time, turn the board over (while holding it in place) and solder a single pin. The board can then be turned over, and if the headers isn't straight, it can be easily straightened.

Alternatively, if you know how your board will be used, you can skip the headers altogether and use wire jumpers instead. You can refer to the "" post for jumper settings.

Tip: resistor lead clippings are just the right size for this.

Power Jack

Location of the power jack is pretty obvious (in the lower right corner of the board). Soldering it in might be a bit fiddly, since the holes are rather large and the part won't want to stay put. It might be easiest to use a piece of tape to hold the jack in place, solder one of the pins, adjust the part if needed and solder the other two pins.

Electrolytic Capacitors

There are three locations for these capacitors. The parts are directional, and will explode if installed backwards, so make sure that the light bands (negative side) are facing to the left.

Electrolytic caps and LEDs are directional

LEDs

The three LEDs are located on the bottom edge of the board. They are directional, so make sure that the tab matches the silkscreen. The order is completely up to you. I prefer Red, Yellow, Green (left-to-right). This way probe will be red, heartbeat will be yellow and power will be green.

Voltage Regulator

The voltage regulator is located next to the power jack. It should be installed with the tab facing outwards.

IMPORTANT NOTE: The higher your input power supply is, the hotter this part will get. At 13V it will give you a nasty burn quickly. I recommend keeping the input power as close to 5V as possible, or installing a heat sink. A piece of aluminum (preferably with some ribs) bolted to the tab should do the job.

Bluetooth Module

The kit comes with a HC-05 BlueTooth transceiver. The transceiver has six pins, but only four pins in the middle are used. Depending on your installation you can either clip off the unused pins and solder the module directly into the board or use jumper wires and mount it away from the board.

Only inner 4 pins are used; outer pins can be clipped off

Depending on the size of the box you've chosen, the BT module can be mounted standing up or flat. In this case I've used a pair of liers to bend the leads straight and mount the pert flat to keep the profile lower (I will be shipping this board and standing up the part is too tall for a small box), but quite obviously the layout takes more space that way.

Mounting BT module flat will keep the profile low but takes more space

First Power-Up

If everything went well, the board should be ready for the first power up. It might be a good idea to leave the MSP430 chip out initially. When the power is applied the power LED should be lit solid (assuming the LED is installed correctly). If that is not the case, unplug the board immediately and inspect it for the shorts.

If the test goes well, it's time to insert the microcontroller and configure the jumpers. For more info on the speciffic settings please refer to the "Do-it-yourself DRO Mixed Scale Controller Kit" post

Once done, power up the board agai. Fraction of a second after the power is applied, heartbeat LED will start flashing once per second and an LED on the BT module will start blinking slowly. At this point the board is ready.

Finished kit with jumpers set for 1.5V scales or calipers

Conclusion

Building the kit is fairly straightforward, but requires some soldering skills. If everything goes according to the plan, the whole process takes around an hour, give or take. As long as the components are installed correctly and have good solder joints, you should not expect any problems.

14 comments :

  1. Hi Yuriy, in the 220ohm resistor paragraph above you mention a jumper 'as shown below' for the 5v scales but i can't see it in the image. Is the image you are referring to included?

    Regards
    Mark

    Ps. I placed my order for this kit today and I'm looking forward to getting it built when it arrives.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. Hey there,
    I just finished assembling my kit and haven't been able to find, anywhere, the power connector diagram stating what size power supply jack I need (I assume 5.5X2.5) and if VCC in the center pin or GND is the center pin.

    Also, I noticed that the board markings have the tx and rx swapped compared to the bluetooth module.

    Otherwise this is a remarkably user friendly kit. Very straightforward with a lot of room for soldering the components.

    ReplyDelete
    Replies
    1. HI,
      This page: http://www.yuriystoys.com/2016/04/touchdro-mixed-scale-controller-kit.html has the info about power supply. (it's 5.5 x 2.1 mm)

      Tx and Rx are supposed to be swapped. Tx on the board goes to Rx on the module and vice verse.

      Thank you
      Yuriy


      Delete
  4. Thanks for all of this work Yurly. I can manage a soldering iron as I had a job that I suspect is much like yours but maybe you have more technicians.

    I want to use pure quadrature sensors that just output the usual 2 square waves in antiphase, via an RS422 driver with A+ A- etc but not sure if this is differential. I could cope either way on that but can't find any info on what I would need to do to the mixed signal board kit so that I could use them.

    Thanks
    John
    -

    ReplyDelete
    Replies
    1. John,
      You'd need to wire-in proper supply voltage to the scales and comparators (but not MSP430, which will let magic smoke out at anything more than 3.6V) and flash quadrature firmware into the chip. The kits is basically this http://www.yuriystoys.com/2013/10/build-instructions-for-voltage-shifter.html in a nicer package
      Unless you are on a draconian budget, I would just get the quadrature board. The kit is meant to be a cheap compromise for Chinese scales.
      Quadrature board has proper high impedance input circuitry that can handle reasonably high frequencies; noise characteristics are much better, etc.

      Regards
      Yuriy

      Delete
    2. Thanks Yurly. I think the various pages have confused me. If I have it correct now I just need to buy the quadrature board and that will work directly with a tablet. ???? Some how I gained the impression that the quadrature sensors needed an adapter and the kit and that the quadrature board wasn't stand alone.

      Best
      John
      -

      Delete
  5. Hi Yuriy
    Just finished my board and powered it on. Good solid power LED. and a once per second heartbeat LED. However, the BT LED is red and flashing rapidly, not slowly. At least much faster than the heartbeat LED. Also, what channel is the BT on? Tried to read it via a wifi analyzer app on my phone and don't see any signal. Will need to know that to get a android tablet to pair with it.

    ReplyDelete
    Replies
    1. John,
      BT LED si supposed to blink much faster while it's not paired. You will not see it via WiFi analyzer app. Those are two completely different things. Here is a video that might help you get going: https://www.youtube.com/watch?v=s4Aa1Q9zOc0
      Thank you
      Yuriy

      Delete
    2. Thanks Yuriy
      Not sure why I was thinking my wifi app would see a blue tooth signal...will use an excuse I hadn't had a snack to feed the brain cells :) :) :)

      Delete
  6. Yuriy, figured it out. BT LED flashed slower once it paired. Had to prompt it with a scan from my tablet to see the BT signal. Then tried the typical two password to make the pairing happen. Worked with 1234. Suggest adding some guidance for pairing the BT with an android tablet.

    ReplyDelete
  7. Yuriy, I received my mixed scale kit about a week ago and just started assembling it tonight. I have a small problem. I did not receive enough of the header pins and am short the 2x4 header group. How do I get these so I can complete my assembly?

    ReplyDelete
    Replies
    1. Sorry about that. Please email me your PayPal transaction ID and I will send you a few headers.
      Thank you
      Yuriy

      Delete
  8. The device works with rulers from the company Newall http://newall.com/technology/

    ReplyDelete