

Piezo V2
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
1README
README.mdPiezo 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 15 | 10K | Resistors_SMD:R_1206_HandSoldering | R1, R2, R3, R5, R6, R11, R12, R13, R15, R16, R21, R22, R23, R25, R26 |
| 6 | 0.1uF | Capacitors_SMD:C_1206_HandSoldering | C1, C2, C6, C7, C11, C12 |
| 6 | 0.33uF | Capacitors_SMD:C_1206_HandSoldering | C4, C5, C9, C10, C14, C15 |
| 6 | 1K | Resistors_SMD:R_1206_HandSoldering | R7, R8, R17, R18, R27, R28 |
| 3 | 10K | piezo_V2_footprints:10K_Trimmer_Bourns_3362P | RV2, RV4, RV6 |
| 3 | 10uF | Capacitors_SMD:C_1206_HandSoldering | C3, C8, C13 |
| 3 | 15K | Resistors_SMD:R_1206_HandSoldering | R9, R19, R29 |
| 3 | 1M | Resistors_SMD:R_1206_HandSoldering | R4, R14, R24 |
| 3 | 50K | piezo_V2_footprints:50K_Trimmer_Bourns_3339P | RV1, RV3, RV5 |
| 3 | 5K | Resistors_SMD:R_1206_HandSoldering | R10, R20, R30 |
| 3 | AD8630ARZ | piezo_V2_footprints:AD8630ARZ | U1, U3, U5 |
| 3 | Conn_01x06 | piezo_V2_footprints:EM280206_6P_Terminal | J1, J2, J3 |
| 3 | MAX919EUK+T | piezo_V2_footprints:TMAX9140EUK+T | U2, U4, U6 |
| 1 | 100uF | Capacitors_THT:CP_Radial_D8.0mm_P3.50mm | C16 |
| 1 | Barrel_Jack | piezo_V2_footprints:PJ-079AH-DCJACK | J4 |
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 mm

- 2 layers126.5 × 83 mm

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 mm

- 2 layers56.9 × 35.2 mm

- 2 layers82 × 120 mm

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 mm

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 mm

- 2 layers95.2 × 57.2 mm
