• Terminal
    Terminal
    An electrical connector acting as reusable interface to a conductor and creating a point where external circuits can be connected.
  • Ground
    A common return path for electric current. Commonly known as ground.
  • Net Portal
    A net identifier used to create connectivity to other Net Portal with the same designator. #portal
  • Power Net Portal
    Power net portal is a special schematic object used to define a power or ground net. Power ports allow you to conveniently indicate a power net at any location in the design. Power nets of the same designator automatically connect throughout your design #portal #power
  • Generic Resistor
    A generic fixed resistor for rapid developing circuit topology. Save precious design time by seamlessly add more information to this part (value, footprint, etc.) as it becomes available. Standard resistor values: 1.0Ω 10Ω 100Ω 1.0kΩ 10kΩ 100kΩ 1.0MΩ 1.1Ω 11Ω 110Ω 1.1kΩ 11kΩ 110kΩ 1.1MΩ 1.2Ω 12Ω 120Ω 1.2kΩ 12kΩ 120kΩ 1.2MΩ 1.3Ω 13Ω 130Ω 1.3kΩ 13kΩ 130kΩ 1.3MΩ 1.5Ω 15Ω 150Ω 1.5kΩ 15kΩ 150kΩ 1.5MΩ 1.6Ω 16Ω 160Ω 1.6kΩ 16kΩ 160kΩ 1.6MΩ 1.8Ω 18Ω 180Ω 1.8KΩ 18kΩ 180kΩ 1.8MΩ 2.0Ω 20Ω 200Ω 2.0kΩ 20kΩ 200kΩ 2.0MΩ 2.2Ω 22Ω 220Ω 2.2kΩ 22kΩ 220kΩ 2.2MΩ 2.4Ω 24Ω 240Ω 2.4kΩ 24kΩ 240kΩ 2.4MΩ 2.7Ω 27Ω 270Ω 2.7kΩ 27kΩ 270kΩ 2.7MΩ 3.0Ω 30Ω 300Ω 3.0KΩ 30KΩ 300KΩ 3.0MΩ 3.3Ω 33Ω 330Ω 3.3kΩ 33kΩ 330kΩ 3.3MΩ 3.6Ω 36Ω 360Ω 3.6kΩ 36kΩ 360kΩ 3.6MΩ 3.9Ω 39Ω 390Ω 3.9kΩ 39kΩ 390kΩ 3.9MΩ 4.3Ω 43Ω 430Ω 4.3kΩ 43KΩ 430KΩ 4.3MΩ 4.7Ω 47Ω 470Ω 4.7kΩ 47kΩ 470kΩ 4.7MΩ 5.1Ω 51Ω 510Ω 5.1kΩ 51kΩ 510kΩ 5.1MΩ 5.6Ω 56Ω 560Ω 5.6kΩ 56kΩ 560kΩ 5.6MΩ 6.2Ω 62Ω 620Ω 6.2kΩ 62KΩ 620KΩ 6.2MΩ 6.8Ω 68Ω 680Ω 6.8kΩ 68kΩ 680kΩ 6.8MΩ 7.5Ω 75Ω 750Ω 7.5kΩ 75kΩ 750kΩ 7.5MΩ 8.2Ω 82Ω 820Ω 8.2kΩ 82kΩ 820kΩ 8.2MΩ 9.1Ω 91Ω 910Ω 9.1kΩ 91kΩ 910kΩ 9.1MΩ #generics #CommonPartsLibrary
  • Generic Capacitor
    A generic fixed capacitor for rapid developing circuit topology. Save precious design time by seamlessly add more information to this part (value, footprint, etc.) as it becomes available. Standard capacitor values: 1.0pF 10pF 100pF 1000pF 0.01uF 0.1uF 1.0uF 10uF 100uF 1000uF 10,000uF 1.1pF 11pF 110pF 1100pF 1.2pF 12pF 120pF 1200pF 1.3pF 13pF 130pF 1300pF 1.5pF 15pF 150pF 1500pF 0.015uF 0.15uF 1.5uF 15uF 150uF 1500uF 1.6pF 16pF 160pF 1600pF 1.8pF 18pF 180pF 1800pF 2.0pF 20pF 200pF 2000pF 2.2pF 22pF 20pF 2200pF 0.022uF 0.22uF 2.2uF 22uF 220uF 2200uF 2.4pF 24pF 240pF 2400pF 2.7pF 27pF 270pF 2700pF 3.0pF 30pF 300pF 3000pF 3.3pF 33pF 330pF 3300pF 0.033uF 0.33uF 3.3uF 33uF 330uF 3300uF 3.6pF 36pF 360pF 3600pF 3.9pF 39pF 390pF 3900pF 4.3pF 43pF 430pF 4300pF 4.7pF 47pF 470pF 4700pF 0.047uF 0.47uF 4.7uF 47uF 470uF 4700uF 5.1pF 51pF 510pF 5100pF 5.6pF 56pF 560pF 5600pF 6.2pF 62pF 620pF 6200pF 6.8pF 68pF 680pF 6800pF 0.068uF 0.68uF 6.8uF 68uF 680uF 6800uF 7.5pF 75pF 750pF 7500pF 8.2pF 82pF 820pF 8200pF 9.1pF 91pF 910pF 9100pF #generics #CommonPartsLibrary
  • Generic Inductor
    A generic fixed inductor for rapid developing circuit topology. *You can now change the footprint and 3D model at the top level anytime you want. This is the power of #generics
  • RMCF0805JT47K0
    47 kOhms ±5% 0.125W, 1/8W Chip Resistor 0805 (2012 Metric) Automotive AEC-Q200 Thick Film #forLedBlink
  • 875105359001
    10uF Capacitor Aluminum Polymer 20% 16V SMD 5x5.3mm #forLedBlink #commonpartslibrary #capacitor #aluminumpolymer #radialcan
  • CTL1206FYW1T
    Yellow 595nm LED Indication - Discrete 1.7V 1206 (3216 Metric) #forLedBlink
