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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%