# Hardware Setup This guide provides a clean and simple overview of the hardware used in the **Edge-AI Induction Motor Fault Detection System**, along with wiring, module connections, and testbench layout. This documentation is optimized for GitHub (not academic format). --- ## 🧩 1. Components Overview Below is the list of all hardware used in the system. ### **Microcontroller & Display** - **ESP32-S3 (USB-OTG)** - **ILI9488 TFT LCD (3.5-inch, 480×320)** - **Two Momentary Push Buttons** (UP/DOWN navigation) ### **Sensors** - **3× PZEM-004T v3** power monitoring modules - **801S Analog Vibration Sensor** - **DS18B20 Temperature Sensor** - **Current Transformers (CTs)** for AC current sensing ### **Motor Setup** - Three-phase induction motor - Dynamometer (load control) - Magnetic Contactor + Relay (for safety shutdown) ### **Power Requirements** - ESP32-S3 via USB 5V - PZEM modules powered by AC line - Sensors powered by 3.3V / 5V depending on type --- ## 🔌 2. Pin Configuration ### **ESP32-S3 to TFT (ILI9488)** ``` CS → GPIO 10 DC → GPIO 9 RST → GPIO 7 MOSI → GPIO 11 SCLK → GPIO 12 MISO → GPIO 13 ``` ### **ESP32-S3 to Sensors** ``` PZEM RX → GPIO 16 PZEM TX → GPIO 15 Temperature (DS18B20) → GPIO 4 Vibration Sensor → GPIO 3 (ADC) Buttons → GPIO 1 & 2 ```` > **Note:** All PZEM sensors share the same UART but use **different Modbus addresses**. --- ## ⚙️ 3. Wiring Diagram & Components ### All Components ![All Components](./images/all%20components.jpg) ### Schematic & PCB Design ![Schematic PCB](./images/schematic_pcb.jpg) --- ## 📡 4. Sensor Installation Notes ### **PZEM-004T Modules** * Phase A, B, C each uses a dedicated PZEM module * Use the CT clamp around each phase wire * Connect each module to the ESP32 via UART (shared bus) ### **Vibration Sensor (801S)** * Mount directly on motor casing * Use foam or glue for better mechanical contact * Connect output to ADC pin (0–3.3V range) ### **Temperature Sensor (DS18B20)** * Waterproof version recommended * Attach near motor winding/outer frame * Uses single-wire (1-Wire) protocol --- ## 🏗️ 5. Testbench Layout ### Full Research Setup ![Full Research Setup](./images/full%20researchsetup.jpg) ### Device Prototype ![Device Prototype](./images/Device%20Prototype.jpg) Recommended placement: * ESP32 + TFT mounted on front control panel * PZEM modules placed in insulated box * Wires routed cleanly to each measurement point * Dynamometer installed for load simulation * Relay + Magnetic Contactor inside electrical box --- ## 🔧 6. Safety Notes * Always isolate AC lines when wiring PZEM modules * Use insulated CT clamps * Secure the motor firmly to avoid vibration slip * Avoid connecting TFT and UART cables loosely * Ensure proper grounding for motor & electronics --- ## 📦 7. Folder Structure ``` docs/ ├── images/ │ ├── all components.jpg │ ├── schematic_pcb.jpg │ ├── full researchsetup.jpg │ ├── Device Prototype.jpg │ ├── showing healthy no load.jpg │ ├── bearing fault no load showing in display.jpg │ ├── graph visualisation.jpg │ ├── iot dashboard.png │ └── confusion matrix.png ├── hardware_setup.md ├── model_training.md ├── evaluation_results.md └── prognosis_algorithm.md ``` --- # ✅ Hardware Setup Completed Your hardware is now ready for firmware installation and TinyML deployment.