list all ICs and the decoupling capacitors attached to each. Ensure to include a...

@copilot list all ICs and the decoupling capacitors attached to each. Ensure to include all ICs present in the design, including digital ICs, power converters, LDOs, etc. For every IC, clearly state:
  • What power net the decoupling capacitors are attached to. What is the stated voltage of that net.
  • The voltage rating and value of the attached decoupling capacitors.
  • Signal with the expression “[WARNING]” if any of the following conditions are met: no decoupling capacitors are attached; the voltage of the power net is higher than the voltage rating of the capacitor; No voltage range was stated for the capacitor. Give a separate “[WARNING]” for each condition. Signal with the expression “[OK]” if none of those conditions are met
  • Express the result in a markdown-formatted table
6mo
Someone is typing...
USER
C5
Capacitance
0.01u F
ESP_RST
+3V3
C6
Capacitance
0.01u F
REED
C3
Capacitance
0.01u F
C4
Capacitance
22u F
+3V3
+3V3
LED_R
R6
Resistance
50 Ω
IO18
BOOT
R1
Resistance
100k Ω
LED1
+3V3
ESP_TX
U1
3
BOOT
BOOT
C7
Capacitance
1u F
LED_G
IO18
2
IO8
LED_R
USER
LED_B
ESP_RST
8
BOOT
IO0
REED1
IO0
LED_B
USER
10
L1
Not Recommended for New Designs
Inductance
2.2u H
ESP_RST
+3V3
IC1
R3
Resistance
135 Ω
C2
Capacitance
22u F
IO10
LED_G
REED
C8
Capacitance
22u F
IO8
J1
+3V3
ESP_RX
18
IO3
0
IO2
IO2
IO10
R2
Resistance
100k Ω
R5
Resistance
50 Ω
EN
IO3
C1
Capacitance
0.01u F
R4
Resistance
50 Ω
ESP_TX
ESP_RX

WiFi Door and Window Sensor

WiFi Door and Window Sensor
Description

Created
November 29th 2023
Last updated by vasy_skral
a year ago
1 Contributor(s)
vasy_skral

Controls

Availability & Pricing

DistributorQty 1
Digi-Key$5.10–$10.34
LCSC$3.70
Mouser$4.30–$6.88

Assets

Simulation

µs

Simulation Speed

