Skip to the content
PCBKitNew board
2 layers87 × 110 mmPiezo V2, the printed circuit board in 3D

Amplifier Circuit for Piezo-Based Lick Detection in Rodents

Size
87 × 110 mm
Copper layers
2
Thickness
1.6 mm
Parts
66
Nets
44
Pads
213
Tracks, vias
408, 33
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
17 Jan 2024
Updated
3 Apr 2024

Overview

Piezo V2 is an open-source printed circuit board by CSHL-devon, from the CSHL-devon/PiezoLickDetector repository on GitHub. It is a 2-layer board of 87 × 110 mm with 66 parts on 44 nets, routed with 408 tracks and 33 vias.

It is built around the AD8630ARZ. Its parts include 30 resistors, 16 capacitors, 6 ICs and 4 connectors. It belongs with the audio and music boards of this library.

Main components

1

README

README.md

Piezo Lick Detector

An amplifier for detecting rodent licks using piezo-based sensor systems

General Use

Each board has three channels that can receive separate input from three different piezo sensors. Each channel has independently controllable gain and dual outputs: raw analog voltage and 5V TTL.

Piezo Concerns

  • We use 12mm piezo disks that are extremely common and cheap.

  • "Positive" input on the amp is considered the crystal side of the piezo (the white center of the disk/strip) and "negative" the surrounding copper. If you wire it backwards, you will still get a signal (piezo output is AC), but it may not be the side of the signal you want. The amp cuts anything below zero as it enters the circuit, so depending on the orientation of the piezo in the sensor, or with respect to the animal, the "positive" voltage swing may be bigger, or smaller than the "negative" swing when the animal licks. Best practice is just to test output response once the system is in place and wire it the way you get the biggest signal.

  • If you're solding the wires to the piezo yourself, take care not to overheat the piezo. Even if it doesn't visibly delaminate the piezo, you could do enough unseen damage to end up with a poor sensor. If you're not confident in your soldering skills, piezos are available pre-wired.

  • This is a voltage-mode piezo amp. The length of the wire between the piezo and the amp should be kept to a minimum, else the capacitance of the cable will start to interfere with the sensor.

Gain

The gain of the amplifier is adjusted using the round trimmer marked "Gain" for the appropriate channel. This trimmer is multi-turn to add some precision to the adjustments, however it has no stops to indicate the start, or end of the range. On first use, it's a good idea to simply turn it counter-clockwise several (~10) full turns to be sure you're at the bottom and then slowly work your way up until you reach the desired signal.

Choosing the correct gain can be tricky with piezo-based systems and the quality of the detection you get will depend on the type of piezo/lick-spout you deploy, the placement of your sensor with respect to the animal and how well the sensor is physically isolated from other sources of shock/vibration. This is not trivial and takes some practice to get your setup and positioning perfect.

Threshold

The 5V TTL output is based on thresholding the raw voltage signal. That threshold is controlled using the square single-turn trimmer labeled "Threshold" for the appropriate channel. The available threshold does not cover the entire 0-5V range of the device. By default, it covers 2.5V-3.75V. This range was found (for our purposes) to encompass the best gain settings for noise when the setup is well optimized. You can, of course alter the range by changing the values of R2, R9 and R10 (as an example for channel 1) if you find it doesn't suit your use-case, but the default is a good starting point. You could also just bring the raw signal in through a DAQ and threshold in software if that suits your setup design.

Building

This project came before I started converting all my projects to through-hole, so most of the parts are surface-mount. It's not too bad and If you practice a bit with a rework station you can get through it. If you have access to a surface-mount oven it's easy. Otherwise, there are many services that will populate the board with the parts for you.

I may eventually get around to updating this to through-hole construction, but you can also just build it on a breadboard, or an Adafruit perma-proto board by following the schematic, without the custom PCB. This is probably the easiest way to get up and running for the least money and all of the parts I've used have through-hole equivalents.

