
Nrf bga
github-linguist/linguist
Language Savant. If your repository's language is being reported incorrectly, send us a pull request!

An Arduino UNO R3 proximity alarm shield with a custom KiCAD PCB layout
HC SR04 Alarm Shield is an open-source printed circuit board by ebubeofochukwu, from the ebubeofochukwu/HC-SR04_Alarm_Shield repository on GitHub, published under the MIT licence. It is a 2-layer board of 68.6 × 53.5 mm with 12 parts on 33 nets, routed with 31 tracks and 0 vias.
Its parts include 5 connectors, 1 resistor and 1 diode.
An Arduino UNO R3 proximity alarm shield with a custom KiCAD PCB layout
HC-SR04 Ultrasonic Alarm Shield
A custom Arduino Uno R3 shield that triggers an audible and visual alarm when an object enters a 50-centimeter threshold. This project combines embedded C++ programming, ultrasonic sensor integration, and a custom PCB designed in KiCad.
Features:
Precision Tracking: Uses the HC-SR04 ultrasonic sensor to calculate real-time distance.
Dual Alert System: Triggers a high-output active buzzer and a bright red LED simultaneously.
Custom Shield Form Factor: Designed to plug directly onto an Arduino Uno R3 without messy jumper wires.
Safety Threshold: Hardcoded 50cm boundary zone for immediate proximity alerts.
Hardware Components:
Microcontroller: Arduino Uno R3
Sensor: HC-SR04 Ultrasonic Distance Sensor
Indicators: 1x Active Buzzer, 1x Red LED
Passives: 1x 220Ω Resistor (for LED protection)
PCB: Custom designed dual-layer board
Pin Mapping:
VCC: Connect to the 5V pin on the Arduino.
Trig: Connect to digital Pin 9.
Echo: Connect to digital Pin 10.
GND: Connect to any GND pin on the Arduino.
Buzzer / LED (Positive): Connect to digital Pin 13 (through a 220Ω resistor for LEDs).
Buzzer / LED (Negative): Connect to GND
Software & Engineering Challenges
The coding phase was the most challenging aspect of this project. Specifically, managing the precise timing required by the HC-SR04 sensor and handling signal bouncing issues required significant troubleshooting.
How I Solved It:
1. Pulse Timing: I utilized the pulseIn() function to accurately measure the microsecond travel time of the sound wave, converting it to centimeters using the speed of sound formula: Distance = (Time \* 0.0343) / 2.
2. Logic Optimization: I implemented a strict conditional threshold check to prevent the buzzer and LED from lagging or stuttering when an object hovers exactly at the 50cm line.
Gallery & Design Files
PCB Layout (KiCad)
[KiCad PCB Layout](images/pcb_layout.png)
Figure 1: 2D/3D render of the custom shield designed in KiCad.
You can prototype this project on a breadboard.
Installation & Usage
1. Clone this repository:
```bash
git clone https://github.com
```
2. Open src/YOUR\_CODE\_FILE\_NAME.ino in the Arduino IDE.
3. Connect your Arduino Uno R3 via USB.
4. Select Tools > Board > Arduino Uno** and the correct COM port.
5. Click Upload.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | MountingHole_3.2mm | Arduino_MountingHole:MountingHole_3.2mm | MH1, MH2, MH3, MH4 |
| 1 | Analog | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | J3 |
| 1 | Buzzer | Buzzer_Beeper:Buzzer_12x9.5RM7.6 | BZ1 |
| 1 | Conn_01x04_Socket | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J5 |
| 1 | Digital/PWM | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J4 |
| 1 | Digital/PWM | Connector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_Vertical | J2 |
| 1 | LED | LED_THT:LED_D5.0mm | D1 |
| 1 | Power | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J1 |
| 1 | R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |

github-linguist/linguist
Language Savant. If your repository's language is being reported incorrectly, send us a pull request!


google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards



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

VoronDesign/Voron-Tap
Tap is a nozzle-based z-probe for the V2 and Trident printer designs. The entire toolhead moves to trigger an optical switch. Tap offers many advantages:

stacksmashing/pico-tpmsniffer
A simple, very experimental TPM sniffer for LPC bus
It measures 68.6 × 53.5 mm and has 2 copper layers, 1.6 mm thick.
12 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 ebubeofochukwu/HC-SR04_Alarm_Shield repository on GitHub, at the commit this page was made from: the board is hardware/HC_SR04_Alarm_Shield.kicad_pcb and its schematic hardware/HC_SR04_Alarm_Shield.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).