can you write me a short(100-200 symbols) description for this project
@copilot can you write me a short(100-200 symbols) description for this project
1y
This project is a WiFi-enabled door and window sensor using the ESP8684-WROOM-02C module from Espressif Systems. It includes a triple-color LED indicator, Reed switch for detection, a 3.3V Regulatory mechanism, and USB C for firmware flashing. It's powered by a regular non-rechargeable AAA battery.
1y
@copilot this is WiFi Door and Window Sensor. So basically this sensor you need ...
@copilot this is WiFi Door and Window Sensor. So basically this sensor you need to connect once and then it will wait for signal from REED1. How can I improve this device?
1y
You've built a respectable Wi-Fi door and window sensor design using the ESP8684-WROOM-02C WiFi module. To improve your current design, consider the following suggestions:
  1. Power Management: IoT devices are often battery powered and need to be energy efficient. Deep sleep mode could be leveraged during periods of inactivity to prolong battery life.
  2. Tamper Detection: Adding a small tamper detection switch that sends an alert if the sensor is forcibly removed or destroyed could enhance the security.
  3. Additional Sensor Integration: Consider expanding the functionality of your device by adding other sensors such as temperature, humidity, light sensors, etc.
  4. OTA Updates: Enable Over-The-Air (OTA) updates to keep the firmware of your device up-to-date without physically connecting it to the programmer.
  5. Enclosure Design: Ensure your device is enclosed well, especially if it is meant for outdoor placement. The design needs to be waterproof and robust to withstand outside conditions.
  6. Connectivity Check: Enabling connectivity check can be useful. The device can alert the user if it's disconnected from Wi-Fi for a prolonged period.
  7. Signal Strength Indicator: A WiFi signal strength indicator could help users during the installation process to find best place for connectivity.
Please review this suggestions and let me know your thoughts before proceeding with potential design changes.
1y
@copilot what resistors values do I need for each color of LTST-C19HE1WT RGB LED...
@copilot what resistors values do I need for each color of LTST-C19HE1WT RGB LED to get same brightness for each color
1y
The brightness of an LED (Light Emitting Diode) is determined by the current flowing through it. The LED's datasheet should provide a forward current for each color and a forward voltage drop.
The LTST-C19HE1WT is a tri-color RGB LED. According to its datasheet, the typical forward voltages at 20mA are:
  • Red: $2.0V$
  • Green: $3.2V$
  • Blue: $3.2V$
Assuming we run the LED from a $3.3V$ supply, we can use these forward voltages to calculate individual resistor values using Ohm's Law:
$R = \frac{{V_{supply} - V_{forward}}}{{I_{forward}}}$
Where
  • $V_{supply} = 3.3V$ is the supply voltage
  • $V_{forward}$ is the voltage drop across the LED
  • $I_{forward} = 20mA = 0.02A$ is the forward current.
Given that, the values of the resistors would be:
  1. For Red LED: $R_{Red} = \frac{{3.3V - 2.0V}}{{0.02A}} = 65\Omega$
  2. For Green LED: $R_{Green} = \frac{{3.3V - 3.2V}}{{0.02A}} = 5\Omega$
  3. For Blue LED: $R_{Blue} = \frac{{3.3V - 3.2V}}{{0.02A}} = 5\Omega$
These are the theoretical resistor values. However, standard resistor values of $68\Omega$ and $5\Omega$ can be used, respectively.
Please note, these calculations are made under the following assumptions:
  1. Constant and equal current for each individual LED.
  2. The brightness of the LED is directly proportional to the current flowing through it.
  3. The datasheet values for voltage drop and current are accurate, but they can slightly vary from device to device.
  4. Supply voltage is $3.3V$ (typical voltage of a microcontroller IO).
Let me know if you need more information or other parameter values are needed.
1y
and what values I need for 10mA forward current?
1y
To calculate the resistor values at a forward current of $10mA (0.01A)$, we can use the same forward voltage values from the datasheet and the same formula. Here are the calculated values:
  1. For Red LED: $R_{Red} = \frac{{3.3V - 2.0V}}{{0.01A}} = 130\Omega$
  2. For Green LED: $R_{Green} = \frac{{3.3V - 3.2V}}{{0.01A}} = 10\Omega$
  3. For Blue LED: $R_{Blue} = \frac{{3.3V - 3.2V}}{{0.01A}} = 10\Omega$
These are the theoretical resistor values. For implementation, the following standard resistor values could be used:
  • A standard value of $130\Omega$ resistor can be used for the Red LED.
  • A standard value of $10\Omega$ resistor can be used for both Green and Blue LEDs.
Please note that halving the current will lead to a less bright output, but it also cuts the power used by each LED in half. This could be advantageous in low-power applications or to extend battery life.
1y
actually forward voltage is 1.95V Red, 2.8V Green, 2.8V Blue
1y
I apologize for any confusion earlier. Let's use the updated forward voltages you provided to calculate the resistor values. At $10mA (0.01A)$ forward current, the resistor values are:
  1. For Red LED: $R_{Red} = \frac{{3.3V - 1.95V}}{{0.01A}} = 135\Omega$
  2. For Green LED: $R_{Green} = \frac{{3.3V - 2.8V}}{{0.01A}} = 50\Omega$
  3. For Blue LED: $R_{Blue} = \frac{{3.3V - 2.8V}}{{0.01A}} = 50\Omega$
