Art and Technology are Friends

Latest

A Gatcha with PCB Panel

Recently I started panelizing my own PCB designs to speed up SMT production.

I used to ask PCB fab house to panelize my designs, but Altium Designer has a board array feature that makes panelization very simple. Also PCBWay, my go-to PCB fab accepts panelized gerbers the same way single board designs. So I have become comfortable panelizing my own designs.

This PCB was for JT Filament – the through hole design has been available as kits, but I started offering pre-assembled version as well, so I wanted to produce SMT version for that.

The panels and the stencil were produced in two days and delivered via DHL Total turnaround was only 5 days. This is crazy fast. (No rush fees paid. Note that it’s not always so quick, but sometimes you get lucky.)

Panels and stencil delivered. Oh and the holiday gift.

Panels and stencil delivered. Oh and the holiday gift.

I ran the first batch of 4 panels as a test. Stenciling, pick & place, and reflow went without a hitch. I was very happy.

Stencil and the PCB Panels

Stencil and the PCB Panels

 

Using low temperature paste for reflow - to protect the filament LEDs.

Using low temperature paste for reflow – to protect the filament LEDs.

Assembled and reflowed panels

Assembled and reflowed panels

After testing each circuit on the panels, I went on to break them apart… That’s when it hit me – those V-scores are not snapping like I expected. After trying out some forceful ways to break the panels and only getting two boards successfully separated, I started to panic.

I talked to the support person at PCBWay and realized that my panelization had two problems;

  1. The boards were too close together (the support between the V-score lines needed wider).
  2. The inner cutouts left only thin strips next to the V-score line. This part can break or twisted during the depaneling.

#2 seemed to be the major issue, and since I can’t change the board design itself, I had to change the panelization. I decided to use tab-route instead of V-scoring. Which means I will have to file away the mouse bite residue after depanelization. Oh well…

I am now waiting for the delivery of the new panels (while keeping my fingers crossed). Will post the result soon.

 

Here’s how I do my SMD PCB assembly

I design a lot of PCBs, and assemble most of them myself. Small quantity PCB fabrication services have become so popular and abundant, I take full advantage of them.

Recently I use PCBWay a lot. Their pricing is close to the lowest (sometimes is the lowest), but the quality is still quite good. My favorite part of their service is that they offer different solder mask colors without extra charge. I don’t like green PCBs so this is a big plus!

For small boards for prototypes, batch based PCB service such as OSHPark still wins, as the shipping cost is much lower than from China. I use OSHPark for boards up to 2 sq inches, and PCBWay for larger.

Oh and PCBWay (and some other Chinese PCB fabs) offer stainless stencil for a very reasonable price. I can usually add one for $10 and it is very nice to receive PCBs and the stencil together.

Here are the photos from my typical PCB assembly using the nice stencil.

Step 1: Gather All Materials

Step 1: Gather All Materials

Clear your work area and gather all components, material, and tools. Preparing the organized BOM printed helps to reduce errors.

Step 2: Frame the PCB and align the stencil

Frame the PCB and align the stencil

I use squares made of fiberglass to secure the PCB to the desk. Then overlay and align the stencil on top, and secure it with a piece of masking tape.

View from the top

Compared to Polyamide (orange plastic film) stencils, stainless stencils are easier to align to the PCB. The pads kind of “snap” into place.

Step 3: Squeegee time

Ready to stencil

Now it’s time to spread some solder paste onto the PCB. Use plenty of paste and pull the squeegee at a steady speed.

Here the stainless stencil really shines, as the paste spread very smoothly without effort.

Solder paste printed

(Ok, I could’ve done a better job, but…)

Step 4: Ready to Pick & Place

Solder paste printed

Now the PCB has solder paste beautifully printed on, I’d get busy placing components.

Step 5: Ready to Reflow

Ready to reflow
Here the boards have all the components placed and ready to reflow. Sorry I forgot to take photos during the pick & place process.

I use a small reflow oven to reflow PCBs.

 

 

Pocket High Voltage Generator Upgrade

Upgraded Pocket HV Generator Open Output

HV Generator open output voltage – limited internally to under 200V. The red LED lit up to indicate the voltage limit has reached.

The Pocket High Voltage Generator that I made a few weeks ago proved to be a very handy tool. I have been testing Zener diodes very often since I use many Zeners in 12V to 91V range.

However I wanted to give it a bit more power so that I can test Nixie tubes clearly – the previous design can only give less than 0.5 mA through most Nixie tubes, some digits don’t lit up completely.

I made some upgrades to the components to give it a modest 2 – 5 mA (depending on the voltage) output. While still keeping the same form factor.

Pocket HV Generator rev1A schematics

Pocket HV upgrade PCBA

Upgraded Pocket HV Generator Construction

