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
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
Creating a detailed test plan for the Gesture Light Switch Relay Reference Design involves outlining a series of test cases to verify the functionality of the board components, the integration of the system, and the overall performance. Here's a structured test plan that you can follow:
Test Plan for Gesture Light Switch Relay Reference Design1. Power Supply Tests
Test 1.1: Voltage Regulation
Objective: Ensure that the AP2112K-3.3TRG1 voltage regulator is providing a stable 3.3V output.
Procedure:
Connect a multimeter to the output of the regulator (U3:VOUT).
Supply 5V to the input (U3:VIN).
Measure the voltage.
Expected Result: Voltage should be 3.3V ± 5%.
Test 1.2: Current Consumption
Objective: Measure the total current draw of the system under normal operation.
Procedure:
Use a multimeter in series with the power supply to measure current.
Expected Result: Current draw should be within expected limits for the design.
2. Microcontroller Tests
Test 2.1: Basic Functionality
Objective: Verify that the STM32G030F6P6 microcontroller is correctly powered and operational.
Procedure:
Power the board.
Upload a basic "blinky" firmware to make an external LED blink.
Expected Result: LED blinks at the programmed rate.
Test 2.2: I2C Communication
Objective: Test the I2C communication between the STM32G030F6P6 and the APDS-9960 sensor.
Procedure:
Write and read data to/from the APDS-9960.
Use an oscilloscope to verify the signal on SDA (I2C_SDA:P1) and SCL (I2C_SCL:P1).
Expected Result: Proper I2C waveforms are observed, and communication is successful.
3. Sensor Tests
Test 3.1: Gesture Detection
Objective: Confirm that the APDS-9960 is detecting gestures.
Procedure:
Implement a test firmware to read gesture data and output it to a serial console.
Perform gestures in front of the sensor.
Expected Result: Gestures are correctly identified and outputted to the console.
4. Relay Tests
Test 4.1: Relay Control
Objective: Verify that the relay is being controlled correctly by the microcontroller.
Procedure:
Write firmware to toggle the relay on and off.
Monitor the relay output terminals (K1:~) with a multimeter or oscilloscope.
Expected Result: Relay toggles state as expected.
5. LED Tests
Test 5.1: Tri-color LED Control
Objective: Test the control over the tri-color LED.
Procedure:
Write firmware to cycle through red, green, and blue on the LED (LED1:R, G, B).
Visually confirm the LED color changes.
Expected Result: LED cycles through the colors.
6. Integration Tests
Test 6.1: Full System Test
Objective: Verify overall system functionality by integrating all components.
Procedure:
Deploy full firmware that connects power, sensor, microcontroller, relay, and LED functionalities.
Test the system with gestures to control light switching and LED color change.
Expected Result: The system should operate as intended, switching lights and changing LED colors based on gestures.
This test plan serves as a starting point. Make sure to adjust test cases and procedures based on the specific updates or variations in your project's requirements. Let me know if there are specific areas you'd like to expand upon or modify!
This project is a Gesture Light Switch Relay Reference Design. It involves an STM32 microcontroller (STMicroelectronics) that interacts with an APDS-9960 sensor (Broadcom) to detect hand gestures. The gesture data is used to control a Toshiba TLP175A relay and an Everlight tri-color LED to switch the light and change colors, respectively. Power is supplied by a Diodes Incorporated's AP2112K-3.3TRG1 regulator.
1y
@copilot I need a solid AC relay with 220V AC 5A in small package/case
I'd recommend reviewing solid state relays (SSRs) because of their long lifespan, no contact bounce, low electric noise, and small form factor. A suitable choice in this context could be the Sharp S202S02 series relay.
Here are its specs:
Control side input voltage: 0 ~ 1.5V Dc
Load voltage range: 75 to 264 V AC
Load current: 8A (maximum at Tc=80℃)
Isolation voltage: 2500 Vrms
It's available in a very compact DIP case.
Please ensure that you verify your application requirements and the relay's specifications, as this is merely a suggestion based on the provided information. Always consult the datasheet and possibly a local electronics engineer before making a final decision.
The TLP175A from Toshiba is indeed a solid-state relay (SSR) and can certainly be used in variety of applications. But as a good practice, let's ensure it aligns with your needs based on its specifications:
• It's packaged in a tiny SOP-4 SMD package and thus, is useful for space constrained applications.
• It has an OFF-state output terminal voltage of 60 V, which is too low for your requirement of 220V AC.
• The continuous load current is rated at 0.13 A (130 mA), which is also significantly less than your requirement of 5A.
Therefore, the TLP175A would not be suitable to switch a 220 VAC, 5A load due to its lower breakdown voltage and load current ratings.
It is important to make sure that the selected relay fits all of your requirements. For your application, you may want to look at SSRs specifically designed for higher voltage and current applications.
To select an appropriate resistor, we need to consider the forward dropout voltage and forward current of the TLP175A's input side (LED side).
From the TLP175A datasheet, we can see that:
The Forward Current (IF) is typically 5mA.
The Forward Voltage (VF) is typically 1.15V.
Given that you're using the STM32G030F6P6 microcontroller (U2) and its I/O pins work at 3.3V, you would calculate the resistor (to be connected in series with the input of TLP175A) using Ohm's law (V=IR):
So, setting V = 3.3V - 1.15V = 2.15V (the voltage across the resistor), and I = 5mA, we find:
R = V/I = 2.15V / 5mA = 430Ω
You should choose the closest standard resistor value, which is 430Ω. Please note that you can use a resistor with a lower value to increase the forward current, which can help ensure the relay activates properly. However, this will also increase power consumption and you should ensure that the GPIO and the TLP175A can handle the increased current.
1y
Someone is typing...
Passive Components
Resistor Power Rating
Beta
Checks that the power traveling across a given resistor is under its rating with 50% headroom.
paulina_aqua_bossk988591