

StateRetainer
State Retainer
- Size
- 34 × 10 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 17
- Nets
- 10
- Pads
- 45
- Tracks, vias
- 141, 7
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 23 Nov 2023
- Updated
- 5 Jan 2024
Overview
StateRetainer is an open-source printed circuit board by akita11, from the akita11/StateRetainer repository on GitHub, published under the MIT licence. It is a 2-layer board of 34 × 10 mm with 17 parts on 10 nets, routed with 141 tracks and 7 vias.
Its parts include 7 resistors, 3 capacitors, 2 connectors, 1 IC and 1 diode.
README
README.mdStateRetainer
Grove端子のデジタル信号の変化を、マイコン等で扱いやすいように「保持」するものです。スイッチを短い時間押す、などの単発信号をとらえ、一定時間、またはリセットを書けるまで、出力にその値を保持します。
内部的は、いわゆる"555"をそのまま使っています。(参考:555の動作)
ピン配置
- Grove(In側): IN/x/VDD/GND ※INは入力(プルアップ)
- Grove(Out側): OUT/RST/VDD/GND ※OUTは出力、RSTは入力(プルダウン)
OUT=1の時には、LEDが点灯し、出力の状態を確認できます。
※内部の回路(555)はGrove端子から供給される電源電圧で動作するため、RST入力を"1"とするには、電源電圧の2/3以上の電圧が必要です。またOUT出力の"1"の電圧も電源電圧となります。M5StackシリーズではVDDは5VですがIO電圧は3.3Vのため、RSTはぎりぎり"1"に足りません(個体差で"1"と判別される場合もあります)。またOUTの"1"は5Vのため、IOピンの入力電圧の範囲を超えます。そのため、確実な動作のためには、Grove端子の電源電圧として3.3Vを供給してください(こちらを使うとGroveケーブルの中継としてはさむことで3.3Vを生成して供給できます)
動作
目的にあわせて、以下の3通りの動作状態を設定できます。
保持動作(デフォルト状態)
INの状態変化を出力に保持します。いわゆるRSフリップフロップとしての動作です。なおINは内部でプルアップ、RSTはプルダウンされているので、IN、RSTの開放時には、それぞれ"1"、"0"と同等です(待機状態)。
- INが1→0になると、OUT=1となり、その状態を保持。
- その状態で、RSTを0→1とすると、OUT=0に復帰。
【構成】: C1/C2、R1/R3、R2/R4に部品を取り付けなず、JP1/JP2を開放(初期状態)
単発パルス発生動作
INが1→0になると、指定時間(T=1.1*CR[s])間のみ、OUT=1となり、その後、OUT=1に復帰します。
- 【構成】: R7を除去し、C1/C2にコンデンサC、R1/R3に抵抗Rを接続し、R2/R4は抵抗を取り付けず、JP1を短絡、JP2を開放
発振動作
入力に関係なく、f=1.44 / (Ra + 2*Rb)C [Hz]で発振します。
- 【構成】: R6, R7を除去し、R1/R3にRa、R2/R4にRb、C1/C2にCを接続し、JP2を短絡、JP1を開放
出力の極性の切り替え
出力OUTはJP3によって、正論理(デフォルト、OFF時=0、ON時=1)・負論理(オープンコレクタ、OFF時=開放、ON時=0)を切り替えできます。負論理の場合は保持動作時にはR1/R3にプルアップ抵抗を取り付け可能。上記のOUTの値の表記は正論理時の値の表記です。
Author
Junichi Akita (akita@ifdl.jp, @akita11)
Parts
17| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 10k | Resistor_SMD:R_0603_1608Metric | R6, R7 |
| 2 | CON_GROVE | akita:CON_GROVE_H | CN1, CN2 |
| 2 | Jumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JP1, JP2 |
| 2 | R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R3, R4 |
| 2 | R | Resistor_SMD:R_0603_1608Metric | R1, R2 |
| 1 | 0.1u | Capacitor_SMD:C_0603_1608Metric | C3 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R5 |
| 1 | C | Capacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mm | C2 |
| 1 | C | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | IC_555 | Package_SO:SOIC-8_5.23x5.23mm_P1.27mm | U1 |
| 1 | Jumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mm | JP3 |
| 1 | LED | Capacitor_SMD:C_0603_1608Metric | D1 |
Similar boards
- 2 layers50 × 35 mm

- 2 layers139.7 × 62.2 mm

- 2 layers29.2 × 55.9 mm

Deniseadapter
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
17 parts1kGPL-3.0 - 2 layers24.5 × 36.5 mm

- 2 layers56.3 × 55.7 mm

StarNecklace
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
17 parts915 - 2 layers25 × 25 mm

SmallEncoder
DDeGonge/OS-ARM
This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…
17 parts498MIT - 2 layers38.9 × 16.1 mm

- 2 layers36 × 51 mm

Questions
How big is the StateRetainer PCB?
It measures 34 × 10 mm and has 2 copper layers, 1.6 mm thick.
What parts does the StateRetainer use?
17 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 StateRetainer KiCad files?
From the akita11/StateRetainer repository on GitHub, at the commit this page was made from: the board is StateRetainer.kicad_pcb and its schematic StateRetainer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the StateRetainer 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).