A Simple EMF Detector And Electroscope You Can Make From Junk Box Parts

2N2222 devices used, but practically any junkbox NPN will do

Electromagnetic fields are everywhere, all around us. Some are generated naturally, but in vast majority of cases, it’s we humans that are generating them with artificial, electronic means. Everything from your mobile phone to the toaster will emit some sort of signal, be it intentional or not. So we think it only befits the general electronics-orientated hacker to have some way of sniffing around for these signals, so here is [Mirko Pavleski] with his take on a very simple pair of instruments to detect both static and dynamic electromagnetic fields.

CMOS clock input connected directly to the antenna. Warning! ESD damage risk!

The first unit (a simple electroscope) uses a cascade of 2N2222 NPN bipolar transistors configured to give a high current gain, so any charge near the antenna will result in increasing currents in subsequent stages, finally illuminating the LED. Simple stuff.

The second unit relies on the extremely high input impedance of the old-school CMOS 4017 decade counter, which is likely of the order of 100 MΩ or even more. Normally you would not leave such a CMOS input floating, or even connect it with too long a PCB trace — lest it pick up a stray signal —but for detecting alternating EM fields, this appears to work just fine. Configured as a simple divide-by-ten, when presenting 50 Hz AC, the LED can be seen to flash at 5 Hz.

Simple stuff, and this scribe has all those exact parts in the junk box, so will be constructing these shortly!

We’ve covered electroscopes for years, here’s a modern twist on a famous classic experiment, and some hair-raising experiments to get you started.

Continue reading “A Simple EMF Detector And Electroscope You Can Make From Junk Box Parts”

Advanced PCB Graphics With KiCAD 6 And Inkscape

There are many, many video tutorials about designing the functional side of PCBs, giving you tips on schematic construction, and layout tips. What is a little harder to find are tutorials on the graphical aspects, covering the process from creating artworks and how you can drive the tools to get them looking good on a PCB, leveraging the silkscreen, solder and copper layers to maximum effect. [Stuart Patterson] presents his guide for Advanced PCB Graphics in KiCAD 6.0 and Inkscape, (Video, embedded below) to help you on your way to that cool looking PCB build.

Silkscreen layers in yellow, solder mask opening in red

The first step is to get your bitmap, whether you create it yourself, or download it, and trace it into a set of vectors using the Inkscape ‘trace bitmap’ tool. If you started with an SVG or similar vector shape, then you can skip that stage.

Next simply create a PCB outline shape by deleting all the details that aren’t part of the outline. A little scaling here and there to get the dimensions correct and you’re done with the first part. [Stuart] has an earlier video showing that process.

The usability improvements in KiCAD 6.0 are many, but one greatly demanded feature is the ability to group objects, just like you do in Inkscape and any other vector graphics tool for that matter. That means you can simply import that SVG outline into the Edge.Cuts PCB layer and all the curves will be nicely tied together. Next you select the details you want for the silkscreen layer, solder mask removal layers and any non-circuit copper. In Inkscape it would be wise to use the layers feature to assign the different material types to a uniquely named layer, so they can be hidden for exporting. This allows you to handle silk, mask and copper PNG exports from a single master file, in addition to any vector details for outline, slots and holes.

Once you have PNG bitmap exports for the silk, mask etc. you need to create a footprint inside a board-specific library, using the KiCAD image converter tool. It was interesting to note that you can export a new image footprint from the tool and paste it straight into the footprint editor, and tweak all the visibility details at the same time. That will save some time and effort for sure. Anyway, we hope this little tutorial from [Stuart] helps, and we will be sure to bring you plenty more in the coming months.

Need some more help with KiCAD? Checkout this tutorial, and if you want a bit more power from the tool, you need some action plugins!

Continue reading “Advanced PCB Graphics With KiCAD 6 And Inkscape”

Production PCB And Pogo Pins Produce A Clever Test Jig

[Hans Summers] runs a site qrp-labs.com, selling self-assembly kits mostly for radio gear and GPS applications, and had some production problems with his QCX-mini QRP transceiver kit. They were using an assembly house that had some problems with a sub-contractor going under during the pandemic, and the replacement service was somewhat below the expected level of quality, resulting in a significant number of SMT populated boards coming out non-functional. Obviously, not wanting to pass these on to customers as a debug problem, they set to work on an in-house QA test jig, to give them the confidence to ship kits again. The resulting functional test jig, (video, embedded below) takes a fairly interesting approach. Skip the video to 9:00 for the description of the test jig and detailed test descriptions.

By taking an existing known-good PCB, stripping off all the SMT parts, and moving the through hole components to the rear PCB side, pogo pins could be soldered to strategic locations. Building the assembly into a rudimentary enclosure made from sawn-up raw copper clad board, with the pogos facing upwards, and a simple clamp on top, allowed the PCB-under-test (let’s call it the UUT from hereon) to be located and clamped in place. This compressed the pogos in order to make a firm electrical contact. A piece of MDF that had been attacked with a dremel did duty as a pressure plate, with cutouts around the SMT component areas to achieve the required uniform board pressure and keeping the force away from the delicate soldered parts. All this means that with an UUT connected via pogo pins to a through-hole only test PCB, the full circuit would be completed, if and only if the UUT was completely functional, and that means defect-free soldering and defect-free components.