These are theoretical values and would need to be rounded to the nearest standard resistor values. The closest standard 5% (E24 series) resistor values are:
  • For Red LED, you can use a $130\Omega$ or $150\Omega$ resistor.
  • For both Green and Blue LEDs, a $51\Omega$ resistor is the closest standard value.
Remember, these calculations are made under the assumption that the LED brightness is proportional to the forward current and the supplied voltage is at a fixed $3.3V$. Also, these values can vary between batches of LEDs due to manufacturing tolerances.
1y
@copilot I need to minimize power consumption of this circuit. What max value fo...
@copilot I need to minimize power consumption of this circuit. What max value for pull up resistor R7 can I use?
1y
The max value of pull-up resistor R7 connected to the EN (Enable) pin of the ESP8684-WROOM-02C module will largely depend on two factors:
  • The minimum current required to reliably read a logical high on the input pin (which in the most cases can be taken from the datasheet of the ESP8684).
  • The high-level input voltage, $V_{IH}$, for the EN pin which is typically a percentage of the supply voltage $V_{CC}$, specified in the module's datasheet.
Unfortunately, without the datasheet values we cannot calculate the exact maximum resistor value, but as a basic approximation:
  • If we are using a 3.3V system, a typical pull-up resistor can range from 1k to 10k ohms.
  • Some power optimized designs might use higher values up to 100k or even 1M ohms.
So, to choose the right value for the resistor, you would need to check the datasheet of ESP5684-WROOM-02C to know the recommended standard values, then try to increase the resistance value slowly while ensuring that the system is still functioning properly.
On the other hand, it is important to note that the pull-up resistor will consume power only when the switch is closed (i.e., when the button is pressed), because it essentially forms part of a voltage divider. When the switch is open, theoretically, no current is being consumed over the resistor since there's no path to ground. However, in practical applications, to reduce overall power consumption, you can:
  • Put your microcontrollers like the ESP8684 in sleep mode when they're not performing any processes.
  • Reduce duty cycles of any PWM signals.
  • Use components that have sleep mode or low power mode.
Remember to double check your design and perform tests while making these modifications.
1y
Unfortunately, you may need to manually check the specific details in your datasheet based on the following guidelines:
Search for the "Electrical Characteristics" table in the datasheet, where you can find a specific parameter called "Input High Voltage (VIH)" or similar for the GPIOs.
Next, search for a parameter labelled "Input Leakage Current", or similar (I_IL), in the same table or if not there, look for it in another section usually called "Absolute Maximum Ratings" or "DC Specifications".
Here are two essential considerations:
  1. The resulting resistance value combined with any internal resistance should fall within the parameters labelled "Pull-up/Pull-down resistance" (R_PULL) or similar parameters.
  2. When running, ensure that the voltage at the pin doesn't drop below the "Input High Voltage" (V_IH) and doesn't exceed "VCC + 0.3V".
You can calculate the resistor using the formula below:
$R = \frac{V_{CC} - V_{IH}}{I_{IL}}$
Ensure that you cross-verify your calculations with your datasheet to confirm that your selected value does not exceed those parameters. Remember to keep some margin in your calculations for extra safety.
1y
Hey, I’m Copilot, your AI design assistant. I can help you brainstorm ideas, deb...
Hey, I’m Copilot, your AI design assistant. I can help you brainstorm ideas, debug problems, research components, and even make wiring connections for you. Ask me questions like:
  • @copilot I'm designing a PCB for a medical device that measures heart rate and temperature. Can you give me the list of components I will need?
  • @copilot How would I connect these parts to make the LED flash at 1kHz?
  • @copilot can you choose 4 digital pins on the ATMega328P-AU that I have here to use as GPIO given that I am already using some pins for reset, the external clock, UART, and I2C.
Chat with me by tagging @copilot on comments or in the chat.
1y
Someone is typing...
Checks that the power traveling across a given resistor is under its rating with 50% headroom.
Learn more
Checks that IC pins that require pull up or pull down resistors have them.
Learn more
Checks that capacitors have appropriate voltage ratings to prevent overheating and ensure reliable circuit operation.
Checks that all parts have a part number and are available from distributors.
Reports copper elements that are shorting.
Reports parts that have no footprint.
Reports nodes that are assigned to a layer that doesn't exist in the layout stackup.
Reports terminals that are not connected properly. NOTE: Only connections to the center of pads are considered valid.
Reports nodes that are using rules that are not supported anymore.
Reports layers that have multiple copper fills of different nets. Make sure the Connected Layers rule value of nets with fills is valid.
Detect any via, trace or copper fill island that is not connected to any net.