Upgraded HV Generator can comfortably drive Nixie tubes at 1 - 2 mA of current.

Upgraded HV Generator can comfortably drive Nixie tubes at 1 – 2 mA of current.

Now this circuit has enough oomph to shock you if you accidentally touch the output! Not the dangerous level, but it IS shocking. Perhaps one can use this as an electric Jack-in-the-box…

I’m sharing the PCB design of this project. Which can be purchased or downloaded via OSH Park.

Order from OSH Park

A60 Source Code Published

A60 Front View

After receiving many requests, I finally decided to publish/share the firmware source code of A60.

I was put off by the cheap clone made available, but I now think there can be something good in sharing the firmware, so that others might learn something from my code – not that my coding skill is that good, but the way you can use a simple MCU like a PIC24Fxx to directly control the individual brightness of 180 LEDs (60 x (R+G+B)) is pretty cool, because you can same money and space by not using PWM controller ICs.

You can find the code here: https://github.com/theledartist/A60

 

Pocket High Voltage Generator Quick Build

Pocket HV Generator

- There’s an update to this post, including PCB design files. -

There are times you find yourself looking for a relatively high voltage (100V to 200V often in my case) but low current DC power supply. I have zener diodes that are higher than 30V, which makes the lab supply useless, and filament LEDs with forward voltage over 60V. When I need to test them quickly, I used to hook up a simple rectifier circuit to a variable AC power supply (nothing more than a slidac with isolation transformer). While this gets job done, the setup is capable of supplying much too high current (1A or more), so I was always very nervous and extra careful in handling the circuit. All I need is a little HV generator that gives me around 200V DC and only capable of supplying a milliamp or less. Realizing that I do have such design available – one of the Nixie supply circuit – I just decided to put one together to use.

Pocket HV Generator schematics

Quick & dirty build of the tool.

Quick & dirty build of the tool.

A single AA battery seems to be enough to generate over 200V on the output with no load. But the output quickly lowers when you draw 0.4mA. So it feels pretty safe to handle this casually, and I can only feel a bit of tingling, not electric shock when I touch the output terminals. The tool proved to be quite handy and useful in testing variety of things:

  • Zener diodes (zener voltage)
  • Switching diodes (reverse breakdown voltage)
  • Filament LEDs (forward voltage)
  • Regular LEDs (forward voltage – yes it’s ok to use this tool, since it’ll only give less than 1mA even at 2-3V)
  • BJTs (breakdown voltages)
  • Neon & Nixie tubes (not very bright, but you can tell if one works or not)
Pocket HV Generator testing a zener diode

Pocket HV Generator testing a zener diode

Pocket HV Generator testing a Nixie tube

Pocket HV Generator testing a Nixie tube

This is one of the most useful tools that I’ve made. And it only took a couple of hours to put it together.

Mini Headphone Amp /w Bass Boost

Mini HP Amp

Added a new project to Instructables on headphone amp. This is something that I have made to improve my music listening experience during my subway commute.

- See the instructable

 

Variations on Nixie Power Supply Design

Since I started tinkering with Nixie and other Neon tubes, I found the need for simple (read: inexpensive) high voltage power supply capable of generating over 170V from 5V DC.

After a bit of research I found that most of the high voltage power supply designs use boost converter driven by a PWM controller IC such as MC34063, with a high voltage MOSFET switching an inductor. (Here’s an example of the design.)
Those designs looked a bit overkill to me, so I started designing my own from scratch.

Since I’m familiar with transistor based blocking oscillator circuit to boost voltage (i.e. Joule Thief), I wanted to see if I can use a similar circuit. The switching transistor has to withstand the output voltage of 180V so I picked some high voltage transistors and experimented. Turned out that typical high voltage transistors (C-E breakdown of more than 200V) were too wimpy for the purpose, and the simple two transistor circuit that I was using was not capable of very high duty cycle demanded by high input/output voltage ratio (over 90%).

One way to reduce requirement for the boost converter is to add voltage multiplier at the output. I added a 3 stage voltage multiplier to a circuit using pretty ordinary (inexpensive) transistors. This circuit was able to provide required voltage (about 170V) and up to around 3 to 4mA of driving current to medium sized Nixie like IN-12.

After building a couple of prototype Nixie clocks using this circuit, I found a very nice transistor capable of handling 100V and 1A current.

With this new transistor, I can now reduce the voltage multiplier stage to only one, since the boost circuit itself can produce up to 100V (ok, with safety margin, more like 90V). This circuit outperformed the prior version, producing about 8mA at 170V.

Super simple HVPS using only two transistors. 180V output capable.

Simple two transistor HVPS on a Nixie clock controller PCBA. (Inside yellow rectangle – fits in 12mm x 32mm)

