AVR Transistor Kit and Case Mod

I ordered an AVR Transistor/component tester kit from Bangood. At the beginning of the year I bought AVR transistor tester by Fish8840 off of eBay and found it a bit lacking. This kit is better. It uses the 1.12k version of the open source firmware, and includes a rotary encoder for easier access to the advanced features. I also opted for the case.

The kit makes use of through-hole components for easy home assembly. It includes an external 8MHz crystal, a voltage regulator, and uses narrow 1% and 0.1% tolerance resistors in critical positions for highest accuracy.

The case is designed to use a ceramic socket (provided) for connecting components, and also provides two banana jacks to allow test leads for testing larger components. People have complained that the provided socket is hard to use and doesn’t make good contact, and I wanted all three test connections available via leads, so I decided to modify the case.

My modification is inspired by some of the fully assembled versions of the tester I’ve seen on ebay. I cut a piece of plastic and glued it over the existing holes for the socket and banana jacks on the case and drilled three holes for 2mm banana jacks I ordered on eBay. Then, I cut a piece of protoboard and drilled three holes for some 2mm  banana plugs, which I screwed into the board. Then I soldered in the ZIF socket and connected up the leads to the plugs.

I haven’t tried building the latest firmware from source for this, but my understanding is that “mega328_st7565_kit” is the proper version to build.

Power Designs TP340a Knob Upgrade

My Power Designs TP340a bench power supply has a look and feel of quality stemming from its industrial design roots in the 1960s. Unfortunately, my supply was built in the mid-1990s and the design was compromised by the use of plastic knobs for the voltage controls on each of the three independent power sources.

TP340a with "original" plastic knobs.

TP340a with “original” plastic knobs.

Since getting the supply up and running, I’ve been on the look out for some suitable replacement knobs. Other/earlier models of these Power Designs power supplies appear to have used knurled aluminum knobs supplied by Kilo International. Kilo sells similar knobs to this day, but they apparently long-ago discontinued the model Power Designs used (which is probably the reason for the substitution in the first place).

In the current lineup, Kilo has two lines that might serve as suitable substitutes. The JD series has the right overall profile, with a flat top rounding into a straight side, but it lacks the flared skirt of the originals. The DDS series has the skirt, but the rest of the profile isn’t right, with a flat top dropping to a flat side that then flares slightly for the knurling.

I suspect that the original knobs were a skirted variant of the JD series, probably called JDS. I scoured eBay for old stock or used knobs, without luck, but I did find a seller with used knobs of similar design. In fact, they look like knobs that Power Designs used on a number of supplies made in the late 60’s or early 70’s. The price wasn’t bad either, 5 knobs for about $17, shipped.

They still weren’t quite right though. The fact that the design wasn’t an exact match wasn’t the issue. Rather, I was concerned that they were a little wider than the original knobs, and  that their proportions would seem off (I lack the skill to create a nice, well proportioned design, but I can tell when things are off). Because of this, I dithered on ordering them, but after seeing his stock decline, I finally pulled the trigger.


The knobs were in pretty good condition, other than being a bit gunked up. I gave them a washing and scrubbed them gently with some Barkeepers Friend (a mildly abrasive cleaner for glassware and stainless steel) before replacing the existing knobs.


I think my concern about proportions were warranted. The I think the knobs give the supply a bit of a big-nosed look. Still, I think they look better than the plastic knobs that it had before, and the definitely feel better to use.


The seller also offered some knobs with the same design but a smaller diameter. I would have purchased them instead, but for the fact that they were drilled for small diameter potentiometer shaft. I considered getting them and drilling them out, but I don’t really have the right tools and so I figured it would be a frustrating project that I could do without right now.

Big LED Clock Kit

A couple of months ago I was browsing Banggood and came across a stupid little clock kit that I felt drawn to for some reason. I suppressed the urge, but not before seeing if I could get the kit for cheaper on eBay (I couldn’t).

About a month ago, I was looking at Banggood again, and this time I gave into temptation and ordered the kit and it finally arrived, by way of Sweden!! a week or so ago and I assembled it yesterday.

I’m still not sure why I was so attracted to the kit, even now that I have it assembled and working on my desk, but I have an idea. I think a big part of the appeal is the minimalism of the device. From the front, all you see is the inch high LED digits. The circuitry is all on a board hidden behind the LED modules. The optional clear acrylic case is similarly minimal. It’s just six pieces of clear acrylic, with tabs and notches cut to interlock, holes for the six screws and slots for the six nuts that fasten it all together.



  • 1″ white digits (other colors available)
  • Clock (24hr/military time only, so far as I can tell)
  • Temperature, Centigrade only, alternates with time display
  • Alarm
  • 5v power with cord for powering from a USB connector
  • Battery backup for the clock.

The kit comes with all the thru-hole parts needed to assemble the clock and 8.5×11″ sheet of paper with the instructions printed on one side. The instructions are probably enough to build and operate the clock given some basic familiarity with assembling electronics, which is not to say that they couldn’t be better.


Assembling the kit is quite simple. There are about two dozen resistors of three different types to be added to the board, along with a with a diode. After placing and soldering these low-profile components, I added the six provided solid capacitors and the crystal, then the two IC sockets, six transistors, pezio buzzer, electrolytic capacitor, power socket, switches, and a surface mounted coin-cell holder.

The transistors proved just slightly tricky, because the provided transistors are in a TO-92 package, while the PCB is layed out for something with a wider lead spacing like a TO-126. The solution is simple, bend the leads to fit, but it’s a bit fussy.


