Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Tilt-Activated Smart Light with Relay Control

View and Edit Project In Cirkit DesignerImage of ESP32-Based Tilt-Activated Smart Light with Relay Control

Circuit Documentation

Summary

This circuit is designed to control a bulb using a relay module, which is triggered by an ESP32 microcontroller. The ESP32 receives input from two tilt sensors. The circuit is powered by a 12V battery.

Component List

  1. Bulb

    • Description: A standard bulb.
    • Pins: GND, power
  2. Tilt Sensor (1)

    • Description: A sensor that detects tilt.
    • Pins: A0, D0, GND, VCC
  3. Tilt Sensor (2)

    • Description: A sensor that detects tilt.
    • Pins: A0, D0, GND, VCC
  4. Relay Module 5V-30V

    • Description: A relay module that can switch high voltage devices.
    • Pins: common contact, normally open, normally closed, trigger, V-, V+
  5. 12V Battery

    • Description: A 12V power source.
    • Pins: -, +
  6. ESP32

    • Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT

Wiring Details

Bulb

Tilt Sensor (1)

Tilt Sensor (2)

Relay Module 5V-30V

12V Battery

ESP32

Code

No code is provided for this circuit.