While I was happy with this design – especially the size and cost – and built a couple of Nixie clocks and IN-13 Neon indicator tube projects with it, I still wanted to make it better (mostly wanted more power).

If I can find a transistor capable of withstanding over 200V with a reasonably low loss, I can forgo the voltage multiplier. However the only options that I can find were MOSFETs.

After checking the prices of high voltage MOSFETs such as IRF740, I concluded that it can be more cost effective if I can make it work, since I’ll be removing two diodes and capacitors from the voltage multiplier.

After a bit of experimentation, I got it to work! Here’s the MOSFET based circuit. Note that this design needs at least 9V of input voltage to work (due to the MOSFETs gate voltage). So for the 5V powered projects, I’d still use BJT based design.

Super simple HVPS using only two transistors. 240V output capable with 12V input.

This MOSFET based design is capable of delivering at least 50mA at 200V.

Nixie Clocks – Early Designs

Nixie Clock with Arduino
I got my first Nixie tubes in early 2016 and started experimenting. I didn’t know anything about then at the time, but quickly realized that they were pretty simple devices to use.

Only part that needed developing was the high voltage power supply. I did not want to use mains AC as the power source, and ideally wanted to use 5V DC so that the clock can be powered from USB.

After a bit of research I found that most of the high voltage power supply designs use boost converter driven by a PWM controller IC such as MC34063. A large MOSFET switching a good size inductor. Those designs looked a bit overkill to me, so I started designing my own from scratch.

Since I’m familiar with transistor based blocking oscillator circuit to boost voltage, I wanted to see if I can use similar circuit. The switching transistor has to withstand the output voltage of 180V so I picked some high voltage transistors and experimented. Turned out that typical high voltage transistors (C-E breakdown of more than 200V) were too wimpy for the purpose, and the simple two transistor circuit that I was using was not capable of very high duty cycle demanded by high input/output voltage ratio (I’d estimate close to 99%).

One way to reduce requirement for the boost converter is to add voltage multiplier at the output. I added a 3 stage Cockcroft–Walton multiplier to a circuit using pretty ordinary (inexpensive) transistors. This circuit was able to provide required voltage and up to around 3 to 4 mA of driving current to medium sized Nixie like IN-12.

While this power supply was not quite powerful enough for larger Nixie tubes, I went ahead and designed a clock circuit to get my feet wet.

Nixieduino-rev1-schematics
First design was a 4 digit clock using ATMEGA328 – I wanted to make the software easy to develop, so I loaded Arduino boot-loader. I also wanted to use the clock as a multipurpose numerical display so I added a V-USB port.

Nixieduino rev.1
This prototype had some stupid bugs, but the basic functions such as multiplexing worked. I made a revision of this prototype right after.
Second Nixie clock prototype
Nixieduino rev2 schematics
Here I experimented with a tapped inductor to effectively double the boost converter output voltage and do away with voltage doubler instead of tripler.

Are Nixie Tubes cool again?

Nixie clock prototypes
I’ve been playing/designing with Nixie tubes for some time now. I found Nixies very fascinating as the numbers inside them glow just magically.

There are many Nixie Clock designs available on the net. They are usually two types; AC main powered clock without MCUs, or low voltage DC powered with MCUs. I prefer low voltage variety because of the safety reasons, as I like exposed PCBAs.

All of the low voltage designs have some kind of high voltage (180V typical) generation circuit – and I noticed that all of the designs that I see use a pretty hefty MOSFET driven by a PWM controller IC. Somewhat complex and not so small. I kept thinking – there has to be a simpler solution.

I’m sure many people reading this are familiar with Joule Thief circuit. It’s a simple blocking oscillator based boost converter. I have done some work with two transistor variation of Joule Thief extensively, and thought I should be able to use that circuit for Nixie power supply.

Looking at the basic circuit I realize that the output voltage is limited by the breakdown voltage (Vceo) of the switching transistor. So I tried testing with high voltage capable transistors. The result was not so good – you can get the voltage, but could not deliver the current Nixies needed.

So I decided to add voltage doubler to the circuit, which looked promising. After many tries with different transistors and voltage doubler or tripler combinations I was able to come up with a supply that can deliver about 7mA of driving current into a medium sized Nixie. The circuit only uses two transistors, a not so big inductor and a few diodes and capacitors. It is much simpler and smaller than all of the Nixie power supply I have come across.

It’s not as strong (only 180V and 7mA driving current as opposed to 200+V with 10+mA) and voltage regulation is not so good. However it’s more than good enough for small to medium sized Nixie tubes. It can also work with input voltage as low as 2.4V when you don’t need much output current (i.e. miniature Nixies like IN-17).

I have designed a couple of Nixie clocks using this power supply. I will follow up with some descriptions of each stage of the designs.