Skip to content

docs: add comprehensive hardware wiring guide (#4)#7

Open
addidea wants to merge 1 commit intoClawland-AI:mainfrom
addidea:docs/hardware-wiring-guide
Open

docs: add comprehensive hardware wiring guide (#4)#7
addidea wants to merge 1 commit intoClawland-AI:mainfrom
addidea:docs/hardware-wiring-guide

Conversation

@addidea
Copy link

@addidea addidea commented Feb 16, 2026

Description

Complete hardware wiring guide with diagrams, code examples, and troubleshooting for common sensors.

Closes #4

What's Included

Pin Reference Table

  • ESP32 GPIO functions and safe pins for sensors
  • I2C/SPI/UART default pins
  • Strapping pins to avoid during boot
  • ADC-only pins for analog sensors

4 Sensor Wiring Diagrams (ASCII art)

  1. DHT22 - Temperature & humidity (±0.5°C, ±2% RH)
  2. DS18B20 - Waterproof 1-Wire temperature probe
  3. PIR HC-SR501 - Motion sensor with sensitivity tuning
  4. Relay Module - High-voltage device control (AC mains)

For Each Sensor:

  • Pin connection diagram (visual ASCII art)
  • Pullup resistor requirements and wiring
  • Working code example with Arduino libraries
  • Parts list with approximate prices
  • Common issues & troubleshooting

Power Supply Guidelines:

  • USB power budget calculation (~200-300mA typical)
  • When to use external 5V power (relays, motors)
  • Battery operation with deep sleep (~833 days on 1000mAh)

Safety Section:

  • ⚠️ AC mains handling warnings (110V/220V)
  • Wire gauge recommendations (14-16 AWG)
  • Insulation and grounding requirements

Key Features

  • Copy-paste ready: All code examples work out-of-the-box
  • Visual diagrams: ASCII art wiring for clarity
  • Beginner-friendly: Explains pullup resistors, polarity, safety
  • Production-ready: Real-world troubleshooting tips

Example Diagrams

Next Steps

Ready to build! ⚡


Note

Low Risk
Adds a new documentation file only; no runtime code or build changes, so risk is limited to potential accuracy of wiring guidance.

Overview
Adds a new HARDWARE.md hardware wiring guide for ESP32-based MicroClaw builds, including a GPIO/pin reference plus wiring diagrams for DHT22, DS18B20, HC-SR501 PIR, and a single-channel relay.

Includes copy-paste Arduino code snippets, parts lists, power-supply sizing guidance, common troubleshooting tips, and explicit AC-mains safety warnings for relay use.

Written by Cursor Bugbot for commit 1f9df7b. This will update automatically on new commits. Configure here.

Closes Clawland-AI#4

Complete wiring diagrams and pin reference for common sensors:

**Pin Reference Table**:
- ESP32 GPIO functions and safe pins
- I2C, SPI, UART defaults
- Strapping pins to avoid

**Sensor Wiring Diagrams** (ASCII art + tables):
1. **DHT22** - Temperature/humidity with 10kΩ pullup
2. **DS18B20** - Waterproof 1-Wire with 4.7kΩ pullup
3. **PIR HC-SR501** - Motion sensor with sensitivity adjustment
4. **Relay Module** - High-voltage device control with safety warnings

**Each Sensor Includes**:
- Pin connection diagram (ASCII art)
- Pullup resistor requirements
- Code example with Arduino library
- Parts list with prices
- Common issues & fixes

**Power Supply Guidelines**:
- USB power budget calculation
- External power for relays/motors
- Battery operation with deep sleep

**Safety Section**:
- AC mains handling warnings
- Wire gauge recommendations
- Insulation requirements

Production-ready guide for hardware makers! ⚡
@addidea addidea requested a review from Tonyfudecai as a code owner February 16, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add hardware wiring guide for common sensor setups

1 participant

Comments