# Zoophagous Beige Matter Compiler ## Description - ESP32 DevKitC V4 (microcontroller) - 2x BME280 sensors (temperature, humidity, pressure) - 8ch relay board with 12VDC relays (NO/NC SPDT) - 12VDC power supply - USB connectivity - Various components (resistors, caps, opto couplers, op-amps, motor drivers, multiplexers) - 2x SPDT relay boards (for fan fail-safe) - 4x 2ch bidirectional level controllers (3.3V to 5V) - ESP32 GPIO 21 (SCL) to BME280's SCL - ESP32 GPIO 22 (SDA) to BME280's SDA - ESP32 GPIO 5 (digital output) to 8ch relay board input - ESP32 GPIO 25 (PWM output) -> Fan PWM (0-255 value) - ESP32 GPIO 26 (PWM output) -> Light PWM (0-255 value) - ESP32 GPIO 34 (analog input) -> Tachometer input (0-4095 value, 12-bit ADC) - Add a 5V voltage regulator (e.g., 78L05) to power the ESP32 and other 5V components - Add a 3.3V voltage regulator (e.g., 78L03) to power the BME280 sensors and other 3.3V components - Include decoupling capacitors (e.g., 10uF and 100nF) to filter the power supply lines - Ensure proper grounding and shielding to minimize noise and interference -- Power supply: - VCC=12VD Available, to be used for LM358P - 5V voltage regulator (78L05) - VCC=5V, GND=0V - 3.3V voltage regulator (78L03) - VCC=3.3V, GND=0V - 3.3V voltage regulator (78L03) - VCC=3.3V, GND=0V - Fan PWM boost: - Input (3.3V PWM): 0-3.3V, frequency=20kHz - Output (5V PWM): 0-5V, frequency=20kHz - LM358P op-amp (unity gain buffer) - VCC=5V, GND=0V - R1=1kΩ, R2=1kΩ, R3=1kΩ, R4=1kΩ - C1=10uF (50V), D1=1N4007 - 0-10V signal conditioning: - Input (3.3V PWM): 0-3.3V, frequency=13kHz - Output (0-10V): 0-10V, frequency=13kHz - LM358P op-amp (non-inverting amplifier) - VCC=5V, GND=0V - R5=2kΩ, R6=1kΩ, R7=2kΩ, R8=1kΩ, R9=1kΩ, R10=2kΩ - C2=10uF (50V), R11=10kΩ (1%) ------------------------------------ Fan PWM Boost (3.3V to 5V): 1. ESP32 GPIO 25 (PWM output) -> R1 (1kΩ) -> VCC (3.3V) 2. ESP32 GPIO 25 (PWM output) -> R2 (1kΩ) -> Vin (LM358P) 3. LM358P (Voltage Follower): - VCC (5 ## Project Details - **Owner:** diamond91 - **Created:** 5/3/2024 - **Last Updated:** 6/23/2024 - **Visibility:** Public - **Copies:** 1 ## Key Components ### ESP1 — [ESP32-DEVKITC](https://www.flux.ai/vasy_skral/esp32-devkitc~7mc.md) - Manufacturer Part Number: ESP32-DEVKITC-v4 - Manufacturer Name: Espressif Systems - Part Type: Development Boards - Datasheet URL: http://espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf **Pins:** - 3V3 [pin 1] - CLK [pin 20] - CMD [pin 18] - EN [pin 2] - EXT_5V [pin 19] - GND1 [pin 14] - GND2 [pin 32] - GND3 [pin 38] - IO0 [pin 25] - IO12 [pin 13] - IO13 [pin 15] - IO14 [pin 12] - IO15 [pin 23] - IO16 [pin 27] - IO17 [pin 28] - IO18 [pin 30] - IO19 [pin 31] - IO2 [pin 24] - IO21 [pin 33] - IO22 [pin 36] - IO23 [pin 37] - IO25 [pin 9] - IO26 [pin 10] - IO27 [pin 11] - IO32 [pin 7] - IO33 [pin 8] - IO34 [pin 5] - IO35 [pin 6] - IO4 [pin 26] - IO5 [pin 29] - RXD0 [pin 34] - SD0 [pin 21] - SD1 [pin 22] - SD2 [pin 16] - SD3 [pin 17] - SENSOR_VN [pin 4] - SENSOR_VP [pin 3] - TXD0 [pin 35] ### U1 — [LM358P](https://www.flux.ai/jecstronic/lm358p~nus.md) - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: LM358P - Manufacturer Name: Texas Instruments - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm358 - Part Type: Operational Amplifier (OP-AMP) **Pins:** - -IN1 [pin 2] - -IN2 [pin 6] - +IN1 [pin 3] - +IN2 [pin 5] - OUT1 [pin 1] - OUT2 [pin 7] - V- [pin 4] - V+ [pin 8] ### U2 — [LM358P](https://www.flux.ai/jecstronic/lm358p~nus.md) - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm358 - Part Type: Operational Amplifier (OP-AMP) - Manufacturer Name: Texas Instruments - Manufacturer Part Number: LM358P - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - -IN1 [pin 2] - -IN2 [pin 6] - +IN1 [pin 3] - +IN2 [pin 5] - OUT1 [pin 1] - OUT2 [pin 7] - V- [pin 4] - V+ [pin 8] ### U3 — [LM358P](https://www.flux.ai/jecstronic/lm358p~nus.md) - Part Type: Operational Amplifier (OP-AMP) - Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm358 - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: LM358P - Manufacturer Name: Texas Instruments **Pins:** - -IN1 [pin 2] - -IN2 [pin 6] - +IN1 [pin 3] - +IN2 [pin 5] - OUT1 [pin 1] - OUT2 [pin 7] - V- [pin 4] - V+ [pin 8] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/diamond91/zoophagous-beige-matter-compiler~i2](https://www.flux.ai/diamond91/zoophagous-beige-matter-compiler~i2).* --- *Generated from [https://www.flux.ai/diamond91/zoophagous-beige-matter-compiler~i2](https://www.flux.ai/diamond91/zoophagous-beige-matter-compiler~i2)*