Before finishing soldering the components, I partially assembled the case so I could check the distance between the back of the board and the notch cut in the case to provide direct exposure to the thermistor. Photos of the assembled clock on Bangood show the thermistor sticking out high above the case, which strikes me as ridiculous and unnecessary. I decided that ~1cm off lead between the board and the component was enough to position it in the cutout while remaining protected by the case. I bent the leads to be parallel to each other and perpendicular to the axis of the thermistor package, then 1-2mm from that bend, I bent both leads at another right angle, so the leads remained parallel in the same plane, and the thermistor was a elevated slightly above it. I then soldered the thermistor to the board so there was about 7mm from the PCB. I did something similar for the photoresistor, so it could face upward. I bent the leads a couple mm away from the package, and then soldered the leads so they protruded about 5mm from the board.

Once the components were all soldered, and the leads trimmed, I checked over the board and fixed a number of dodgy solder joints before adding the four 7-segment LED modules on the opposite side of the PCB.

The third digit brought unexpected difficulty. It is supposed to be rotated, so that the dot that usually sits at the lower right to serve as a decimal point, will instead sit at the top left, to serve as the top dot of a colon separating hours from minutes formed with analogous dot at the bottom of the previous digit. This rotation presented a problem, because the leads at the top and bottom edge of the LED packages are offset, rather than centered, and the PCB wasn’t laid-out to account for this. All the leads had to be bent to accommodate. Again, a relatively simple task, but fussy in practice, because of the need to maintain the spacing between the 5 leads on each side so they will slip into the holes on the PCB.


At this point, I fit the ICs to their sockets, powered up the clock, and found that it worked. Or should I say, mostly worked? The left-most digit didn’t light up. I tried resetting the device as described in the instructions, but it still didn’t work. I checked all the solder joints for the LED module, and they seemed Ok, but I touched some of them up with another pass of the soldering iron. I also consulted the schematic to figure which transistor is responsible for strobing the power to the module and checked/touched-up its leads. The first digit still wasn’t lighting up. It was time for bed.

After a good nights sleep, and breakfast out with friends, I returned to troubleshooting the clock. I spent 15 minutes or so using the continuity function on one of my multimeters to trace out part of the circuit and better associate the schematic with the actual layout of the PCB. In particular, I was interested in the portion of the circuit responsible for powering the problem LED module. I figured out the center pin on either side of the module provided +5v, and that there seemed to be good continuity between that and the collector lead of the controlling transistor (Q1). I also found that there was proper continuity from the base of the transistor to the associated resistor, and that the other end of the resistor was, indeed, connected back to an output pin on the microcontroller. Finally, the emitter was properly connected to the 5v supply.

Since everything seemed to be connected properly, I needed to look elsewhere to figure out why the clock wasn’t functioning properly. I thought, perhaps, one of the components was defective. Rather than going to the trouble of testing them individually, either in or out of circuit, I decided to power up the device again, and use an oscilloscope to inspect the signals at various points in the circuit, and compare them against the signals at analogous points for the other functioning digits. This would help me pinpoint the component in need of attention.

That was the idea, anyway. Once I powered the clock up again, the problem digit lit up. I’m not sure what happened. Perhaps my probing and shifted a faulty solder joint back into contact? I tried pushing on a few spots, to see if I could reproduce the problem, but nothing happened. In the end, I decided I had better problems to solve than chasing down an intermittent fault in a $12 clock kit, mounted it in the case, and called the project done.

Other Details


The PCB has some unpopulated areas. The documentation doesn’t say much about them, other than that they are “DIY” areas and no components should be installed. The schematic casts some light on what they are for. There are some headers for in-circuit-programming, and another which, I think, may be for resetting the MCU. There is also space for a relay, and an accompanying space for a connector/header for attaching the switched load. Given the design and clearances on the PCB, and the width of the associated traces, I’d guess that it is only suitable for switching low voltages at modest currents (~1A, tops). The firmware also seems to support this relay by allowing you to set an our to turn it on, and and hour to turn it off.

For what it is worth, the device uses a pre-programmed STC15F20EA_28 microcontroller in a DIP package. This MCU comes from STC Micro, in China. It has an implementation of the 80C51 CPU, along with 4K of flash, 256 bytes of SRAM, an 8-channel, 10-bit AD converter and 1K of EEPROM. This chip isn’t particularly hobbyist friendly, other than being inexpensive. Someone did create software for programming these chips called ‘stcdude.’ It is analogous to ‘avrdude’ used for programming Atmel avr microcontrollers. You’ll also need a compiler like SDCC (small device C compiler). That, and experience doing embedded development without much handholding. This isn’t an Arduino, nor is it Arduino compatible.

The MCU is complimented by a DS1302 clock chip (or something that functions like one), which stores the alarm settings, and keeps time on battery power when the external power isn’t connected.


I measured the power consumption using a USB meter, and it read 0.01-0.02a, or 10-20mA. In theory, you could probably run it for ~4 days off of a modest single-cell USB powerbank. In practice though, it probably doesn’t draw enough current to keep most USB power banks switched on.



I’ll give this kit a solid B overall. The kit and instructions are a B- because of the layout problems I mentioned above. The finished product is a B to a B+. It think it is attractive, and useful, but as an American, the fact that it only displays time in 24-hour mode and temperature in Centigrade undermines its utility somewhat.

I should also say that while the temperature seems accurate to within a degree or so, I have no idea how well it will keep time.