✅ Before You Begin: Setup Steps for ESP32 Kit
Follow these steps once, before running any of the 16 component tests.
Plug the 9V/2A DC adapter into the DC INPUT (+9V) jack on the board.
→ This powers the entire system, including the ESP32 module and peripherals.
A red or green power LED on the board should light up. If not, check the adapter.
Use a USB cable (Type-A to Micro-B or USB-C, depending on your ESP32 Dev Module).
Plug one end into your computer/laptop, and the other into the ESP32 Dev Kit (usually labeled “USB” or near CN1–CN3).
The ESP32 will now receive both data and backup power via USB—but the main power must still come from the 9V adapter for reliable sensor operation.
Download and install Arduino IDE from https://www.arduino.cc/en/software.
Follow the instructions in “Instal Arduino IDE.pdf” (included in your kit package).
⚠️ The ESP32 is not an Arduino Uno—it needs special setup!
Open Arduino IDE.
Go to File → Preferences.
In “Additional Boards Manager URLs”, paste: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Click OK.
Go to Tools → Board → Boards Manager.
Search for “ESP32”, then install “ESP32 by Espressif Systems”.
After installation, go to Tools → Board and select:
ESP32 Dev Module (or similar, e.g., “DOIT ESP32 DevKit V1”)
Install all libraries listed in your kit’s documentation using one of the methods in “Cara menambahkan library ke Arduino IDE.pdf”:
LiquidCrystal_I2C
RTClib
DHT sensor library + Adafruit_Sensor
MFRC522
WiFiEsp (Note: For ESP32, you usually use built-in WiFi.h, but keep it if required)
And others as needed.
💡 Tip: Most test programs use standard ESP32 libraries—so double-check filenames!
Open the “Program Testing” folder from your kit’s files.
Each test has its own .ino file (e.g., TEST_1_4_TOMBOL_4_LED.ino).
With the ESP32 connected via USB:
Go to Tools → Port
Choose the correct COM port (Windows) or /dev/cu.* (macOS/Linux).
If unsure, unplug the USB, check the list, plug it back in, and see which new port appears.
✅ Now you’re ready!
Action: Upload TEST_1_4_TOMBOL_4_LED.ino. Press each button one by one.
Expected Result: The matching LED turns on when you press its button.
Pins Test 1
Action: Upload TEST_2_BUZZER_RGB.ino.
Expected Result: The buzzer beeps, and the RGB LED blinks red, then green, then blue.
Pins Test 2
Action: Upload TEST_3_LCD_I2C.ino.
Expected Result: The LCD screen shows: “Test Trainer Kit IoT ESP32”.
Pins Test 3
Action: Upload TEST_4_RTC.ino and open the Serial Monitor at 115200 baud.
Expected Result: You see the current day, date, and time updating every second (e.g., Thursday, 18/9/2025 14:24:26).
Pins Test 4
Action: Upload TEST_5_Gas_MQ2.ino and open Serial Monitor (115200 baud).
Expected Result: You see analog and digital values. When you bring gas (like from a lighter) near the sensor, the numbers change.
Action: Upload TEST_6_PIR.ino and open Serial Monitor (115200 baud).
Expected Result: When you wave your hand in front of the sensor, it prints “Motion detected!”.
Action: Upload TEST_7_2RELAY.ino.
Expected Result: The two relays click ON and OFF one after the other, repeating in a loop.
Action: Upload TEST_8_SERVO.ino.
Expected Result: The servo arm rotates to different angles (like 0°, 90°, 180°) and then returns, repeating the motion.
Action: Upload TEST_9_Membaca_RFID_TAG.ino, open Serial Monitor (115200 baud), and hold an RFID card/tag near the reader.
Expected Result: The unique ID of the card appears in the Serial Monitor (e.g., ID: 43deda2c).
Action: Upload TEST_10_ULTRASONIC.ino and open Serial Monitor (115200 baud).
Expected Result: It shows the distance to an object in centimeters (e.g., jarak: 14cm). Move your hand closer or farther to see the number change.
Action: Upload TEST_11_LM35.ino and open Serial Monitor (115200 baud).
Expected Result: It displays the room temperature in °C (e.g., Temperature = 32.50°C).
Action: Upload TEST_12_POTENSIO.ino and open Serial Monitor (115200 baud). Turn the knob slowly.
Expected Result: You see changing ADC values (0–4095) and voltage in millivolts (mV).
Action: Upload TEST_13_DHT22.ino and open Serial Monitor (115200 baud).
Expected Result: It shows room temperature and humidity (e.g., Suhu=31.30 | Humi=76.10).
Action: Upload TEST_14_LDR.ino and open Serial Monitor (115200 baud). Cover the LDR with your hand, then shine light on it.
Expected Result: Analog values go down in bright light and up in darkness. Digital output changes between HIGH and LOW.
Action: Upload TEST_15_INFRARED.ino and open Serial Monitor (115200 baud). Place an object in front of the sensor.
Expected Result: It prints “Obstacle detected!” when something blocks the infrared beam.
Action: Open TEST_16_WiFi.ino, replace "YOUR_WIFI_NAME" and "YOUR_WIFI_PASSWORD" with your network details, then upload. Open Serial Monitor (115200 baud) and press the ESP32 reset button if needed.
Expected Result: It connects to Wi-Fi and prints:
“WiFi terhubung!”
An IP address like xx.xxx.xx.x00
Open that IP in a web browser on the same network to see a simple control page.