dtorrese / Vertical Gold Flying Cab

Loaded

0

0

Files

Schematic

PCB

Log InSign Up

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

Explain project
Write a project description
Find schematic issues
Create a test plan
Simulate a circuit
Prepare for Manufacturing
Component Selection Workflow
New Subsystem Wizard

​
Sign up to send
if I'm sending 6 simultaneous signals to 3 of those optocuplers and my only volt...

dtorrese

dtorrese

@copilot if I'm sending 6 simultaneous signals to 3 of those optocuplers and my only voltage supply is the bluepill conected to a usb port, will that be enough to make it work?
1y

copilot

Let's break down your scenario:
  1. Optocouplers: You have 3 HCPL2631V optocouplers.
  2. Signal Input: 6 simultaneous signals will be fed to these optocouplers.
  3. Power Source: The power is supplied from a USB-connected Blue Pill (STM32F103C8) microcontroller board.
Power Requirements and Constraints
  1. Supply Voltage (VCC): The HCPL2631V typically requires a VCC of 4.5V to 5.5V to operate.
  2. LED Forward Current: Each LED input of the optocoupler typically requires around 10mA.
  3. Blue Pill Current Supply: The USB port typically provides up to 500mA of current. The Blue Pill itself consumes a portion of this current for its operation, leaving less available for peripherals.
Assumptions:
  • The Blue Pill consumes approximately 50mA during operation.
  • All 6 signal inputs require the optocoupler LEDs to be on simultaneously.
Current Calculation
  • Total LED current requirement: 3 optocouplers∗2 LEDs per optocoupler∗10 mA/LED=60 mA3 \text{ optocouplers} * 2 \text{ LEDs per optocoupler} * 10 \text{ mA/LED} = 60 \text{ mA}3 optocouplers∗2 LEDs per optocoupler∗10 mA/LED=60 mA
Total Current Draw from USB
  • Blue Pill consumption: 50mA
  • Optocouplers consumption: 60mA
  • Total: 110 mA≪500 mA110 \text{ mA} \ll 500 \text{ mA}110 mA≪500 mA
This means the current drawn by the Blue Pill and the optocouplers combined is within the 500mA limit of a standard USB port.
Conclusion
Yes, the power supply from a USB-connected Blue Pill should be sufficient to power the 3 HCPL2631V optocouplers and handle 6 simultaneous signal inputs. Just make sure the power connections are correct:
Suggested Connections
  • Power Supply:
    • Connect U1:VCC to the Blue Pill's 5V supply.
    • Connect U1:GND to the Blue Pill's GND.
  • Signal Inputs:
    • For each of the 6 signal inputs, connect them appropriately to the respective VF1+ and VF1- pins of the optocouplers.
Feel free to correct any assumptions if they don't fit your scenario!
1y
dtorrese

dtorrese

@copilot I'm using the HCPL2731, when I send the pwm signal the only ouput I get is a low value
1y

copilot

The HCPL2731 is quite similar to the HCPL2631 but with different specifications. Here’s how to troubleshoot and ensure you’re using the optocoupler correctly with PWM signals:
Troubleshooting Steps
  1. Verify Pin Connections:
    • Ensure the connections are correct:
      • Connect PWM signal to U1:VF1+ (pin 1).
      • Connect U1:VF1- (pin 2) to the ground of your PWM signal source.
      • Connect VCC to U1:VCC (pin 8).
      • Connect U1:GND (pin 5) to the common ground.
      • Connect U1:V01 (pin 7) and U1:V02 (pin 6) to your load or circuit receiving the optocoupler output.
  2. Check Input Side (LED):
    • Ensure that the forward voltage and current for the LED side are met.
    • Typically, the forward voltage of the LED is around 1.2V and it needs around 10mA of current.
    • Use a current-limiting resistor if necessary to match the PWM signal output characteristics.
  3. Check Output Side:
    • Ensure the pull-up and pull-down resistors are appropriately placed on the output side.
    • The output can be an open collector, and proper resistors are needed to pull it to the desired logical levels.
Basic Connection Checks
  • Input Side Checks:
    • Connect a series resistor to limit current through the LED. For a 5V PWM signal, a 330Ω resistor is typical:
      • Connect U1:VF1+ to the PWM signal via a 330Ω resistor.
      • Connect U1:VF1- to the PWM signal ground.
  • Output Side Connections:
    • Connect U1:VCC to a 5V supply.
    • Connect U1:GND to the ground.
    • Connect U1:V01 (pin 7) to an external pull-up resistor (e.g., 10kΩ) to 5V, then to the input of your microcontroller.
