Skip to the content
2 layers34 × 10 mmStateRetainer, the printed circuit board in 3D

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.md

StateRetainer

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
QtyValueFootprintReferences
210kResistor_SMD:R_0603_1608MetricR6, R7
2CON_GROVEakita:CON_GROVE_HCN1, CN2
2Jumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJP1, JP2
2RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR3, R4
2RResistor_SMD:R_0603_1608MetricR1, R2
10.1uCapacitor_SMD:C_0603_1608MetricC3
11kResistor_SMD:R_0603_1608MetricR5
1CCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC2
1CCapacitor_SMD:C_0603_1608MetricC1
1IC_555Package_SO:SOIC-8_5.23x5.23mm_P1.27mmU1
1Jumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged2Bar12_Pad1.0x1.5mmJP3
1LEDCapacitor_SMD:C_0603_1608MetricD1

Similar boards

  • 2 layers50 × 35 mmServo power, the printed circuit board in 3D

    Servo power

    earthtojake/text-to-cad

    Design physical products with AI

    17 parts26kMIT
  • 2 layers139.7 × 62.2 mmBreakout 60pin EEC IV, the printed circuit board in 3D

    Breakout 60pin EEC IV

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    17 parts1.2k
  • 2 layers29.2 × 55.9 mmDeniseadapter, the printed circuit board in 3D

    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 mmCluster, the printed circuit board in 3D

    Cluster

    JesusFreke/lalboard

    A 3D-printed keyboard inspired by the DataHand

    17 parts993
  • 2 layers56.3 × 55.7 mmStarNecklace, the printed circuit board in 3D

    StarNecklace

    hackclub/OnBoard

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

    17 parts915
  • 2 layers25 × 25 mmSmallEncoder, the printed circuit board in 3D

    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 mmAmoeba spc, the printed circuit board in 3D

    Amoeba spc

    mtl/keyboard-pcbs

    Keyboard PCBs

    17 parts485
  • 2 layers36 × 51 mmABSIS ALE, the printed circuit board in 3D

    ABSIS ALE

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    17 parts431

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).