What Is The Esp32
What Is The Esp32
It’s made by a company called Espressif, and the S3 is a special version with extra
superpowers (like AI, camera, USB support, etc.).
Example: A light sensor tells how bright the room is, not just if there’s light or
not.
Example: A temperature sensor tells how hot it is, not just hot or cold.
So analog input gives values from 0 to 4095 (because ESP32-S3 is 12-bit ADC).
ESP32-S3 PINS YOU SHOULD KNOW
Here are the basics (they vary slightly by board, but this is general):
while True:
led.value(1) # Turn ON the LED
time.sleep(1)
led.value(0) # Turn OFF the LED
time.sleep(1)
ESP32-S3 is telling the LED: "ON! OFF! ON! OFF!" every second.
SIMPLE EXAMPLE 2: Read a Button (Digital Input)
while True:
if button.value() == 1:
print("Button is pressed")
else:
print("Button is not pressed")
Sensor on GPIO34:
while True:
value = light_sensor.read()
print("Light Level:", value) # 0 to 4095
time.sleep(0.5)
ESP32-S3 is a tiny smart brain that can think, sense, and control.
Want me to draw a diagram or make a sample project with an LED and sensor for
you? 😊