Chat
Welcome to Flux
Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More
Ready.
C
#define LED_PIN 2 void setup() { pinMode(LED_PIN, OUTPUT); } void loop() { digitalWrite(LED_PIN, HIGH); // enciende el LED delay(1000); // espera un segundo digitalWrite(LED_PIN, LOW); // apaga el LED delay(1000); // espera un segundo }
IO2 (que corresponde al valor 2 en el módulo ESP-01) como la salida para el LED. Luego, en el bucle loop, enciende el LED, espera un segundo (1000 milisegundos), apaga el LED y luego espera otro segundo. Este ciclo se repite indefinidamente, por lo que el LED parpadea. Puedes ajustar el tiempo de espera para cambiar la velocidad de los parpadeos.Reviews
Inspect
ESP-01
Controls
Properties
Assets
id=default
id=FOOTPRINT_V5
id=image-removebg-preview (18)
id=3D
Welcome 👋
Flux accelerates your PCB design with AI.
Create your account to start using this component and bring your ideas to life.
apanasenkopro
copilot
RST(Reset Pin) andEN(Enable Pin).RST(Designator Pin no. 7). If it is not connected to an external pull-up resistor, consider adding one. The ESP-01 module typically has an internal pull-up on the Reset pin, but adding a 10KΩ external pull-up resistor provides a stronger guarantee against unintentional resets.EN(Designator Pin No. 6). If it is not connected to an external pull-up resistor, consider adding one. The ESP-01 module commonly has an internal pull-up on theENpin, but adding a 10KΩ external pull-up resistor can strengthen the signal and prevent inadvertent disabling.copilot
copilot
VCCpin on the ESP-01 (Pin No. 8) via the 3.3V Zener Diode to the power supply. Make sure the power supply voltage does not exceed the Zener voltage.ENpin (Pin No. 6) andRSTpin (Pin No. 7) on the ESP-01 to theVCCpin (Pin No. 8) through 10kΩ pull-up resistors.GNDPin (Pin No. 1) to the negative side (common ground) of the power supply.IO0orIO2(Pin numbers 3 and 2) from the ESP-01 to the control input (IN) on the relay module.GNDpin of the relay module back to your common ground.VCCof the relay module and the anode (non-stripe side) to the relay'sGND.