Skip to content

LPNU-IoT/esp32Guide

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Study Material & Example Codes

This repository is a comprehensive collection of study materials, example codes, and notes for learning and experimenting with the ESP32 microcontroller. It is designed for students, hobbyists, and developers who want to explore various features of the ESP32, including GPIO, analog/digital I/O, interrupts, timers, PWM, touch sensors, flash memory, and more. Future updates will include Web Server, LoRa, BLE, and other advanced topics.


📚 Contents

  • Analog Read: Reading analog values from sensors.
  • Flash Memory: Storing and retrieving data in ESP32's flash.
  • Hall Effect Sensor: Using the built-in hall sensor.
  • Interrupts & Timers: Handling hardware interrupts and timers.
  • LED Control: Basic GPIO output for LEDs.
  • PWM: Generating PWM signals for motors, LEDs, etc.
  • Touch Sensor: Using ESP32's capacitive touch inputs.
  • Troubleshooting: Common issues and solutions.
  • Introduction: Overview and getting started notes.

Coming Soon:

  • Web Server (HTTP/REST, WebSocket)
  • LoRa Communication
  • BLE (Bluetooth Low Energy)
  • OTA Updates
  • More peripherals and advanced examples

📁 Project Structure

esp32Funcs/
│
├── include/           # Header files (if any)
├── lib/               # External libraries
├── src/               # Source code examples
│   ├── analogRead.cpp
│   ├── flashMemory.cpp
│   ├── hallEffectSensor.cpp
│   ├── InterruptsTimers.cpp
│   ├── introduction.cpp
│   ├── led.cpp
│   ├── pwm.cpp
│   ├── touch.cpp
│   ├── troubleshooting.cpp
├── test/              # Test files
├── platformio.ini     # PlatformIO project configuration
└── README.md          # This file

📝 Notes

  • All code examples are written in C++ for PlatformIO.
  • Each .cpp file is self-contained and demonstrates a specific feature.
  • Use PlatformIO in VS Code for easy building and uploading.
  • Check the troubleshooting.cpp and this README for common issues and tips.

🚀 Getting Started

  1. Install PlatformIO in VS Code.
  2. Clone this repository:
    git clone https://github.com/yourusername/esp32Funcs.git
    
  3. Open the project in VS Code.
  4. Connect your ESP32 board and select the correct COM port.
  5. Build and upload any example from the src/ folder.

💡 Learning Tips

  • Start with the introduction.cpp and LED examples if you are new to ESP32.
  • Experiment by modifying the code and observing the results.
  • Read the comments in each file for explanations.
  • Use the PlatformIO Serial Monitor for debugging and output.

📦 Contributing

Feel free to contribute new examples, notes, or improvements via pull requests!


📖 References


Happy

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%