
Daylight Matchstick
VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

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.
アナログ信号波形の包絡線(波形の外側の波形)を生成します。マイクなどからの音声信号の振幅を計測する場合などに便利です。Grove端子または3ピン端子で、マイク等の信号源とM5Stack等のマイコンとの間に接続して使用します。(スイッチサイエンスで委託販売中です)
表面
裏面
左側(CN1・J1、矢印の根本側)から信号源(マイクアンプの出力)を接続し、右側(CN2・J2、矢印の先端側)に包絡線波形が出力されるので、マイコン等に接続します。
電源はCN1/J1/CN2/J2のいずれからのVDDへ+3.3V〜+5Vを与える。
音声信号などの変化が速い信号をマイコン等のA/D変換で取得する場合、A/D変換のタイミングと信号波形の変化のタイミングがあわないと、A/D変換値が波形の山の部分や谷の部分をバラバラに拾ってしまい(図中の◯)、正しく振幅を取得できません。
信号波形を包絡線検波回路に与えると、信号波形の外側をつないだ「包絡線」をつくることができます。(包絡線検波回路は、ダイオードを用いる半波整流回路にコンデンサの平滑回路を組み合わせたもの。厳密にはコンデンサの容量によって包絡線の波形が少し変わる。なおこのUNITでは、特に小さい振幅の信号も正しく扱えるようにオペアンプを使った理想ダイオードを使っています)
このようにして得られた包絡線波形に対してA/D変換を行えば、(ほぼ)正しく信号波形の振幅を取得することができます。
実際のマイク(M5StackマイクUNIT)の波形(黄色)と、このUNITの出力(水色)。
※なおこの回路の出力インピーダンスは高めなので、抵抗などの低インピーダンスの負荷を駆動すると波形が歪むことがあります。必要に応じて出力側にバッファ(ボルテージフォロア等)を使用してください。
包絡線検波の回路の特性上、入力する信号波形の周波数によっては正しく包絡線を得られない場合があります。標準設定では1kHz前後の音声帯域の信号では、ほぼ正しい包絡線を得られますが、必要であれば回路の特性(時定数)を変更することができます。JP3をカットし、J3(2.54mmピンヘッダ2ピン)に適当な容量のコンデンサを接続します。標準では10uF(時定数は約160Hz)で、これより大きな容量のコンデンサを接続すると、包絡線の変化がより緩やかになります。
Aoutに100uFのコンデンサを接続したときの、マイクの波形(黄色)と、このUNITの出力(水色)。
Junichi Akita (akita@ifdl.jp, @akita11)
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R4 |
| 3 | 0.1u | Capacitor_SMD:C_0603_1608Metric | C1, C2, C4 |
| 3 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mm_NumberLabels | JP1, JP2, JP4 |
| 2 | 10u | Capacitor_SMD:C_0603_1608Metric | C3, C5 |
| 2 | CON_GROVE | akita:CON_GROVE_H | CN1, CN2 |
| 2 | Conn_01x03 | Connector_PinSocket_2.54mm:PinSocket_1x03_P2.54mm_Vertical | J1, J2 |
| 2 | DIODE | akita:D_SOD123FL | D1, D2 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | Jumper_2_Bridged | Jumper:SolderJumper-2_P1.3mm_Bridged_Pad1.0x1.5mm | JP3 |
| 1 | LDO_3p_GOI | Package_TO_SOT_SMD:SOT-23 | U2 |
| 1 | S89431 | Package_TO_SOT_SMD:SOT-23-5 | U1 |

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

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

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

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

Chrismettal/flipper-zero-backpacks
Backpack-style addon boards for the Flipper Zero!



CRImier/MyKiCad
My KiCad boards. Can't be bothered uploading individually anymore, so here you go.
It measures 33 × 10 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).