217 lines
10 KiB
XML
217 lines
10 KiB
XML
<svg viewBox="0 0 1000 700" xmlns="http://www.w3.org/2000/svg">
|
|
<!-- Title -->
|
|
<text x="500" y="30" text-anchor="middle" font-size="24" font-weight="bold">ESP32-S3-MINI-1 Plant Watering System</text>
|
|
|
|
<!-- ESP32-S3-MINI-1 -->
|
|
<g id="esp32">
|
|
<rect x="50" y="200" width="200" height="300" fill="#2C3E50" stroke="black" stroke-width="2"/>
|
|
<text x="150" y="190" text-anchor="middle" font-size="16" font-weight="bold">ESP32-S3-MINI-1</text>
|
|
|
|
<!-- Left pins -->
|
|
<text x="40" y="235" text-anchor="end" font-size="12">3V3</text>
|
|
<circle cx="60" cy="230" r="4" fill="red"/>
|
|
|
|
<text x="40" y="255" text-anchor="end" font-size="12">GND</text>
|
|
<circle cx="60" cy="250" r="4" fill="black"/>
|
|
|
|
<text x="40" y="295" text-anchor="end" font-size="12">GPIO4</text>
|
|
<circle cx="60" cy="290" r="4" fill="yellow"/>
|
|
<text x="65" y="295" font-size="10" fill="blue">(AIN1)</text>
|
|
|
|
<text x="40" y="315" text-anchor="end" font-size="12">GPIO5</text>
|
|
<circle cx="60" cy="310" r="4" fill="yellow"/>
|
|
<text x="65" y="315" font-size="10" fill="blue">(AIN2)</text>
|
|
|
|
<text x="40" y="335" text-anchor="end" font-size="12">GPIO6</text>
|
|
<circle cx="60" cy="330" r="4" fill="yellow"/>
|
|
<text x="65" y="335" font-size="10" fill="blue">(BIN1)</text>
|
|
|
|
<text x="40" y="355" text-anchor="end" font-size="12">GPIO7</text>
|
|
<circle cx="60" cy="350" r="4" fill="yellow"/>
|
|
<text x="65" y="355" font-size="10" fill="blue">(BIN2)</text>
|
|
|
|
<text x="40" y="375" text-anchor="end" font-size="12">GPIO8</text>
|
|
<circle cx="60" cy="370" r="4" fill="orange"/>
|
|
<text x="65" y="375" font-size="10" fill="blue">(PWMA)</text>
|
|
|
|
<text x="40" y="395" text-anchor="end" font-size="12">GPIO9</text>
|
|
<circle cx="60" cy="390" r="4" fill="orange"/>
|
|
<text x="65" y="395" font-size="10" fill="blue">(PWMB)</text>
|
|
|
|
<text x="40" y="415" text-anchor="end" font-size="12">GPIO10</text>
|
|
<circle cx="60" cy="410" r="4" fill="purple"/>
|
|
<text x="65" y="415" font-size="10" fill="blue">(STBY)</text>
|
|
|
|
<!-- Right pins -->
|
|
<text x="260" y="295" text-anchor="start" font-size="12">GPIO1</text>
|
|
<circle cx="240" cy="290" r="4" fill="green"/>
|
|
<text x="235" y="295" text-anchor="end" font-size="10" fill="blue">(ADC1)</text>
|
|
|
|
<text x="260" y="315" text-anchor="start" font-size="12">GPIO2</text>
|
|
<circle cx="240" cy="310" r="4" fill="green"/>
|
|
<text x="235" y="315" text-anchor="end" font-size="10" fill="blue">(ADC2)</text>
|
|
</g>
|
|
|
|
<!-- TB6612FNG Motor Driver -->
|
|
<g id="motor-driver">
|
|
<rect x="400" y="200" width="180" height="300" fill="#34495E" stroke="black" stroke-width="2"/>
|
|
<text x="490" y="190" text-anchor="middle" font-size="16" font-weight="bold">TB6612FNG</text>
|
|
|
|
<!-- Left side pins -->
|
|
<text x="390" y="225" text-anchor="end" font-size="12">VM</text>
|
|
<circle cx="410" cy="220" r="4" fill="red"/>
|
|
|
|
<text x="390" y="245" text-anchor="end" font-size="12">VCC</text>
|
|
<circle cx="410" cy="240" r="4" fill="red"/>
|
|
|
|
<text x="390" y="265" text-anchor="end" font-size="12">GND</text>
|
|
<circle cx="410" cy="260" r="4" fill="black"/>
|
|
|
|
<text x="390" y="285" text-anchor="end" font-size="12">AIN1</text>
|
|
<circle cx="410" cy="280" r="4" fill="yellow"/>
|
|
|
|
<text x="390" y="305" text-anchor="end" font-size="12">AIN2</text>
|
|
<circle cx="410" cy="300" r="4" fill="yellow"/>
|
|
|
|
<text x="390" y="325" text-anchor="end" font-size="12">BIN1</text>
|
|
<circle cx="410" cy="320" r="4" fill="yellow"/>
|
|
|
|
<text x="390" y="345" text-anchor="end" font-size="12">BIN2</text>
|
|
<circle cx="410" cy="340" r="4" fill="yellow"/>
|
|
|
|
<text x="390" y="365" text-anchor="end" font-size="12">PWMA</text>
|
|
<circle cx="410" cy="360" r="4" fill="orange"/>
|
|
|
|
<text x="390" y="385" text-anchor="end" font-size="12">PWMB</text>
|
|
<circle cx="410" cy="380" r="4" fill="orange"/>
|
|
|
|
<text x="390" y="405" text-anchor="end" font-size="12">STBY</text>
|
|
<circle cx="410" cy="400" r="4" fill="purple"/>
|
|
|
|
<!-- Right side pins -->
|
|
<text x="590" y="245" text-anchor="start" font-size="12">A01</text>
|
|
<circle cx="570" cy="240" r="4" fill="cyan"/>
|
|
|
|
<text x="590" y="265" text-anchor="start" font-size="12">A02</text>
|
|
<circle cx="570" cy="260" r="4" fill="cyan"/>
|
|
|
|
<text x="590" y="345" text-anchor="start" font-size="12">B01</text>
|
|
<circle cx="570" cy="340" r="4" fill="cyan"/>
|
|
|
|
<text x="590" y="365" text-anchor="start" font-size="12">B02</text>
|
|
<circle cx="570" cy="360" r="4" fill="cyan"/>
|
|
</g>
|
|
|
|
<!-- Pump 1 -->
|
|
<g id="pump1">
|
|
<rect x="700" y="210" width="80" height="80" fill="#3498DB" stroke="black" stroke-width="2"/>
|
|
<text x="740" y="245" text-anchor="middle" font-size="14" font-weight="bold">Pump 1</text>
|
|
<text x="740" y="265" text-anchor="middle" font-size="12">12V DC</text>
|
|
<circle cx="710" cy="250" r="4" fill="cyan"/>
|
|
<circle cx="710" cy="270" r="4" fill="cyan"/>
|
|
</g>
|
|
|
|
<!-- Pump 2 -->
|
|
<g id="pump2">
|
|
<rect x="700" y="320" width="80" height="80" fill="#3498DB" stroke="black" stroke-width="2"/>
|
|
<text x="740" y="355" text-anchor="middle" font-size="14" font-weight="bold">Pump 2</text>
|
|
<text x="740" y="375" text-anchor="middle" font-size="12">12V DC</text>
|
|
<circle cx="710" cy="360" r="4" fill="cyan"/>
|
|
<circle cx="710" cy="380" r="4" fill="cyan"/>
|
|
</g>
|
|
|
|
<!-- Soil Moisture Sensor 1 -->
|
|
<g id="moisture1">
|
|
<rect x="50" y="550" width="120" height="80" fill="#8B4513" stroke="black" stroke-width="2"/>
|
|
<text x="110" y="540" text-anchor="middle" font-size="14" font-weight="bold">Soil Sensor 1</text>
|
|
<text x="65" y="575" font-size="12">VCC</text>
|
|
<circle cx="160" cy="570" r="4" fill="red"/>
|
|
<text x="65" y="595" font-size="12">GND</text>
|
|
<circle cx="160" cy="590" r="4" fill="black"/>
|
|
<text x="65" y="615" font-size="12">SIG</text>
|
|
<circle cx="160" cy="610" r="4" fill="green"/>
|
|
</g>
|
|
|
|
<!-- Soil Moisture Sensor 2 -->
|
|
<g id="moisture2">
|
|
<rect x="250" y="550" width="120" height="80" fill="#8B4513" stroke="black" stroke-width="2"/>
|
|
<text x="310" y="540" text-anchor="middle" font-size="14" font-weight="bold">Soil Sensor 2</text>
|
|
<text x="265" y="575" font-size="12">VCC</text>
|
|
<circle cx="360" cy="570" r="4" fill="red"/>
|
|
<text x="265" y="595" font-size="12">GND</text>
|
|
<circle cx="360" cy="590" r="4" fill="black"/>
|
|
<text x="265" y="615" font-size="12">SIG</text>
|
|
<circle cx="360" cy="610" r="4" fill="green"/>
|
|
</g>
|
|
|
|
<!-- Power Supply -->
|
|
<g id="power">
|
|
<rect x="700" y="450" width="100" height="80" fill="#E74C3C" stroke="black" stroke-width="2"/>
|
|
<text x="750" y="440" text-anchor="middle" font-size="14" font-weight="bold">12V Power</text>
|
|
<text x="750" y="480" text-anchor="middle" font-size="12">12V DC</text>
|
|
<text x="750" y="500" text-anchor="middle" font-size="12">2A min</text>
|
|
<circle cx="710" cy="470" r="4" fill="red"/>
|
|
<circle cx="710" cy="490" r="4" fill="black"/>
|
|
</g>
|
|
|
|
<!-- Connections -->
|
|
<!-- ESP32 to Motor Driver -->
|
|
<line x1="60" y1="290" x2="410" y2="280" stroke="yellow" stroke-width="2"/>
|
|
<line x1="60" y1="310" x2="410" y2="300" stroke="yellow" stroke-width="2"/>
|
|
<line x1="60" y1="330" x2="410" y2="320" stroke="yellow" stroke-width="2"/>
|
|
<line x1="60" y1="350" x2="410" y2="340" stroke="yellow" stroke-width="2"/>
|
|
<line x1="60" y1="370" x2="410" y2="360" stroke="orange" stroke-width="2"/>
|
|
<line x1="60" y1="390" x2="410" y2="380" stroke="orange" stroke-width="2"/>
|
|
<line x1="60" y1="410" x2="410" y2="400" stroke="purple" stroke-width="2"/>
|
|
|
|
<!-- Power connections -->
|
|
<line x1="60" y1="230" x2="410" y2="240" stroke="red" stroke-width="2"/>
|
|
<line x1="60" y1="250" x2="410" y2="260" stroke="black" stroke-width="2"/>
|
|
|
|
<!-- Motor Driver to Pumps -->
|
|
<line x1="570" y1="240" x2="710" y2="250" stroke="cyan" stroke-width="2"/>
|
|
<line x1="570" y1="260" x2="710" y2="270" stroke="cyan" stroke-width="2"/>
|
|
<line x1="570" y1="340" x2="710" y2="360" stroke="cyan" stroke-width="2"/>
|
|
<line x1="570" y1="360" x2="710" y2="380" stroke="cyan" stroke-width="2"/>
|
|
|
|
<!-- Power to Motor Driver -->
|
|
<line x1="710" y1="470" x2="410" y2="220" stroke="red" stroke-width="2"/>
|
|
<line x1="710" y1="490" x2="410" y2="260" stroke="black" stroke-width="2"/>
|
|
|
|
<!-- ESP32 to Soil Sensors -->
|
|
<line x1="240" y1="290" x2="160" y2="610" stroke="green" stroke-width="2"/>
|
|
<line x1="240" y1="310" x2="360" y2="610" stroke="green" stroke-width="2"/>
|
|
|
|
<!-- Power to Soil Sensors -->
|
|
<path d="M 60 230 L 30 230 L 30 520 L 160 520 L 160 570" stroke="red" stroke-width="2" fill="none"/>
|
|
<line x1="160" y1="520" x2="360" y2="520" stroke="red" stroke-width="2"/>
|
|
<line x1="360" y1="520" x2="360" y2="570" stroke="red" stroke-width="2"/>
|
|
|
|
<path d="M 60 250 L 20 250 L 20 530 L 160 530 L 160 590" stroke="black" stroke-width="2" fill="none"/>
|
|
<line x1="160" y1="530" x2="360" y2="530" stroke="black" stroke-width="2"/>
|
|
<line x1="360" y1="530" x2="360" y2="590" stroke="black" stroke-width="2"/>
|
|
|
|
<!-- Legend -->
|
|
<g id="legend">
|
|
<rect x="820" y="200" width="160" height="200" fill="#ECF0F1" stroke="black" stroke-width="1"/>
|
|
<text x="900" y="220" text-anchor="middle" font-size="14" font-weight="bold">Wire Colors</text>
|
|
<line x1="830" y1="240" x2="860" y2="240" stroke="red" stroke-width="2"/>
|
|
<text x="870" y="245" font-size="12">Power (3.3V/12V)</text>
|
|
<line x1="830" y1="260" x2="860" y2="260" stroke="black" stroke-width="2"/>
|
|
<text x="870" y="265" font-size="12">Ground</text>
|
|
<line x1="830" y1="280" x2="860" y2="280" stroke="yellow" stroke-width="2"/>
|
|
<text x="870" y="285" font-size="12">Direction Control</text>
|
|
<line x1="830" y1="300" x2="860" y2="300" stroke="orange" stroke-width="2"/>
|
|
<text x="870" y="305" font-size="12">PWM Speed</text>
|
|
<line x1="830" y1="320" x2="860" y2="320" stroke="purple" stroke-width="2"/>
|
|
<text x="870" y="325" font-size="12">Standby</text>
|
|
<line x1="830" y1="340" x2="860" y2="340" stroke="green" stroke-width="2"/>
|
|
<text x="870" y="345" font-size="12">Analog Signal</text>
|
|
<line x1="830" y1="360" x2="860" y2="360" stroke="cyan" stroke-width="2"/>
|
|
<text x="870" y="365" font-size="12">Motor Output</text>
|
|
</g>
|
|
|
|
<!-- Notes -->
|
|
<text x="50" y="670" font-size="12" font-weight="bold">Notes:</text>
|
|
<text x="50" y="685" font-size="11">• VM (Motor Voltage): 12V DC for pumps | • VCC (Logic Voltage): 3.3V from ESP32 | • STBY must be HIGH to enable motors</text>
|
|
</svg> |