Example Connections
  • Input Side:
    • Connect PWM Signal to U1:VF1+ (pin 1) through a 330Ω resistor.
    • Connect U1:VF1- (pin 2) to PWM Ground.
  • Output Side:
    • Connect U1:V01 (pin 7) to Interceptor through a 10kΩ pull-up resistor (if needed, depending on the circuit topology).
    • Connect U1:VCC (pin 8) to 5V Supply.
    • Connect U1:GND (pin 5) to Ground.
Verifying PWM Signal:
Make sure the PWM signal:
  • Has sufficient amplitude to forward bias the LED inside the HCPL2731.
  • Check the duty cycle to see if it matches the expected behavior.
Sample Schematic

Plaintext


PWM Signal +5V
   |  
  |330Ω
  |
VF1+ (Pin 1) -------+ |    
                   |-|--- GND (PWM Signal)
 VF1- (Pin 2) ------+

Plaintext


5V Supply
   |
  ---
  |       Pull-up Resistor (10kΩ)
U1:VCC (Pin 8)
U1:V01 (Pin 7) ---------+----> Output
                      |
                     ---
                    | GND
U1:GND (Pin 5)
Conclusion
Ensure connections are correct and consider adding pull-up resistors for the output if your circuitry requires them. If the output remains low, verify the PWM signal's voltage levels and duty cycle accuracy.
1y
dtorrese

dtorrese

@copilot is the pull-up resistor mandatory for this component?
1y

copilot

Yes, a pull-up resistor is mandatory for the output side of the HCPL2731 when you are interfacing it with logic circuits like a microcontroller. The output transistor of the optocoupler is configured as an open collector, meaning it can pull the output low but cannot drive it high. Therefore, a pull-up resistor is necessary to ensure that the output can reach a high logic level when the transistor is not conducting.
Why a Pull-up Resistor is Needed
  • Open Collector Output: The HCPL2731's output transistor can only sink current (pull down to ground) when activated. When the transistor is off, the output is floating and needs to be pulled up to a high logic level by an external resistor.
  • Logic Level Compatibility: Ensures the output reaches a valid high voltage level required by the logic circuits (microcontroller).
How to Connect the Pull-up Resistor Example Connections
Ensure these connections are in your circuit:
  • Input Side:
    1. Connect PWM Signal to U1:VF1+ (Pin 1) through a current-limiting resistor, typically 330Ω for 5V signals.
    2. Connect U1:VF1- (Pin 2) to PWM Ground.
  • Output Side:
    1. Connect U1:VCC (Pin 8) to 5V Supply.
    2. Connect U1:GND (Pin 5) to Ground.
    3. Connect U1:V01 (Pin 7) to the input of your microcontroller through a pull-up resistor, typically 10kΩ, connected to 5V.
Example Schematic with Pull-up Resistor

Plaintext


PWM Signal +5V
   |  
  |330Ω
  |
VF1+ (Pin 1) -------+ |    
                   |-|--- GND (PWM Signal)
 VF1- (Pin 2) ------+

Plaintext


5V Supply
   |
  ---
  |       Pull-up Resistor (10kΩ)
U1:VCC (Pin 8) ----+-------> Output (to microcontroller Pin)
                   |
U1:V01 (Pin 7) ----+
                   |
                  ---
                 | GND
U1:GND (Pin 5)
Checking Operation:
  • When PWM Signal is Low: The optocoupler LED is off, and the output transistor is off. The pull-up resistor will pull the U1:V01 to a high level (5V).
  • When PWM Signal is High: The optocoupler LED is on, and the output transistor is on. U1:V01 will be pulled to ground.
Summary
Yes, the pull-up resistor is necessary for the open-collector output of the HCPL2731 to function correctly in your circuit. Use a 10kΩ resistor to pull the output high when the optocoupler transistor is off. Let me know if you need further assistance or clarifications!
1y
3
are there any issues in this project?

dtorrese

dtorrese

@copilot are there any issues in this project?
1y

copilot

Sure, let's review the project for any potential issues or missing connections. Here are some points to consider:
  1. Power Supply and Grounding:
    • Ensure that all power supply nets and ground nets are correctly connected and represented.
  2. Input/Output Connections for Optocoupler (U1):
    • U1:HCPL2631V is an optocoupler, and typically, it needs proper input signals and connections. We need to ensure:
      • The LED side of the optocoupler (pins VF1+ and VF1-) is driven correctly.
      • The output side (pins V01 and V02) is connected to the appropriate load and circuitry.
  3. Checking Each Net Connection:
    • Verify that all nets are correctly interconnected as per the intended functionality.
