ESP32-Based Wi-Fi Controlled Smart Valve with Microphone Input
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an INMP441 microphone, a plastic solenoid valve, pushbuttons, a 5V relay, a 18650 3s2p battery pack, and a step-down buck converter. The circuit is designed to interface various input and output components with the ESP32, enabling functionalities such as audio input, relay control, and user interaction through pushbuttons.
Component List
ESP32
- Description: A powerful microcontroller with built-in 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
INMP441 FRONT MIC
- Description: A high-performance, low-power, digital-output, omnidirectional MEMS microphone.
- Pins: L/R, WS, SCK, SD, VDD, GND
Plastic Solenoid Valve
- Description: An electrically controlled valve used for fluid control.
- Pins: pin1, pin2
Pushbutton
- Description: A simple pushbutton switch used for user input.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
5V Relay
- Description: An electromechanical switch used to control high-power devices.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
18650 3s2p
- Description: A battery pack consisting of 18650 lithium-ion cells arranged in a 3s2p configuration.
- Pins: + Charge/Discharge, - Charge/Discharge, 5.4V
Step Down Buck Converter
- Description: A DC-DC converter used to step down voltage.
- Pins: IN +, IN - GND, OUT +, OUT - GND
Wiring Details
ESP32
- D32 connected to INMP441 FRONT MIC SCK
- D33 connected to INMP441 FRONT MIC SD
- D25 connected to INMP441 FRONT MIC WS
- D27 connected to 5V Relay In
- D14 connected to Pushbutton Pin 1 (in)
- D12 connected to Pushbutton Pin 1 (in)
- D13 connected to Pushbutton Pin 1 (in)
- GND connected to INMP441 FRONT MIC GND
- VIN connected to Step Down Buck Converter OUT +
- 3V3 connected to INMP441 FRONT MIC VDD
- GND connected to Pushbutton Pin 4 (out)
- GND connected to Step Down Buck Converter OUT - GND
INMP441 FRONT MIC
- SCK connected to ESP32 D32
- SD connected to ESP32 D33
- WS connected to ESP32 D25
- GND connected to ESP32 GND
- VDD connected to ESP32 3V3
Plastic Solenoid Valve
- pin1 connected to 18650 3s2p - Charge/Discharge
- pin1 connected to Step Down Buck Converter IN - GND
- pin2 connected to 5V Relay Normally Open
Pushbutton
- Pin 1 (in) connected to ESP32 D14
- Pin 1 (in) connected to ESP32 D12
- Pin 1 (in) connected to ESP32 D13
- Pin 4 (out) connected to 5V Relay GND
- Pin 4 (out) connected to Step Down Buck Converter OUT - GND
- Pin 4 (out) connected to ESP32 GND
5V Relay
- In connected to ESP32 D27
- VCC connected to Step Down Buck Converter OUT +
- GND connected to Pushbutton Pin 4 (out)
- GND connected to Step Down Buck Converter OUT - GND
- Normally Open connected to Plastic Solenoid Valve pin2
- Common terminal connected to 18650 3s2p + Charge/Discharge
- Common terminal connected to Step Down Buck Converter IN +
18650 3s2p
- - Charge/Discharge connected to Plastic Solenoid Valve pin1
- - Charge/Discharge connected to Step Down Buck Converter IN - GND
- + Charge/Discharge connected to 5V Relay Common terminal
- + Charge/Discharge connected to Step Down Buck Converter IN +
Step Down Buck Converter
- IN + connected to 5V Relay Common terminal
- IN + connected to 18650 3s2p + Charge/Discharge
- IN - GND connected to Plastic Solenoid Valve pin1
- IN - GND connected to 18650 3s2p - Charge/Discharge
- OUT + connected to 5V Relay VCC
- OUT + connected to ESP32 VIN
- OUT - GND connected to Pushbutton Pin 4 (out)
- OUT - GND connected to ESP32 GND
Code
No code is provided for this circuit.