Asim Zulfiqar Hands-on Esp32 With Arduino Ide May 2026

void loop() int sensorValue = analogRead(34); Serial.println(sensorValue); delay(500);

ESP32 successfully obtained an IP via DHCP – ready for IoT applications. 5. Key Learnings & Troubleshooting (Asim’s Notes) | Issue | Solution | |-------|----------| | Upload fails with “A fatal error occurred: Failed to connect to ESP32” | Hold BOOT button while uploading, then release. | | Serial monitor shows garbage | Set baud rate to 115200 (ESP32 default). | | Some pins don’t work as digital output | Avoid GPIOs 6–11 (used for internal flash). | | ADC readings noisy | Use analogRead(34) with averaging or capacitor. | 6. Comparison: ESP32 vs Arduino Uno (for this hands-on) | Feature | ESP32 | Arduino Uno | |---------|-------|--------------| | Arduino IDE support | ✅ (via extra package) | ✅ (native) | | Built-in Wi-Fi | ✅ | ❌ (needs shield) | | ADC resolution | 12-bit (4096 steps) | 10-bit (1024 steps) | | Price | ~$6-10 | ~$20-25 | | Ease of upload | Slight button dance | Plug & play | 7. Conclusion & Next Steps Conclusion by Asim Zulfiqar: The ESP32 is a powerful, affordable alternative to traditional Arduino boards, fully accessible through the Arduino IDE. Within two hours of hands-on work, I was able to blink LEDs, read analog sensors, scan Wi-Fi, and connect to the internet. The learning curve is minimal for anyone familiar with Arduino, and the built-in wireless features open up immediate IoT prototyping. asim zulfiqar hands-on esp32 with arduino ide

Potentiometer middle pin → GPIO34, outer pins → 3.3V & GND. void loop() int sensorValue = analogRead(34); Serial