Repository navigation
Building BatGizmo

This page is intended to show how you can build your own BatGizmo Ultrasound Logger / Ultrasound USB microphone.
The build is for experienced builders, it is not recommended as your first soldering electronics project.
You can build BatGizmo by hand-soldering (and/or with a hot air gun) or you can use a PCB stencil, solder paste and a heating plate. This page focusses on the second method using stencil, solder paste and heating plate.
- BatGizmo PCBs
- BatGizmo electronic parts
- (non-framework stencil) -> if you want to use a heating plate
- (heating plate, eg. Uyue 946C) -> if you want to use a heating plate
- (solder paste no clean 63SN/37PB, Digikey SMD291AXT4 - ND) -> if you want to use a heating plate
- soldering iron
- desoldering braid
- no-clean flux, eg. RF800
- most important: stereo microscope or USB microscope or at least magnifying glasses
- Ordering parts
- Ordering PCBs & stencil & solder paste
- Identifying part locations on the PCB and sorting parts for quick access during assembly process
- Building stencil frame
- Placing PCB into stencil frame and application of solder paste
- Placing parts
- Baking PCB with parts on heating plate
- Checking soldering and repairing excess solder between pins
- Testing & flashing firmware
- Checking the BOM & ordering parts & PCBs - 10 hours (this is the most time consuming step !)
- Identifying parts, producing the cheat sheet with the component placement and abbreviations on the components - 3 hours
- waiting for the mail packages from the US and the PCBs from China - up to two weeks . . .
- building stencil frame - 1 hour
- application of solder paste - less than 10 min
- placing parts and checking every single part twice - 90 min up to 3 hours depending on your experience
- baking PCB on the heat plate - 6-8 min
- checking soldering and repairing excess solder - 20 min up to 1 hour
If you build more than one BatGizmo logger, the preparation (which takes the longest time) has already been done. In this case, every new build will take you about three hours (you will get faster as your experience grows).
Most parts can be bought from Farnell, Mouser, Digikey or other electronics distributors. However, experience shows that often you have to use 2 or 3 suppliers because parts are unobtainable at a specific distributor. First thing you need is a complete BOM. Use the KiCad files for the latest BOM and search for the parts at the distributors. You can use this file for your purpose (but be aware that it is probably not complete or may not reflect the latest version of the KiCad files). HERE is the BOM
First, you have to export the Gerber files from KiCad. If you like to order the PCBs from PCBWAY, they have a plugin for KiCad that automatically exports the necessary files into one zip-file. But other PCB makers may also have plugins.
This file is then uploaded to the PCB maker company order page. Use these settings in the order form (most are already ticked):
- 4 layers
- thickness 1.6mm
- HASL with lead
- tenting vias
- Material FR-4
Important: if you would like to use a stencil and heating plate to solder (instead of hand soldering every part), add a stencil to your order:
- Non-framework Stencil --> this is the most important information and has to be actively ticked -> "NON-FRAMEWORK"
- 190x290mm SMD-Stencil
Take some time to really understand where the parts have to be placed on the PCB. Also take care to write down and document the printed part names, so you can still identify them once you take them from the original bag. Eg. the XC8101 had UFC3C written on it . . .
I printed out the copper layer from KiCad and wrote down all the part names on it:

Placing the parts onto the PCB can take some time (> 2 hours), so it is convenient to have all parts unpacked and sorted before you place them, so that the solder paste does not dry out too much. Write the part name / value onto the box BEFORE you unpack the parts (some resistors and all caps do not have names written on them).

Use the parts that come with the packaging of the PCBs and stencil to build a stencil frame. Ideally you have some spare parts of PCB material with the same strength at hand. The UHU glue was used to fix the spare PCB parts to the base of the frame. Do not fix the actual BatGizmo PCB ! This is held in-place by the self-built frame.