Next the firmware was rewritten to do duty as the test controller, which when powered up would step through a sequence of test scenarios and measurements, logging the results to an OLED display and a serial interface. This rig survived 1,000 SMT tests without failing, giving [Hans] the confidence to ship out new kits and providing a database of datalog results as a backup should a customer have an issue during final assembly. All-in-all a smart idea to solve a difficult problem, with nary a custom test jig PCB in sight!

These pages have been graced with many a pogo-based test rig over the years. Here’s one to start, and if you’ve got a handy laser cutter and some scrap wood, making an accurate test rig is no bother either.

Continue reading “Production PCB And Pogo Pins Produce A Clever Test Jig”

8-bit counter made from 555s

555 Timer Contest Entry: A Digital Counter With Nothing But 555s

With a 555 on the BOM, you never know what you’re going to get. With 40 of the versatile timer chips in a build, you might just get something completely unexpected, like this 555-based eight-bit digital counter.

This one comes to us by way of [Astronomermike], who chose to make a digital circuit with nothing but 555s and a largish handful of passives as his entry in the current 555 Timer Contest. The ubiquitous timer chip is not exactly the first chip that comes to mind for digital applications, but it does contain an SR latch, which only requires a little persuasion to become a JK flip flop. His initial design for the flip flop that would form the core of the circuit had a pair of 555s surrounded with a bunch of OR gates and inverters — within the rules of the contest but hardly in its spirit. Luckily, the 555 makes a fine inverter too, and along with some diode-resistor OR gates, the basic counter module was born.

The video below shows the design and build, as well as the trip down the troubleshooting rabbit hole courtesy of a bad breadboard. Each half-nibble stage of the 8-bit counter occupies a full breadboard with ten 555s; the whole 40-chip string actually works and looks pretty cool doing it.

Truth be told, this is exactly the kind of thing we had in mind when dreaming up this year’s 555 contest, so good on [Astronomermike] for thinking outside the box for this one. To see what other uses people have found for the chip that keeps on giving, or to get your entry in before the deadline on January 10, head over to the contest page.

Continue reading “555 Timer Contest Entry: A Digital Counter With Nothing But 555s”

USB to Dupont adapter by [PROSCH]

USB Power Has Never Been Easier

USB cables inevitably fail and sometimes one end is reincarnated to power our solderless breadboards. Of course, if the cable broke once, it is waiting to crap out again. Too many have flimsy conductors that cannot withstand any torque and buckle when you push them into a socket. [PROSCH] has a superior answer that only takes a couple of minutes to print and up-cycles a pair of wires with DuPont connectors. The metal tips become the leads and the plastic sheathing aligns with the rim.

The model prints with a clear plus sign on the positive terminal, so you don’t have to worry about sending the wrong polarity, and it shouldn’t be difficult to add your own features, like a hoop for pulling it out, or an indicator LED and resistor. We’d like to see one with a tiny fuse holder.

If you want your breadboard to have old-school features, like a base and embedded power supply, we can point you in the right direction. If you are looking to up your prototyping game to make presentation-worthy pieces, we have a host of ideas.

The Benefits Of Critiquing Your Own PCB Designs

In a recent retrospective video, [Phil] from Phil’s Lab goes through a number of his early PCB designs, to critique and comment on what he likes and doesn’t like in these designs. Even though it’s only been a few a few years, he founds plenty that’s wrong. From poor and inconsistent formatting in the schematic, to sloppy and outright broken PCB layouts. It’s a fascinating look at years of lessons learned.

[Phil] comments on the importance of clear labeling and organization of sections and pages in the schematic to make it obvious what the function of a block is. Other lessons include the labeling of nets to make PCB routing a lot easier, making good use of PCB planes, getting all relevant information on components and layout in the schematic as a comment, and connecting decoupling capacitors to their relevant pins.

Although we tend to forget about older projects, it can be very interesting to take a look at them now and then, to see (hopefully) our progress over the years. In the case of [Phil] it’s fascinating to see the transition from a basic two-sided board with THT components to multi-layer boards with STM32 MCUs.

Continue reading “The Benefits Of Critiquing Your Own PCB Designs”

Teaching A DC Servo Motor To Act Like A Stepper

[Frank Herrmann] had an interesting idea to turn a geared DC motor into a servo motor assembly, but with a stepper motor-like interface. By stacking some small PCBs behind the motor body, it was possible to squeeze a DRV8837 DC motor driver and a pair of hall effect sensors on the first PCB layer, with the magnetic encoder nestled tightly behind it. Pin headers at the edge of the PCB connect to a second PCB bearing the microcontroller, which is based on the cheap STM32L432. The second PCB also holds an associated LDO and debug LED. Together, this handful of parts provide all that is needed to read the encoder, control the motor rotation and listen on the ‘stepper motor driver’ interface pins hooked up to the motion controller upstream. The Arduino source for this can be found on the project GitHub.

Whilst [Frank] mentions that this assembly has a weight and torque advantage over a NEMA 17 sized stepper motor, but we see no hard data on accuracy and repeatability which would be important for precise operations like 3D printing.

This project is part of a larger goal to make a complete 3D printer based around these ‘DC motor stepper motors’ which we will watch with interest.

While we’re on the subject of closed-loop control of DC motors, here’s another attempt to do the same, without the integration. If these are too small for you, then you always repurpose some windscreen washer motors.

Continue reading “Teaching A DC Servo Motor To Act Like A Stepper”