Detailed Examination:
  1. Power Supply and Grounding:
    • According to the provided netlist:
      1. Connect U1:VCC to +3.3V:P1, R2:P1, and R1:P1.
      2. Connect U1:GND, U1:VF2-, and U1:VF1- to the GND net.
  2. Input/Output for Optocoupler (U1):
    • Ensure the following connections:
      • Connect PWM1:P1 to U1:VF1+
      • Connect PWM2:P1 to U1:VF2+
      • Connect VO1:P1, R2:P2, and U1:V01
      • Connect VO2:P1, R1:P2, and U1:V02
Summary:
  • Verify all the net connections align with your design requirements.
  • Ensure supply voltages and grounds are correctly connected.
  • Check whether the on-chip LEDs (U1:VF1+ and U1:VF2+) are driven properly for expected operation.
Potential Issues:
  • Are there any other connections missing from the design process?
  • Ensure resistors (R1 and R2) are of the correct values and are not causing any unintended voltage drops or signal issues.
If this is the expected connection plan, your design should operate correctly, barring all necessary powering elements and load conditions are met. Would you like to discuss or modify any specific part of this circuit?
1y
4
if the /Average Forward Input Current Per Channel of emitter in pwm1 is 20mA and...

dtorrese

dtorrese

@copilot if the /Average Forward Input Current Per Channel of emitter in pwm1 is 20mA and I'm sending a PWM signal of 3.3V from a blue-pill, being the maximum Voltage 1.7V at the emitter when Input forward current is 1.6mA, should I keep the 100 ohm resistor or should I change it?
1y

copilot

Given the information provided:
  • Average Forward Input Current Per Channel: 20 mA
  • PWM Signal Voltage from Blue-Pill: 3.3V
  • Maximum Voltage at Emitter (LED side): 1.7V
  • Input Forward Current when 1.7V applied: 1.6 mA
  • Current Limiting Resistor Value: 100 ohms (R3)
First, let's calculate the current going through the emitter with the 100 ohm resistor. The voltage drop across the resistor (R3) can be calculated using Ohm's law:
VR3=VPWM−VEmitter=3.3V−1.7V=1.6VV_{R3} = V_{PWM} - V_{Emitter} = 3.3V - 1.7V = 1.6VVR3​=VPWM​−VEmitter​=3.3V−1.7V=1.6V
Now, applying Ohm's law to find the current through the emitter:
IR3=VR3R3=1.6V100 Ω=16 mAI_{R3} = \frac{V_{R3}}{R3} = \frac{1.6V}{100 \, \Omega} = 16 \, mAIR3​=R3VR3​​=100Ω1.6V​=16mA
The calculated current (16 mA) is less than the average forward input current per channel (20 mA), so the 100 ohm resistor is a suitable choice. However, if you aim for the maximum rated current of 20 mA, let's find an appropriate resistor value.
To find the new resistor value for 20 mA:
Rnew=VR3Idesired=1.6V20 mA=80 ΩR_{new} = \frac{V_{R3}}{I_{desired}} = \frac{1.6V}{20 \, mA} = 80 \, \OmegaRnew​=Idesired​VR3​​=20mA1.6V​=80Ω
So, you should use an 80 ohm resistor to achieve 20 mA current. Since 80 ohms is not a standard resistor value, you can use the closest standard resistor value, like 82 ohms, which will give you a slightly lower current:
Inew=1.6V82 Ω≈19.5 mAI_{new} = \frac{1.6V}{82 \, \Omega} \approx 19.5 \, mAInew​=82Ω1.6V​≈19.5mA
Conclusion: If you want to achieve the maximum rated current of approximately 20 mA, you should replace the 100 ohm resistor (R3) with an 82 ohm resistor. However, keeping the 100 ohm resistor will keep the current at 16 mA, which is within safe operating limits for your emitter.
Would you like to update the schematic to use an 82 ohm resistor for R3?
1y
dtorrese

dtorrese

@copilot now consider a 70% duty cycle, do you think it will replicate the same pwm signal on the output? because it is a small signal
1y

copilot

With a 70% duty cycle PWM signal, the current through the emitter will average out over time. However, the key question here is whether the optocoupler will faithfully replicate the PWM signal at its output given the input conditions.
Key Parameters and Assumptions
  1. Duty Cycle: 70%
  2. Input Signal: 3.3V PWM
  3. Forward Voltage of LED (emitter): 1.7V
  4. Assumed Resistor Choice: Let’s use 100 ohms (for simplicity and considering our previous calculation).