The stencil frame holds the PCB in-place and allows you to fix the stencil above the PCB, so you can apply solder paste. Be very precise in placing the stencil, because many parts have very small pin distances. Use tape on all four sides to fix the stencil (not shown in the photograph), so that the stencil lies really flat directly on the PCB.

I use leaded solder paste (solder paste no clean 63SN/37PB, Digikey SMD291AXT4 - ND), because it is easier to handle (lower temperature) and easier to repair with a soldering iron.
You can achieve good results if you do not use too much solder paste and align the stencil very precisely. Here is a video of the process of solder paste application for a Pipistrelle bat detector by Phil Atkin. HERE The detector is completely different, but the process is very much the same. (Never use the heating plate shown in the video, its very dangerous electrically and also gets too hot. I will give a much better and safer suggestion below).
Before placing parts, there are two places on the PCB where you should check and correct the applied solder paste with a very fine needle. Use a stereo microscope or at least a magnifying glass to check and correct.
A SD card holder : scrap off excess solder paste between the pins of the SD card holder
B USB socket : do the same here
You do not need to care about excess solder paste along the pins of the STM32 processor. We will deal with that later after baking the PCB.
If you want the full functionality, do not populate R27 and R26.
The ICs, tantalum caps, LEDs and the diode have to be placed in the correct direction. Please not that the mark indicates the positive side for tantalum caps. For diodes, the mark indicates the negative side. Also note that the STM32 processor has two indications ;-). Be sure to place those parts the right way, refer to the opening picture of this page.
Take your time and be patient while placing parts. Use a stereo microscope.
Have a rest. Then check every place on the PCB whether every part has been placed BEFORE baking the PCB.
Professional PCB manufacturing uses welding ovens. We can do about the same with a heating plate like this:

I use the following sequence:
- place the PCB on the cold heating plate
- adjust a target temperature of 235 degrees Celsius
- switch on the heating plate and watch it heat up
- as soon as it reaches 235 degrees Celsius, wait 90 seconds
- switch off the plate
- CAREFULLY take off the PCB from the heating plate without any vibrations (the solder is still liquid!) and place it on a heat-resistant surface and let it cool down. You can gently push the PCB to the edge of the plate and then use a forceps to carefully take it off the plate.

I take the PCB off the plate rather than letting everything cool down on the plate, because I am afraid that the long exposure to heat could kill the mic. The datasheet gives a max 150 sec of exposure above 183 degrees C. Not sure whether you can achieve this by letting everything cool down on-plate. But you can surely test and improve on this, take care of the maximum temperatures and the maximum duration of heat exposure. I think the MEMS mic is the most heat sensitive part in the BatGizmo, so if you take care to fulfil the requirements in the mics´ data sheet, you should be quite safe.
After everything has cooled down, it is time to check everything under the stereo microscope. Take your time for this and check every solder connection.
You will have short circuits around the STM32 processor pins. We clean them up like this:
- apply some flux (not excessive) to all the pins
- use de-soldering braid and place it onto the pins
- use a solder iron to heat up the de-soldering braid on the pins (only a few seconds, then let everything cool down again, the STM32 is heat-sensitive)
- by heating up, the excess solder between the pins automagically gets soaked into the braid
- check carefully for still existing short circuits under the stereo microscope
- also check the tiny ICs (especially the MCP 6S91E and the OPA 2376), they often also have excess solder
- check the SD card pins (important that these connections are soldered in really good quality, because the SD write current is quite high)
- check the USB socket pins (only the four central pins, all others are connected to GND)

Most laptops/PCs have USB sockets with a security circuit preventing short circuits. So, if you are brave, you can use your laptop to do a first test of your assembled BatGizmo. Much better would be a current-limited power supply.
Use a micro-USB cable that is capable of data transmitting, not only for power supply. Plug in the cable into the BatGizmo. Press and hold the DFU button on the BatGizmo and plug the other end of the cable into the laptop. When you hear a ping, the STM32 has been found by your computer. Use the instructions here to flash the firmware HERE