# Finding Symbols in KiCad

## TXB0104PWR Symbol Location

The TXB0104PWR symbol is in your **custom library**: `Midea_ESP`

### How to Add TXB0104PWR in KiCad:

1. **Press `A`** (Add Symbol) or click the "Place Symbol" tool
2. **In the symbol chooser**, type: `Midea_ESP:TXB0104PWR`
   - Or search for: `TXB0104`
   - Or browse libraries and look for `Midea_ESP` library
3. **Select the symbol** and click OK
4. **Place it on the schematic**

### Full Symbol Path:
```
Library: Midea_ESP
Symbol Name: TXB0104PWR
Full Path: Midea_ESP:TXB0104PWR
```

---

## All Custom Symbols in Midea_ESP Library

Your custom library (`libs/Midea_AC_Controller.kicad_sym`) contains:

| Symbol Name | Full Path | Component |
|-------------|-----------|-----------|
| ESP32-WROOM-32E | `Midea_ESP:ESP32-WROOM-32E` | ESP32 module |
| TXB0104PWR | `Midea_ESP:TXB0104PWR` | Level shifter |
| AMS1117-3.3 | `Midea_ESP:AMS1117-3.3` | Voltage regulator |
| CP2102N | `Midea_ESP:CP2102N` | USB-to-Serial (not used) |

---

## If the Symbol Doesn't Appear

### Check 1: Library is Added to Project

1. In KiCad, go to **Preferences → Manage Symbol Libraries**
2. Check if `Midea_ESP` library is listed
3. If not, add it:
   - Click **Add** (or **+**)
   - **Type:** KiCad
   - **Library Path:** Browse to `libs/Midea_AC_Controller.kicad_sym`
   - **Library Name:** `Midea_ESP`

### Check 2: Library File Location

The library file should be at:
```
/home/nearxos/Projects/ESPHome/PCB_Board/Midea_ESP/libs/Midea_AC_Controller.kicad_sym
```

### Check 3: Symbol Name in Library

Open the library file and verify the symbol name is exactly:
```
(symbol "TXB0104PWR" ...
```

---

## Alternative: Search Methods in KiCad

### Method 1: Direct Search
1. Press `A` (Add Symbol)
2. In the search box, type: `TXB0104`
3. KiCad will search all loaded libraries

### Method 2: Browse by Library
1. Press `A` (Add Symbol)
2. In the library list, find `Midea_ESP`
3. Expand it to see all symbols
4. Select `TXB0104PWR`

### Method 3: Filter by Library
1. Press `A` (Add Symbol)
2. In the filter box, type: `Midea_ESP`
3. This shows only symbols from that library

---

## Verifying Library is Loaded

### In KiCad Schematic Editor:

1. **Preferences → Manage Symbol Libraries**
2. Look for `Midea_ESP` in the list
3. Check the **Path** column - should point to:
   ```
   /home/nearxos/Projects/ESPHome/PCB_Board/Midea_ESP/libs/Midea_AC_Controller.kicad_sym
   ```

### If Library is Missing:

1. Click **Add** button
2. Choose **Type:** KiCad
3. **Library Path:** Click folder icon and browse to:
   ```
   /home/nearxos/Projects/ESPHome/PCB_Board/Midea_ESP/libs/Midea_AC_Controller.kicad_sym
   ```
4. **Library Name:** `Midea_ESP` (or leave blank, KiCad will use filename)
5. Click **OK**
6. Click **OK** to close preferences

---

## Quick Reference: All Symbols for This Project

### Custom Library (Midea_ESP):
- `Midea_ESP:ESP32-WROOM-32E` - ESP32 module
- `Midea_ESP:TXB0104PWR` - Level shifter
- `Midea_ESP:AMS1117-3.3` - Voltage regulator

### Standard KiCad Libraries:
- `Device:C` - Capacitors (unpolarized)
- `Device:R` - Resistors
- `Device:LED` - LEDs
- `Button_Switch_SMD:SW_PUSH` - Buttons
- `Connector_JST:JST_XH_B4B-XH-A` - JST connector
- `Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical` - Programming header
- `power:+3V3` - Power symbols
- `power:+5V` - Power symbols
- `power:GND` - Power symbols

---

## Troubleshooting

### Problem: Symbol not found
**Solution:** 
1. Verify library is added (Preferences → Manage Symbol Libraries)
2. Check file path is correct
3. Restart KiCad if needed

### Problem: Library appears but symbol doesn't
**Solution:**
1. Check symbol name spelling (case-sensitive)
2. Verify symbol exists in library file
3. Try searching for just `TXB0104` (partial match)

### Problem: Can't add library
**Solution:**
1. Check file permissions
2. Verify file exists at the path
3. Make sure you're using KiCad 9.0.2 (your version)

---

## Step-by-Step: Adding TXB0104PWR

1. **Open KiCad Schematic Editor**
2. **Press `A`** (or click Place Symbol)
3. **In the search box**, type: `Midea_ESP:TXB0104PWR`
4. **If found**, click OK and place on schematic
5. **If not found**, go to Preferences → Manage Symbol Libraries and add the library

---

## Library File Structure

The library file contains all custom symbols:
```
libs/Midea_AC_Controller.kicad_sym
  ├── ESP32-WROOM-32E
  ├── TXB0104PWR  ← This is what you need
  ├── AMS1117-3.3
  └── CP2102N
```

All symbols are in one file, but KiCad treats them as separate symbols from the `Midea_ESP` library.


