Skip to the content
2 layers24 × 20 mmGroove knock sensor, the printed circuit board in 3D

Groove knock sensor

zosko/Grove-KnockKnock

Groove Knock-Knock Sensor for SeeedStudio

Size
24 × 20 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
3
Pads
7
Tracks, vias
8, 0
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
29 Jul 2022
Updated
19 Sep 2022

Overview

Groove knock sensor is an open-source printed circuit board by zosko, from the zosko/Grove-KnockKnock repository on GitHub. It is a 2-layer board of 24 × 20 mm with 5 parts on 3 nets, routed with 8 tracks and 0 vias.

Its parts include 1 resistor, 1 connector and 1 switch. It belongs with the sensors and measurement boards of this library.

README

README.md

Grove Knock-Knock Sensor for SeeedStudio

Read more at: https://www.seeedstudio.com/blog/2022/07/15/ignite-your-passion-fire-your-thoughts-develop-your-grove-sensor-with-seeed-fusion-for-a-chance-to-win-over-300usd-cash-prize%EF%BF%BC/

Introduction

A Grove KnockKnock Sensor is a simple device that detects vibrations or shocks from knocking or tapping it. It is basically an electronic switch which normally open. When it detects any shock or vibrations, it closes.

Components

A typical knock sensor consists of the main sensing element, which is a conductive vibrating spring, a Resistor and three Pins. The three pins of the Knock Sensor Module are GND, +5V and Sig. The following image shows the components of a Knock Sensor Module as well as the pins on it.

How does a Knock Sensor Work?

If you take a look at the schematic of the knock sensor, it basically consists of a switch and a resistor. The Vibrating Spring is represented as a switch here. The output pins of the sensor is pulled HIGH with the help of a 10KΩ Pull-up resistor. Under normal condition i.e. when there is no shock or vibrations, the output of the Knock Sensor is HIGH. When the sensor detects any vibrations or shocks, the vibrating spring i.e. switch closes and hence the output of the sensor (at the output pin) will become LOW.

Interfacing Knock Sensor

Now that we have seen the components of a knock sensor and how a typical knock sensor works, let us proceed with interfacing. I have designed a simple circuit using Arduino, Knock Sensor and an LED where the LED is turned on by Arduino when the knock sensor detects any vibrations.

Also the information of the knock sensor (knock or no knock) is displayed on the Arduino IDE’s serial monitor.

Code

c
const int knockPin = 8;

int knockVal = HIGH;
boolean knockAlarm = false;
unsigned long prevKnockTime;
int knockAlarmTime = 100;

void setup () {
  Serial.begin(9600);  
  pinMode(knockPin, INPUT) ;
}
void loop () {
  knockVal = digitalRead(knockPin);
  
  if (knockVal == LOW) {
    prevKnockTime = millis(); 
    if (!knockAlarm) {
      Serial.println("KNOCK, KNOCK");
      knockAlarm = true;
      delay(1000);
    }
  } else {
    if( (millis() - prevKnockTime) > knockAlarmTime && knockAlarm) {
      Serial.println("No Knocks");

Applications

The main purpose of the Knock Sensor is to detect vibrations or shocks. Hence, the main application of such sensor can be in Door Knock System, where when a door is knocked, a notifications (like a light or a buzzer) can be activated.

Previews

KiCad ViewSeeed PCB

PCB Design

For PCB design i will use services from SeeedFusion.

Seeed Fusion PCB Assembly Service offers one-stop prototyping for PCB manufacture, PCB assembly and as a result they produce superior quality PCBs and Fast Turnkey PCBA from 7 working days. When you prototype with Seeed Fusion, they can definitely provide Free DFA and Free functional tests for you!

Check out their website to know about their manufacturing capabilities and service. https://www.seeedstudio.com/pcb-assembly.html

Reasons to choose Seeed Studio

  • They provide PCB services at extremely low pricing and with excellent quality.
  • Their offer is structured in such a way that everyone may have these boards at a reasonable price.
  • They have a highly knowledgeable crew that leads their clients to avail deals and guides them about the costs and rates of different services.
  • A four-layer board with a comparable feature costs $5 for 10 pieces and is made in four days.
  • SMT stencil with size (10cm x 13cm) is available for $8.00 per piece.

Parts

5
QtyValueFootprintReferences
1GROVE-SILK-BIGU$3
110KResistor_SMD:R_0805_2012MetricR1
1ConnectorConnector_JST:JST_EH_B3B-EH-A_1x03_P2.50mm_VerticalJ1
1Vibration SwitchInductor_THT:L_Axial_L5.3mm_D2.2mm_P10.16mm_Horizontal_Vishay_IM-1SW1

The 4 most common of 5 parts.

Similar boards

  • 2 layers98 × 27 mmXy limit, the printed circuit board in 3D

    Xy limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    5 parts3.7k
  • 2 layers21 × 33 mm24g2usb pico2w, the printed circuit board in 3D

    24g2usb pico2w

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    5 parts1.7kApache-2.0
  • 2 layers53.2 × 59.6 mmA10 OLinuXino Lime Rev B SHIELD TEMPLATE, the printed circuit board in 3D

    A10 OLinuXino Lime Rev B SHIELD TEMPLATE

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    5 parts1.5k
  • 2 layers30 × 11 mmMain control board servo tester, the printed circuit board in 3D

    Main control board servo tester

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    5 parts1.1k
  • 2 layers78.8 × 35.3 mmKiCadTest, the printed circuit board in 3D

    KiCadTest

    hackclub/OnBoard

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

    5 parts915
  • 2 layers50 × 23 mmMiniCircuits LTCC, the printed circuit board in 3D

    MiniCircuits LTCC

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    5 parts828GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 light sensor, the printed circuit board in 3D

    L0 light sensor

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    5 parts546MIT

Questions

How big is the Groove knock sensor PCB?

It measures 24 × 20 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Groove knock sensor use?

5 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 Groove knock sensor KiCad files?

From the zosko/Grove-KnockKnock repository on GitHub, at the commit this page was made from: the board is KiCad/groove-knock-sensor.kicad_pcb and its schematic KiCad/groove-knock-sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Groove knock sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask zosko before reusing the design.