Effective Current with PWM
For a 70% duty cycle, the effective (average) current can be calculated:
Ieffective=Ipeak×DutyCycle=16 mA×0.7=11.2 mAI_{effective} = I_{peak} \times Duty Cycle = 16 \, mA \times 0.7 = 11.2 \, mAIeffective​=Ipeak​×DutyCycle=16mA×0.7=11.2mA
Impact on Optocoupler
The HCPL2631V, like other optocouplers, has a transfer characteristic that depends on the input current. At 11.2 mA average current:
  • The optocoupler should turn on and off properly if the input current exceeds the threshold current required to activate the internal transistor.
  • 11.2 mA should be sufficient to ensure that the output transistor of the optocoupler is switching correctly.
Small Signal Considerations
For small signals, it’s crucial to consider the response time of the optocoupler:
  • Propagation delay: The delay between input and output signals.
  • Rise and fall times: The time it takes for the output to rise and fall between low and high states.
Given that the HCPL2631V is a high-speed optocoupler, it is designed to handle signals with relatively fast changes, but with a lower duty cycle, there might be some distortion or filtering effect depending on the operating frequency and the internal delays.
Expected Output
Assuming the operating frequency is within the optocoupler's capability:
  • At 11.2 mA, the optocoupler should reproduce the PWM signal accurately if the frequency is not too high and the signal is above the turn-on threshold.
  • There might be slight variations in the duty cycle at the output due to propagation delay and other dynamic characteristics; however, it should reasonably follow the 70% duty cycle if the device operates in its intended frequency range.
Recommendations
  • For low-frequency PWM signals: The HCPL2631V should replicate the input PWM signal accurately at 70% duty cycle.
  • For higher-frequency PWM signals: Verify the frequency response of the optocoupler to ensure minimal signal distortion.
If the exact replication is critical, you may want to check the specific performance characteristics of the optocoupler, including its rise/fall times and propagation delays.
Would you like to simulate or verify these assumptions in your circuit design using Flux? Or perhaps try different component values?
1y
8
if the optocoupler im using is a High Gain Split Darlington Optocoupler how woul...

dtorrese

dtorrese

@copilot if the optocoupler im using is a High Gain Split Darlington Optocoupler how would it affect on the vout1 for example? im sending it a 20khz pwm signal
1y

copilot

When using a High Gain Split Darlington Optocoupler like the HCPL2631V, there are several factors to consider related to the output voltage (VOUT1V_{OUT1}VOUT1​) when applying a 20kHz PWM signal:
  1. Switching Speed: The HCPL2631V is designed for high-speed operations. Its propagation delay is typically around 1 microsecond, which is fast enough to handle a 20kHz signal. However, ensure that the rise and fall times of the PWM signal are within the optocoupler's capabilities.
  2. Signal Distortion: As the signal passes through the optocoupler, there is a potential for signal distortion, especially if the optocoupler's switching characteristics are not ideal for the given frequency. The high gain of the split Darlington transistor can introduce additional delays and may slow down the switch off/on times slightly compared to a single transistor.
  3. Voltage Levels: The high gain of the split Darlington configuration means that the optocoupler can switch smaller input currents, which is good. However, ensure that the loading on the output side (VOUT1V_{OUT1}VOUT1​) is within the optocoupler's drive capability. The output voltage can be affected by the load connected to it.
  4. Temperature and Stability: High gain optocouplers can sometimes be more sensitive to temperature variations, which might affect the voltage levels and signal integrity.
Given these considerations, VOUT1V_{OUT1}VOUT1​ should follow the PWM input signal at 20kHz with minimal distortion, provided that:
  • Proper Biasing: The optocoupler and its surrounding circuitry (resistors R2R_2R2​ and R1R_1R1​) are properly biased to handle the fast switching.
  • Load: The output load does not exceed the driving capability of the optocoupler.
