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
Reviews
Level Crimson Electronic Thumb
Properties
Properties describe core aspects of the project.
Pricing & Availability
Distributor | Qty 1 |
|---|---|
LCSC | $0.03–$0.07 |
Controls
Welcome 👋
Flux helps you build PCBs faster with an AI teammate!
Create your account to collaborate, stay updated, fork your own version, and get instant answers from our AI agent.
bildex
copilot
-
Voltage Regulator: Choose AMS1117-3.3 for its simplicity and availability.
- Input Voltage (Vin): 24VDC.
- Output Voltage (Vout): 3.3V.
- Input Capacitor (recommended): 22µF to 47µF (tantalum or electrolytic) between input (Vin) and ground for stability.
- Output Capacitor (recommended): 10µF to 22µF between output (Vout) and ground to improve transient response.
-
Wiring:
- Connect your 24VDC power source positive to the input of AMS1117-3.3.
- Connect the ground of your 24VDC power source to the ground of AMS1117-3.3.
- Connect the output of AMS1117-3.3 to U1:8 (VCC) and U1:6 (EN) of the ESP-01S to power it up. Ensure you also connect the ground from AMS1117-3.3 to U1:1 (GND).
Circuit Connections:- Connect 24VDC positive to AMS1117-3.3 input.
- Connect 24VDC ground to AMS1117-3.3 ground, U1:1 (GND).
- Connect AMS1117-3.3 output to U1:8 (VCC) and U1:6 (EN).
- Place the input and output capacitors as recommended for AMS1117-3.3.
Additional Notes:copilot
-
Calculate the Current Limiting Resistor (R):
- Using Ohm's Law, R=IFVsource−VLED.
- Assuming a 24VDC source, and aiming for a forward current of 10mA (10mA=0.01A):
R=0.01A24V−1.2V=2280Ω.
- Choose the nearest standard resistor value, which is 2.2kΩ.
-
Connect the Optocoupler to 24VDC:
- Connect one end of the 2.2kΩ resistor to the 24VDC positive.
- Connect the other end of the resistor to pin 1 of Q1.
- Connect pin 2 of Q1 to the 24VDC ground.
Connection Overview:- Connect 24VDC positive to one end of a 2.2kΩ resistor.
- Connect the other end of this resistor to Q1:1.
- Connect Q1:2 to the 24VDC ground.
Using the Optocoupler's Output:- To Drive an Input to ESP-01S:
- You could use a pull-up resistor to 3.3V on the output side of the optocoupler, and connect the output to one of the ESP's GPIOs, making sure the ESP's ground is common with the optocoupler's output side ground.
Additional Notes:bildex