ESP 32 ADVENTURE


About ESP 32 dev :

  • Dual-core Tensilica Xtensa LX6 processor

  • Built-in Wi-Fi (802.11 b/g/n)

    • Bluetooth 4.2 (Classic + BLE)

    • Multiple GPIO pins (input/output control)

    • Analog to Digital Converters (ADC) and Digital to Analog Converters (DAC)

    • PWM, I²C, SPI, UART, and other communication interfaces

    • Flash memory and RAM (typically 4MB Flash, 520KB SRAM)

    • Low power modes for battery-powered applications

    example :

  • TOUCH SENSEING =
                
  • The ESP32 uses capacitive sensing to detect changes in electrical charge.

  • When a finger touches or comes close to a touch-capable GPIO pin, it changes the capacitance at that pin.

  • The ESP32 measures this change and can trigger an action e.g., turning on a light, registering a button press.

  • code :

  • int ledPin = 2;
    void setup() {
      // put your setup code here, to run once:
    Serial.begin(115200);
    pinMode(ledPin, OUTPUT);
    }

    void loop() {
      // put your main code here, to run repeatedly:
    if(touchRead(T0) < 30){
      digitalWrite(ledPin, HIGH);
      }else{
        digitalWrite(ledPin, LOW);
      }
    delay(200);
    }
  • BLINK =

  • esp 32 have capability to code the in built light turn blue after delay of choice in certain time remember to press boot button for at least 3sec to complete process easily it can be customized according to user .

  • code :

  • /*
      Blink

      Turns an LED on for one second, then off for one second, repeatedly.

     
    */

    // the setup function runs once when you press reset or power the board
    void setup() {
      // initialize digital pin LED_BUILTIN as an output.
      pinMode(LED_BUILTIN, OUTPUT);
    }

    // the loop function runs over and over again forever
    void loop() {
      digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)
      delay(1000);                      // wait for a second
      digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW
      delay(1000);                      // wait for a second
    }

    Comments

    Popular posts from this blog

    ESP with DHT 11 part 2

    ESP 32 TO DHT 11