Here is a conceptual overview of the connections:
  • Input Side (PWM1): The PWM1 input is connected to the LED side of the optocoupler (U1:VF2+VF_2^+VF2+​). Ensure there is a current-limiting resistor if needed.
    • Connect PWM1:P1P_1P1​ to an appropriate current-limiting resistor (calculated based on the optocoupler's input requirements) and then to U1:VF2+VF_2^+VF2+​.
  • Output Side (VOUT1V_{OUT1}VOUT1​): The output from the optocoupler (U1:VO1V_{O1}VO1​) is connected to VO1VO_1VO1​ and can be monitored.
    • Connect U1:VO1V_{O1}VO1​ to VO1VO_1VO1​:P1P_1P1​.
    • Ensure the collector side of the Darlington transistor (U1:VCC) is properly biased with +3.3V via R2R_2R2​ and R1R_1R1​.
To summarize, for VOUT1V_{OUT1}VOUT1​:
  1. Connect U1:VF2+VF_2^+VF2+​ to PWM2:P1P_1P1​.
  2. Ensure that the GND of the input side is connected (Connect U1:VF2−VF_2^-VF2−​ to GND).
  3. Connect U1:VO1V_{O1}VO1​ to VO1VO_1VO1​:P1P_1P1​.
  4. Ensure that the VCC pin of the optocoupler is properly biased (Connect U1:VCC to +3.3V via R2R_2R2​:P1P_1P1​ and R1R_1R1​:P1P_1P1​).
Here is a list of connections:
  • Connect PWM2:P1P_1P1​ to U1:VF2+VF_2^+VF2+​.
  • Connect U1:VF2−VF_2^-VF2−​ to GND.
  • Connect U1:VO1V_{O1}VO1​ to VO1VO_1VO1​:P1P_1P1​.
  • Connect U1:VCC to +3.3V via R2R_2R2​:P1P_1P1​ and R1R_1R1​:P1P_1P1​.
Confirm these connections along with any additional requirements for the load to ensure proper operation and minimal distortion at VOUT1V_{OUT1}VOUT1​.
1y
7
I'm using the HCPL2731, if if im sending 20khz pwm signals at 50% duty cycle, wh...

dtorrese

dtorrese

@copilot I'm using the HCPL2731, if if im sending 20khz pwm signals at 50% duty cycle, what should I expect at the ouput of the optocoupler, I'm using 100 ohm resistor in series with the inputs, vcc is 3.3v
1y

copilot

For your setup, let's break down the situation and expectations:
  1. Input Parameters:
    • Input Current Calculation:
      • VCC: 3.3V
      • Resistor: 100Ω
      • Voltage Drop across LED (typically): ~1.2V
      Using Ohm's Law, the current through the input LED (IFI_FIF​): IF=(3.3V−1.2V)100Ω=2.1V100Ω=21mAI_F = \frac{(3.3V - 1.2V)}{100Ω} = \frac{2.1V}{100Ω} = 21mAIF​=100Ω(3.3V−1.2V)​=100Ω2.1V​=21mA
    • PWM Signal:
      • Frequency: 20kHz
      • Duty Cycle: 50%
  2. Optocoupler: The HCPL2731 has a typical current transfer ratio (CTR) of 90% to 150%, which means the output current (IoutI_{out}Iout​) will be approximately 90% to 150% of the input current.
    Given an input current of 21mA: Iout=CTR⋅IF=0.9⋅21mA to 1.5⋅21mA=18.9mA to 31.5mAI_{out} = CTR \cdot I_F = 0.9 \cdot 21mA \text{ to } 1.5 \cdot 21mA = 18.9mA \text{ to } 31.5mAIout​=CTR⋅IF​=0.9⋅21mA to 1.5⋅21mA=18.9mA to 31.5mA
  3. Output Considerations:
    • At 50% duty cycle and 20kHz, the output should see a square wave PWM signal at the same frequency and duty cycle.
    • The voltage levels at the output will correspond to the digital levels of your circuit, often 3.3V or VCC (if connected properly).
Summary:
Given a 20kHz PWM signal at 50% duty cycle and 3.3V input power:
  • Expectations at Output:
    • The output of the HCPL2731 should reflect a square wave PWM signal at 20kHz with a 50% duty cycle.
    • The current through the output transistor will vary between 18.9mA and 31.5mA typical, depending on the CTR and input current variation.
    • Voltage at the output will correspond to the power supply levels used along with the load resistor or connected circuitry.
If you have any further questions or if something in the setup changes, let me know!
1y
1
what would happen If I put the resistor as a pull-down ?

dtorrese

dtorrese

@copilot what would happen If I put the resistor as a pull-down ?
1y

copilot

In your current schematic, you have two resistors, R1 and R2, both with a resistance of 4.7kΩ. These resistors are configured as pull-up resistors.
If you were to change one of these resistors to a pull-down resistor instead, the configuration would change as follows:
  1. Pull-Down Resistor Purpose:
    • A pull-down resistor helps to ensure that a pin reads a definite low (0V) when no other component is driving the pin.
  2. Example Scenario:
    • Let's say you want to change R1 to a pull-down resistor.
Steps to change R1 to a Pull-Down Resistor:
  1. Connect R1 from the pin that needs to be pulled down to ground (GND).
Connections for Pull-Down Resistor:
For your current project, if we make R1 a pull-down resistor, the connection changes would be:
  1. Original State:
    R1:1 connected to +3.3V:P1
    U1:VCC connected to +3.3V:P1
    
  2. Modified State (R1 as Pull-Down Resistor):
    Connect R1:1 to GND
    
Modifying Net 1:
Net 1 currently connects R1:1, R2: P1, U1:VCC, and +3.3V:P1. If you modify R1 to be a pull-down resistor, you would instead connect R1:1 to GND.
Revised Net Configuration:
  1. Net 1:
    Members: U1:$$VCC$$,R2:$$P1$$,+3.3V:$$P1$$
    
    • Remove R1:P1P1P1 from Net 1.
  2. New Net for Pull-Down Resistor (Net 6):
    Members: R1:$$P1$$, GND
    
In summary:
  • Connect R1:1 to GND.
  • Keep R1:2 connected to U1:VCC if it's still relevant to keep its position for possible future changes.
Practical Implications:
  1. Input State When No Signal is Present:
    • The pin connected to the pull-down resistor will read as LOW (0V).
  2. Effect on Circuit Behavior:
    • Ensure that any driving signals can override the pull-down resistor when HIGH voltage is applied.
    • It provides a default state of LOW when the driving signal is absent.
Is this the kind of change you were looking to understand? Let me know if you need further clarification or specific modifications in your schematic.
1y
6
both pwm signals are connected to a microcontroller in series with a 100 ohm res...

dtorrese

dtorrese

@copilot both pwm signals are connected to a microcontroller in series with a 100 ohm resistor, they are independent from each other, i'm using the circuit as shown, the optocoupler is a HCPL2731, whenever I send pulses of 20kHz the only response in the outputs is a low signal, what am I doing wrong?
1y

copilot

It sounds like you're trying to drive an optocoupler (HCPL2731) using PWM signals from a microcontroller, but all you're getting at the output is a low signal. Here are a few potential issues and suggestions that could help troubleshoot and resolve this situation:
  1. Driving current for the optocoupler LEDs:
    • Verify that the current passing through the LEDs within the optocoupler is sufficient. The HCPL2731 typically requires a forward current of around 10 mA10 \, \text{mA}10mA for proper operation.
    • Ensure that with a series resistor of 100 Ω100 \, \Omega100Ω and the voltage from the microcontroller, the resulting current is enough to turn on the LEDs. Check the forward voltage of the LEDs and calculate the current:
      I=Vmicrocontroller−VFRI = \frac{V_{\text{microcontroller}} - V_F}{R}I=RVmicrocontroller​−VF​​
      where VFV_FVF​ is the forward voltage of the LED (typically around 1.2 V1.2 \, \text{V}1.2V).
  2. Connection polarity:
    • Make sure that the polarity of the connections to the LED side of the optocoupler is correct.
  3. PWM Signal Integrity:
    • The PWM frequency of 20 kHz20 \, \text{kHz}20kHz should be fine, but ensure the GPIO pins of your microcontroller can handle this frequency without issues.
    • Verify the PWM signal levels on the oscilloscope to check if they are within the expected range.
  4. Optocoupler Output Stage:
    • Measure the output pins of the optocoupler to verify the voltage levels. The output stage may need pull-up resistors if the output stage is open-collector/open-drain.
Let's double-check the connections you need to make:
  • Input side:
    • Connect PWM1PWM1PWM1 through a 100 Ω100 \, \Omega100Ω resistor to the anode ((VF1+)) of the first LED in the optocoupler.
    • Connect the cathode ((VF1-)) to the ground.
    • Connect PWM2PWM2PWM2 through a 100 Ω100 \, \Omega100Ω resistor to the anode ((VF2+)) of the second LED in the optocoupler.
    • Connect the cathode ((VF2-)) to the ground.
  • Output side:
    • Ensure (VCC) is connected to the optocoupler's pin 8.
    • Ensure the (GND) net is correctly connected to the optocoupler's pin 5.
    • Connect the output pins ((V01) and (V02)) to the necessary circuit, ensuring proper load resistors if required.
Here are the specific connections you might have:
  • For PWM1PWM1PWM1:
    • Connect PWM1PWM1PWM1:$P1$ to R3:1R3:1R3:1.
    • Connect R3:2R3:2R3:2 to U1:VF1+U1:VF1+U1:VF1+.
    • Connect U1:VF1−U1:VF1-U1:VF1− to the ground (ensuring it is the same ground as the microcontroller's ground).
  • For PWM2PWM2PWM2:
    • Connect PWM2PWM2PWM2:$P1$ to R4:1R4:1R4:1.
    • Connect R4:2R4:2R4:2 to U1:VF2+U1:VF2+U1:VF2+.
    • Connect U1:VF2−U1:VF2-U1:VF2− to the ground (ensuring it is the same ground as the microcontroller's ground).
If all these are properly configured and you're still not seeing the correct output, double-check all connections and component ratings. You might also want to replace the resistors temporarily with a lower value (e.g., 47 Ω47 \, \Omega47Ω) to see if the LEDs are just not receiving sufficient current.
1y
5

Reviews



  • Ground
    Ground
    A common return path for electric current. Commonly known as ground.
    jharwinbarrozo
    20.5M
  • Net Portal
    Net Portal
    Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
    jharwinbarrozo
    43.0M
  • Power Net Portal
    Power Net Portal
    Wirelessly connects power nets on schematic. Identical to the net portal, but with a power symbol. Used to organize schematics and separate functional blocks. To wirelessly connect power net portals, give them the same designator. #portal #power
    jharwinbarrozo
    11.4M
  • Generic Resistor
    Generic Resistor
    A generic fixed resistor ideal for rapid circuit topology development. Its footprint automatically adapts based on the selected package case code—supporting 0402, 0603, 0805, 1203, and many other standard SMD packages, as well as axial horizontal and vertical configurations. Save precious design time by seamlessly add more information to this part (value, footprint, etc.) as it becomes available. Standard resistor values: 1.0 ohm, 10 ohm, 100 ohm, 1.0k ohm, 10k ohm, 100k ohm, 1.0M ohm 1.1 ohm, 11 ohm, 110 ohm, 1.1k ohm, 11k ohm, 110k ohm, 1.1M ohm 1.2 ohm, 12 ohm, 120 ohm, 1.2k ohm, 12k ohm, 120k ohm, 1.2M ohm 1.3 ohm, 13 ohm, 130 ohm, 1.3k ohm, 13k ohm, 130k ohm, 1.3M ohm 1.5 ohm, 15 ohm, 150 ohm, 1.5k ohm, 15k ohm, 150k ohm, 1.5M ohm 1.6 ohm, 16 ohm, 160 ohm, 1.6k ohm, 16k ohm, 160k ohm, 1.6M ohm 1.8 ohm, 18 ohm, 180 ohm, 1.8K ohm, 18k ohm, 180k ohm, 1.8M ohm 2.0 ohm, 20 ohm, 200 ohm, 2.0k ohm, 20k ohm, 200k ohm, 2.0M ohm 2.2 ohm, 22 ohm, 220 ohm, 2.2k ohm, 22k ohm, 220k ohm, 2.2M ohm 2.4 ohm, 24 ohm, 240 ohm, 2.4k ohm, 24k ohm, 240k ohm, 2.4M ohm 2.7 ohm, 27 ohm, 270 ohm, 2.7k ohm, 27k ohm, 270k ohm, 2.7M ohm 3.0 ohm, 30 ohm, 300 ohm, 3.0K ohm, 30K ohm, 300K ohm, 3.0M ohm 3.3 ohm, 33 ohm, 330 ohm, 3.3k ohm, 33k ohm, 330k ohm, 3.3M ohm 3.6 ohm, 36 ohm, 360 ohm, 3.6k ohm, 36k ohm, 360k ohm, 3.6M ohm 3.9 ohm, 39 ohm, 390 ohm, 3.9k ohm, 39k ohm, 390k ohm, 3.9M ohm 4.3 ohm, 43 ohm, 430 ohm, 4.3k ohm, 43K ohm, 430K ohm, 4.3M ohm 4.7 ohm, 47 ohm, 470 ohm, 4.7k ohm, 47k ohm, 470k ohm, 4.7M ohm 5.1 ohm, 51 ohm, 510 ohm, 5.1k ohm, 51k ohm, 510k ohm, 5.1M ohm 5.6 ohm, 56 ohm, 560 ohm, 5.6k ohm, 56k ohm, 560k ohm, 5.6M ohm 6.2 ohm, 62 ohm, 620 ohm, 6.2k ohm, 62K ohm, 620K ohm, 6.2M ohm 6.8 ohm, 68 ohm, 680 ohm, 6.8k ohm, 68k ohm, 680k ohm, 6.8M ohm 7.5 ohm, 75 ohm, 750 ohm, 7.5k ohm, 75k ohm, 750k ohm, 7.5M ohm 8.2 ohm, 82 ohm, 820 ohm, 8.2k ohm, 82k ohm, 820k ohm, 8.2M ohm 9.1 ohm, 91 ohm, 910 ohm, 9.1k ohm, 91k ohm, 910k ohm, 9.1M ohm #generics #CommonPartsLibrary
    jharwinbarrozo
    1.5M
  • Generic Capacitor
    Generic Capacitor
    A generic fixed capacitor ideal for rapid circuit topology development. You can choose between polarized and non-polarized types, its symbol and the footprint will automatically adapt based on your selection. Supported options include standard SMD sizes for ceramic capacitors (e.g., 0402, 0603, 0805), SMD sizes for aluminum electrolytic capacitors, and through-hole footprints for polarized capacitors. 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, 10000uF 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, 220pF, 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
    jharwinbarrozo
    1.5M
  • Generic Inductor
    Generic Inductor
    A generic fixed inductor suitable for rapid circuit topology development. The footprint automatically adapts based on the selected package, supporting standard SMD sizes (e.g., 0402, 0603, 0805) as well as well-known inductor packages such as SDR1806, PA4320, SRN6028, and SRR1260. Standard inductor values: 1.0 nH, 10 nH, 100 nH, 1.0 µH, 10 µH, 100 µH, 1.0 mH 1.2 nH, 12 nH, 120 nH, 1.2 µH, 12 µH, 120 µH, 1.2 mH 1.5 nH, 15 nH, 150 nH, 1.5 µH, 15 µH, 150 µH, 1.5 mH 1.8 nH, 18 nH, 180 nH, 1.8 µH, 18 µH, 180 µH, 1.8 mH 2.2 nH, 22 nH, 220 nH, 2.2 µH, 22 µH, 220 µH, 2.2 mH 2.7 nH, 27 nH, 270 nH, 2.7 µH, 27 µH, 270 µH, 2.7 mH 3.3 nH, 33 nH, 330 nH, 3.3 µH, 33 µH, 330 µH, 3.3 mH 3.9 nH, 39 nH, 390 nH, 3.9 µH, 39 µH, 390 µH, 3.9 mH 4.7 nH, 47 nH, 470 nH, 4.7 µH, 47 µH, 470 µH, 4.7 mH 5.6 nH, 56 nH, 560 nH, 5.6 µH, 56 µH, 560 µH, 5.6 mH 6.8 nH, 68 nH, 680 nH, 6.8 µH, 68 µH, 680 µH, 6.8 mH 8.2 nH, 82 nH, 820 nH, 8.2 µH, 82 µH, 820 µH, 8.2 mH #generics #CommonPartsLibrary
    jharwinbarrozo
    15.9k
  • Terminal
    Terminal
    An electrical connector acting as reusable interface to a conductor and creating a point where external circuits can be connected.
    natarius
  • RMCF0805JT47K0
    RMCF0805JT47K0
    General Purpose Thick Film Standard Power and High-Power Chip Resistor 47 kOhms ±5% 0.125W, 1/8W Chip Resistor 0805 (2012 Metric) Automotive AEC-Q200 Thick Film Features: - RMCF – standard power ratings - RMCP – high power ratings - Nickel barrier terminations standard - Power derating from 100% at 70ºC to zero at +155ºC - RoHS compliant, REACH compliant, and halogen free - AEC-Q200 compliant
    jharwinbarrozo
    1.2M
  • 875105359001
    875105359001
    10 µF 16 V Aluminum - Polymer Capacitors Radial, Can - SMD 30mOhm 2000 Hrs @ 105°C #commonpartslibrary #capacitor #aluminumpolymer #radialcan
    jharwinbarrozo
    1.2M
  • CTL1206FYW1T
    CTL1206FYW1T
    Yellow 595nm LED Indication - Discrete 1.7V 1206 (3216 Metric)
    jharwinbarrozo
    1.1M

Vertical Gold Flying Cab

Vertical Gold Flying Cab thumbnail
Welcome to your new project. Imagine what you can build here.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Digi-Key

$2.77–$3.06

LCSC

$1.48

Mouser

$0.30

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.

      Introducing AI Placement!
      AI Placement Demo

      AI-Powered Component Placement

      Let AI place your components intelligently. AI Placement analyzes your schematic and positions components for optimal routing, signal integrity, and board density.

      From Schematic to Layout in Seconds

      Skip the tedious manual placement. AI Placement generates a starting layout you can refine, saving hours of repetitive work on every new design.

      Works With Auto-Layout

      Pair AI Placement with Auto-Layout for a complete AI-driven PCB design flow — from component placement through trace routing, all with one click.

      Try it