Parts

66
QtyValueFootprintReferences
1510KResistors_SMD:R_1206_HandSolderingR1, R2, R3, R5, R6, R11, R12, R13, R15, R16, R21, R22, R23, R25, R26
60.1uFCapacitors_SMD:C_1206_HandSolderingC1, C2, C6, C7, C11, C12
60.33uFCapacitors_SMD:C_1206_HandSolderingC4, C5, C9, C10, C14, C15
61KResistors_SMD:R_1206_HandSolderingR7, R8, R17, R18, R27, R28
310Kpiezo_V2_footprints:10K_Trimmer_Bourns_3362PRV2, RV4, RV6
310uFCapacitors_SMD:C_1206_HandSolderingC3, C8, C13
315KResistors_SMD:R_1206_HandSolderingR9, R19, R29
31MResistors_SMD:R_1206_HandSolderingR4, R14, R24
350Kpiezo_V2_footprints:50K_Trimmer_Bourns_3339PRV1, RV3, RV5
35KResistors_SMD:R_1206_HandSolderingR10, R20, R30
3AD8630ARZpiezo_V2_footprints:AD8630ARZU1, U3, U5
3Conn_01x06piezo_V2_footprints:EM280206_6P_TerminalJ1, J2, J3
3MAX919EUK+Tpiezo_V2_footprints:TMAX9140EUK+TU2, U4, U6
1100uFCapacitors_THT:CP_Radial_D8.0mm_P3.50mmC16
1Barrel_Jackpiezo_V2_footprints:PJ-079AH-DCJACKJ4

The 62 most common of 66 parts.

Questions

How big is the Piezo V2 PCB?

It measures 87 × 110 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Piezo V2 use?

66 parts, built around the AD8630ARZ. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Piezo V2 KiCad files?

From the CSHL-devon/PiezoLickDetector repository on GitHub, at the commit this page was made from: the board is KiCAD/piezo_V2/piezo_V2.kicad_pcb and its schematic KiCAD/piezo_V2/piezo_V2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Piezo V2 design in my own project?

Its repository states no licence, so its author keeps all rights: ask CSHL-devon before reusing the design.

Similar boards

  • 2 layers29.2 × 44.7 mmSensing controller, the printed circuit board in 3D

    Sensing controller

    olin-electric-motorsports/olin-electric-motorsports

    OEM Monorepo

    41 parts14
  • 2 layers126.5 × 83 mmPcb pro controller, the printed circuit board in 3D

    Pcb pro controller

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    66 parts915
  • 2 layers94.6 × 46.1 mmHeaterMeterPI, the printed circuit board in 3D

    HeaterMeterPI

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    66 parts557MIT
  • 2 layers56.9 × 35.2 mmAmoeba tp, the printed circuit board in 3D

    Amoeba tp

    mtl/keyboard-pcbs

    Keyboard PCBs

    66 parts485
  • 2 layers82 × 120 mmSample Numeric Keyboard, the printed circuit board in 3D

    Sample Numeric Keyboard

    famichu/MagLev_Switch_MX

    The 3D printable magnetic levitation contactless switch with the linear output hall effect sensor.

    66 parts467
  • 2 layers136.8 × 98.6 mmHillside, the printed circuit board in 3D

    Hillside

    mmccoyd/hillside

    Family of split ergonomic keyboards with three rows of six or five keys and a generous thumb arc

    66 parts448MIT
  • 2 layers115.7 × 95.7 mmFifi split keeb, the printed circuit board in 3D

    Fifi split keeb

    raychengy/fifi_split_keeb

    Fifi Keyboard 🐶 ⌨️

    66 parts334
  • 2 layers95.2 × 57.2 mmDomesdayDuplicator, the printed circuit board in 3D

    DomesdayDuplicator

    Domesday86/DomesdayDuplicator

    High-speed LaserDisc RF sampler

    66 parts325GPL-3.0