PCB Assembly


Add thumbnails of the various assembled PCBs somewhere here without leaving the page?

Keg Cop runs on an ESP32 controller. To detect the information to be logged, you need to connect specific devices to the controller. I have provided a main circuit board design, as well as several breakouts for your use.

Assembly is not difficult, but it does require some basic soldering.

Materials Required

This project uses widely-available and inexpensive components. You may find you are better off buying a resistor assortment, for instance, or buying 10 or 20 of a piece at a time for a nominal cost from China. You will need to order the printed circuit boards from a supply house. The heart of the system is, of course, the controller.

Because there are multiple ways to configure this Keg Cop system, I will demonstrate using my single Kegerator, three taps, and a temperature control setup. Other configurations may be detailed on the planning page.

Gather the following parts and pieces to get started:


The ESP32 controller is paired with many different “developer boards” to make connections easier. While you can buy a bare ESP32 chip, you will walk that road alone.

The developer board used in this project is the Lolin D32 v1.0.0 (not the Pro or 2.0.) Wherever you purchase it, make sure it is an official Espressif ESP32-WROOM-32 Module. It says 4MB (or sometimes shown as 32Mb, which is 4 megaBYTES converted to megaBITS.) There is a version sometimes called “LED,” which means there is an annoying blinking LED when a battery is not connected. It will work, and so long as it’s in a case, you won’t notice the blinking. Be sure it comes with the 16-pin male and female headers, or get them elsewhere. It is common to only receive the male headers in the package.

Lolin D32 v1.0.0

You can find the Lolin D32 in many places. Lolin D32 is one of maybe hundreds of development boards. Their prime delivery method to hobbyists seems to be the Lolin store on AliExpress.

AliExpress also seems to be the least expensive path, but of course, ordering direct from China does take a bit longer than other methods. You will spend more but get your hands on the device quicker if you purchase from Amazon or any other place you can find it.

Printed Circuit Boards

This configuration will use the following three boards:

The links will take you to DirtyPCBs where I have uploaded the designs. When you purchase the boards there, you pay a small premium (10%), which goes into my account. I use that credit in the development of these and other projects. Anyone who has done development like this can tell you how many boards we go through, and the cost is not insignificant. You may take the files from GitHub and upload them yourself to avoid that small markup if you choose. If you do purchase them here, it’s only fair I tell you about it, and what I will do with the credits.

These links will allow you to order boards in increments of ±10. Sometimes you might get 11, sometimes nine, it’s cheap and from China, and that’s how it works. Think of it as a lottery. If you end up with extras, I encourage you to share with others.

(***) - The main board is larger than the “standard” Dirty PCB size of 5x5cm. When you get to the ordering page, you MUST select 10x10, which has a slightly higher price. If you forget this, I think they may adjust the price afterward. For such low prices, it is proper to be upfront about things. On the same page, you may also select other than the default board color, which is red.

Board Size


For this configuration, we will use the following components:

Main Board:

Sensor Board:

Daisy Chain Boards (multiply all numbers x 3 for three flowmeters):

(*) - Optional items for use when you desire a room temperature sensor. Either use a DS18B20 sensor with a lead or a PCB-mount sensor.


You are going to have to solder. If you have legitimately never soldered anything before, I recommend you spend a few minutes on YouTube and watch a few videos. Sparkfun also has a very nice tutorial. It is not hard at all once you get the hang of it. And, while the boards are comparatively small, the components chosen are simple through-hole parts, which may be easily soldered by a beginner with a little patience.

Be sure to use flux when you solder. Liquid flux is the easiest to use. Be sure to get both sides of the board because you want the solder to flow to both sides. After you solder from behind, flip the board over to make sure you get a good flow. If not, you can always touch up from the top (but don’t tell anyone you cheated.)

I do not intend to provide a step-by-step on how to solder here. Still, I recommend the following part installation order for ease of assembly:

  • Resistors - These are the shortest mounted components. Soldering the resistors to the board first is the least challenging. They are also some of the most heat-tolerant parts, so these grant you some experience to get you going.
  • Capacitors - The next tallest components, these should go on next. They are also relatively tolerant of heat, so you can continue to refine your skills. Be sure to get them as close to the board as possible since having them stick up changes their intended impact on the circuit.
  • DS18B20 Sensor - Now that you are sure of your skills, these sensors should be soldered next. Be careful not to overheat the devices, but they are not too sensitive.
  • Pin headers and terminal blocks - These components are not vulnerable to the heat at all except for the plastic.
  • RJ45 Jacks - These are the tallest items, and you should solder them on last.

When you solder the sensor board, you have a choice. I designed it to orient the 3-pin terminal block’s openings pointing in to route the cables together out one end of a case. You may reverse them if you prefer.

Once you have finished soldering the shield, make sure to clean off the flux. You can use cheap vodka or Everclear, or a commercially available flux solvent.


The pcb directory in the repository contains the Eagle files for the printed circuit board shield supporting Keg Cop. You can download the design files, modify them, and upload them to the PCB manufacturer of your choice. If you would like to personalize these board designs, you may edit them with Autodesk’s EAGLE. EAGLE is a scriptable electronic design automation (EDA) application with schematic capture, printed circuit board (PCB) layout, auto-router, and computer-aided manufacturing (CAM) features. EAGLE stands for Easily Applicable Graphical Layout Editor and is developed by CadSoft Computer GmbH.