Skip to the content
2 layers33 × 10 mmEnvDetUNIT, the printed circuit board in 3D
Size
33 × 10 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
15
Pads
57
Tracks, vias
154, 15
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
24 May 2023
Updated
27 Jun 2023

Overview

EnvDetUNIT is an open-source printed circuit board by akita11, from the akita11/EnvDetUNIT repository on GitHub, published under the MIT licence. It is a 2-layer board of 33 × 10 mm with 22 parts on 15 nets, routed with 154 tracks and 15 vias.

Its parts include 5 capacitors, 5 resistors, 4 connectors, 2 ICs and 2 diodes.

README

README.md

Envelope Detector (包絡線検波UNIT)

アナログ信号波形の包絡線(波形の外側の波形)を生成します。マイクなどからの音声信号の振幅を計測する場合などに便利です。Grove端子または3ピン端子で、マイク等の信号源とM5Stack等のマイコンとの間に接続して使用します。(スイッチサイエンスで委託販売中です)

表面

裏面

左側(CN1・J1、矢印の根本側)から信号源(マイクアンプの出力)を接続し、右側(CN2・J2、矢印の先端側)に包絡線波形が出力されるので、マイコン等に接続します。

ピン配置

電源はCN1/J1/CN2/J2のいずれからのVDDへ+3.3V〜+5Vを与える。

入力側

  • CN1(Groveコネクタ): アナログ入力1/アナログ入力2/VDD/GND (信号入力は標準で「アナログ入力1」で、JP1で「アナログ入力2」に切り替え可能
  • J1(2.54mmピンヘッダ3ピン): VDD/GND/アナログ入力

出力側

  • CN2(Groveコネクタ): アナログ出力1/アナログ出力2/VDD/GND (信号出力は標準で「アナログ出力1」で、JP2で「アナログ出力2」に切り替え可能
  • J2(2.54mmピンヘッダ3ピン): VDD/GND/アナログ出力

包絡線検波とは?

音声信号などの変化が速い信号をマイコン等のA/D変換で取得する場合、A/D変換のタイミングと信号波形の変化のタイミングがあわないと、A/D変換値が波形の山の部分や谷の部分をバラバラに拾ってしまい(図中の◯)、正しく振幅を取得できません。

信号波形を包絡線検波回路に与えると、信号波形の外側をつないだ「包絡線」をつくることができます。(包絡線検波回路は、ダイオードを用いる半波整流回路にコンデンサの平滑回路を組み合わせたもの。厳密にはコンデンサの容量によって包絡線の波形が少し変わる。なおこのUNITでは、特に小さい振幅の信号も正しく扱えるようにオペアンプを使った理想ダイオードを使っています)

このようにして得られた包絡線波形に対してA/D変換を行えば、(ほぼ)正しく信号波形の振幅を取得することができます。

実際のマイク(M5StackマイクUNIT)の波形(黄色)と、このUNITの出力(水色)。

※なおこの回路の出力インピーダンスは高めなので、抵抗などの低インピーダンスの負荷を駆動すると波形が歪むことがあります。必要に応じて出力側にバッファ(ボルテージフォロア等)を使用してください。

(オプション)時定数の調整

包絡線検波の回路の特性上、入力する信号波形の周波数によっては正しく包絡線を得られない場合があります。標準設定では1kHz前後の音声帯域の信号では、ほぼ正しい包絡線を得られますが、必要であれば回路の特性(時定数)を変更することができます。JP3をカットし、J3(2.54mmピンヘッダ2ピン)に適当な容量のコンデンサを接続します。標準では10uF(時定数は約160Hz)で、これより大きな容量のコンデンサを接続すると、包絡線の変化がより緩やかになります。

Aoutに100uFのコンデンサを接続したときの、マイクの波形(黄色)と、このUNITの出力(水色)。

Author

Junichi Akita (akita@ifdl.jp, @akita11)

Parts

22
QtyValueFootprintReferences
410kResistor_SMD:R_0603_1608MetricR1, R2, R3, R4
30.1uCapacitor_SMD:C_0603_1608MetricC1, C2, C4
3SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mm_NumberLabelsJP1, JP2, JP4
210uCapacitor_SMD:C_0603_1608MetricC3, C5
2CON_GROVEakita:CON_GROVE_HCN1, CN2
2Conn_01x03Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_VerticalJ1, J2
2DIODEakita:D_SOD123FLD1, D2
11MResistor_SMD:R_0603_1608MetricR5
1Jumper_2_BridgedJumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mmJP3
1LDO_3p_GOIPackage_TO_SOT_SMD:SOT-23U2
1S89431Package_TO_SOT_SMD:SOT-23-5U1

Similar boards

  • 2 layers158 × 11 mmDaylight Matchstick, the printed circuit board in 3D

    Daylight Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    22 parts1.1kGPL-3.0
  • 2 layers57 × 65 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    22 parts1kGPL-3.0
  • 2 layers81 × 57.2 mmRP2040-Macropad, the printed circuit board in 3D

    RP2040-Macropad

    hackclub/OnBoard

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

    22 parts915
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers66.4 × 24.5 mmConnecting piece, the printed circuit board in 3D

    Connecting piece

    Chrismettal/flipper-zero-backpacks

    Backpack-style addon boards for the Flipper Zero!

    22 parts456
  • 2 layers51 × 70 mmDMG A04-01, the printed circuit board in 3D

    DMG A04-01

    HDR/NintendoPCBs

    Replacement pcb's for Nintendo games.

    22 parts321
  • 2 layers27.8 × 16 mmSpi 1v8 level shifter, the printed circuit board in 3D

    Spi 1v8 level shifter

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    22 parts253GPL-3.0

Questions

How big is the EnvDetUNIT PCB?

It measures 33 × 10 mm and has 2 copper layers, 1.6 mm thick.

What parts does the EnvDetUNIT use?

22 parts. 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 EnvDetUNIT KiCad files?

From the akita11/EnvDetUNIT repository on GitHub, at the commit this page was made from: the board is EnvDetUnit.kicad_pcb and its schematic EnvDetUnit.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the EnvDetUNIT design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).