24V Sensor Circuits
Text
Create a complete, clean, production-ready schematic for a dual optical sensor interface PCB. Start from the empty project and do not stop after merely adding components: select real parts, arrange the schematic into readable functional blocks, wire every connection, label all nets, verify active-component pinouts against manufacturer datasheets, and run ERC/design checks. PRODUCT PURPOSE The PCB is powered from a nominal industrial 24 VDC supply and contains two Vishay TCPT1300X01 transmissive photo-interrupters: 1. An analog optical channel that produces a 4–20 mA current output using a Texas Instruments XTR111. 2. A digital optical channel that produces a high-side 24 VDC HOME/reference signal for a WAGO 750-671 stepper controller. The design is non-isolated and uses a common 0 V reference between the PCB, current output, and WAGO controller. ELECTRICAL REQUIREMENTS Input supply: - Nominal input: 24 VDC. - Design operating range: approximately 18–30 VDC unless a component requires a narrower range. - Include reverse-polarity protection, input transient protection, input bulk capacitance, and local high-frequency decoupling. - Use a clearly labelled 2-pin terminal connector for +24V_IN and GND. - Do not add a buck regulator unless calculations prove it is necessary. TCPT1300X01 emitters: - Power both infrared emitters from the protected 24 V rail. - Target approximately 15 mA emitter current. - Use one independent current-limiting resistor for each emitter. - Starting value: 1.5 kΩ. - Rate each resistor for at least 0.5 W; preferably use a 1 W part or an adequately derated pulse-proof package. - Calculate resistor current and dissipation at the minimum and maximum input supply. - Connect the TCPT phototransistor pins according to the exact TCPT1300X01 datasheet. - Use the exact TCPT1300X01 component and footprint. Do not silently substitute TCPT1600X01 or another sensor. - If TCPT1300X01 is unavailable in the Flux library, create or import an exact datasheet-backed component, including the correct symbol, pin numbers, footprint, pad mapping, package dimensions, slot geometry, and optical orientation. - If exact component creation is impossible, stop and clearly report the blocker rather than using an unverified footprint. FUNCTIONAL BLOCK 1: ANALOG OPTICAL CHANNEL Use one TCPT1300X01 as an analog phototransistor sensor. Power and reference: - Power the XTR111 directly from the protected 24 V rail. - Configure the XTR111 REGF regulator output for 5.0 V using the resistor values and connections recommended by the latest TI datasheet. - Use REGF_5V to power the analog op-amp and low-power control circuitry. - The total external REGF load must remain below the XTR111 5 mA limit under worst-case conditions. - Calculate the complete worst-case REGF load, including op-amp supply current, comparator supply current, reference-divider current, and all pull-up/divider currents. - Add REGF decoupling according to the XTR111 datasheet. Generate a 0.400 V reference from REGF_5V: - Use an 11.5 kΩ top resistor from REGF_5V to VREF_0V4. - Use a 1.00 kΩ bottom resistor from VREF_0V4 to GND. - Both resistors should be 0.1% tolerance and preferably no more than 25 ppm/°C. - Add 100 nF from VREF_0V4 to GND. - Verify that the divider produces 0.400 V when REGF is 5.000 V. - Account for the op-amp input bias-current error. - Do not add a buffer unless calculations show that one is required. Analog amplifier: - Select a real low-quiescent-current, rail-to-rail input/output op-amp. - It must operate correctly from 5 V. - Its input common-mode range must include 0.4 V. - Its output must accurately cover at least 0.4–2.0 V. - Prefer an op-amp with sufficiently low offset voltage and input bias current for the required current-loop accuracy. - Add a 100 nF local supply-decoupling capacitor. Use this transimpedance topology, but verify its polarity before wiring: - TCPT phototransistor collector to REGF_5V. - TCPT phototransistor emitter to the op-amp inverting input. - Op-amp non-inverting input to VREF_0V4. - Feedback resistance from the op-amp output to its inverting input. - The intended relationship is approximately: ANALOG_VIN = 0.400 V + IPHOTO × RF. - Add a small capacitor in parallel with the feedback resistance for stability and optical-noise filtering. - Make RF calibratable because the TCPT1300X01 photocurrent has significant tolerance and depends on the mechanical vane geometry. - Use a fixed resistor plus a real trim resistor or potentiometer that provides a practical total adjustment range around approximately 2.7 kΩ. - Ensure the trim component cannot accidentally make the feedback resistance zero. - Label the adjustment “20 mA SPAN.” - Check op-amp stability with the phototransistor and feedback capacitance. XTR111 current transmitter: - Use a real Texas Instruments XTR111 component. - Connect VSP to the protected 24 V rail and GND/exposed pad as specified by TI. - Connect ANALOG_VIN to the XTR111 VIN input. - Use RSET = 1.00 kΩ, 0.1%, low temperature coefficient. - The intended transfer function is: IOUT = 10 × VIN / RSET. - Confirm that VIN = 0.400 V produces 4.00 mA and VIN = 2.000 V produces 20.00 mA. - Configure OD so the output is enabled by default. - Correctly terminate or mark EF according to whether it is used. - Do not leave control pins floating. - Follow the latest XTR111 datasheet for REGF, REGS, SET, IS, VG, OD, EF, VSP, GND, and exposed-pad connections. External XTR111 transistor: - Select a real P-channel MOSFET suitable for the XTR111 external output stage. - It must tolerate the maximum 24 V system voltage, cable transients, loop voltage, power dissipation, and gate-source voltage. - Prefer at least a 60 V VDS rating. - Add the XTR111-recommended gate/source protection, including a suitable zener clamp if required. - Verify MOSFET pin ordering and connect source, drain, and gate exactly as required by the XTR111 application circuit. - Calculate worst-case MOSFET dissipation at 20 mA and minimum loop load. - Include appropriate output surge and ESD protection without preventing the current output from meeting its compliance requirement. Analog connector: - Add a clearly labelled terminal connector for LOOP_OUT and LOOP_RETURN/GND. - Make the three-wire current-source architecture clear: PCB +24 V supply, PCB GND, sourced current output. - Label the output “4–20 mA OUT.” - Confirm the maximum allowable receiver/load resistance at minimum input-supply voltage after accounting for protection and XTR111 output headroom. FUNCTIONAL BLOCK 2: DIGITAL HOME-SWITCH CHANNEL Use the second TCPT1300X01 as a digital optical sensor. Sensor input: - Power its IR emitter from protected 24 V through its own approximately 1.5 kΩ power resistor. - Connect the phototransistor emitter to GND. - Pull the phototransistor collector up to REGF_5V with approximately 10 kΩ. - Name this signal PHOTO_DIG. - Arrange the polarity so the schematic clearly states whether PHOTO_DIG is high when blocked or high when illuminated. Comparator: - Select a real low-quiescent-current 5 V comparator. - Its input range must support the selected threshold and the complete PHOTO_DIG range. - Use a defined reference threshold around the middle of the 5 V range. - Add positive hysteresis so vibration, partial obstruction, and optical noise cannot cause chatter. - Target approximate switching thresholds around 2.4 V and 2.6 V, but calculate the exact values from the selected resistor network. - Add local 100 nF supply decoupling. - Do not leave either comparator input floating. - Label comparator polarity and the resulting blocked/unblocked behavior. 24 V high-side output: - The WAGO 750-671 input requirements are: logic 0: −3 V to +5 V, logic 1: +15 V to +30 V, typical input current: approximately 2.8 mA. - The PCB output must source positive voltage into the WAGO DI input. - Use the comparator to drive an NPN transistor. - Use the NPN transistor to pull down the base of a PNP high-side transistor. - PNP emitter to protected +24 V. - PNP collector to HOME_OUT. - Add a base-emitter pull-up resistor on the PNP so it defaults off. - Add a defined NPN base resistor and base-emitter pull-down. - Select real transistors with sufficient voltage ratings for the industrial 24 V rail. - Calculate all base currents, collector currents, resistor dissipation, and saturation margins. - Verify HOME_OUT stays above 15 V at the WAGO’s input current over the full supply range. - Verify HOME_OUT falls below 5 V when off. - Loss of PCB power should produce HOME_OUT low. - Clearly state whether HOME_OUT is active when the optical slot is blocked or clear. Digital output protection: - Add a small series resistor, initially around 220 Ω, between the high-side driver and the field connector. - Account for its voltage drop at the WAGO’s 2.8 mA input current. - Add an appropriately rated TVS or ESD clamp at the field connector. - Choose the TVS so it remains off during normal maximum 24 V operation. - Do not use protection that clamps a valid 30 V input signal. - Add a terminal connector labelled HOME_OUT and GND. - Show the intended external connections: HOME_OUT to the selected WAGO DI+ terminal, PCB GND to WAGO DI−. SCHEMATIC ORGANIZATION Create a clean, readable schematic rather than a collection of scattered components. Arrange the schematic into these clearly separated blocks: 1. 24 V input and protection. 2. XTR111 REGF 5 V supply and 0.4 V reference. 3. Analog TCPT1300X01 and transimpedance amplifier. 4. XTR111 4–20 mA output stage. 5. Digital TCPT1300X01 and comparator. 6. NPN/PNP 24 V HOME output. 7. External connectors. Placement rules: - Signal flow left to right. - Power rails at the top and ground at the bottom. - Input connectors on the left and output connectors on the right. - Position all components before wiring. - Keep related passives close to the pins they support. - Use direct, short wires inside each functional block. - Use clearly named net labels between blocks instead of long crossing wires. - Do not place all parts in one horizontal line. - Avoid wire crossings, overlapping symbols, overlapping labels, and excessive empty space. - Keep the complete new schematic section framed closely enough that it can be viewed and reviewed on screen. - After arrangement, open and focus the schematic editor on the complete dual-channel circuit. COMPONENT AND PROPERTY REQUIREMENTS - Use real Flux library parts for all ICs, sensors, transistors, MOSFETs, TVS devices, trimmers, and connectors. - Use Generic Resistor and Generic Capacitor only for ordinary passives. - Give every passive its actual Resistance or Capacitance property, not a generic Value field. - Give every passive a Role and Role Details property. - Use valid SMD packages selected from the available package options. - Set resistor tolerance, power rating, and temperature coefficient where important. - Set capacitor voltage rating and dielectric. - Use at least 50 V-rated components on the 24 V rail where appropriate. - Verify all active-component footprints and terminal mappings. VERIFICATION After completing the schematic: 1. Inspect every active-component pin against its datasheet. 2. Verify the analog TIA polarity and calculate its output range. 3. Verify the 0.400 V divider. 4. Verify the 4–20 mA transfer function. 5. Calculate the worst-case REGF load and confirm it is below 5 mA. 6. Calculate both TCPT LED currents and resistor dissipation over the supply range. 7. Verify the XTR111 PMOS voltage and thermal margins. 8. Calculate comparator thresholds and hysteresis. 9. Verify HOME_OUT high and low voltage margins into a 2.8 mA WAGO load. 10. Run ERC and schematic-legibility checks. 11. Fix all real errors in the newly created circuit. 12. Clearly distinguish any unrelated project-wide warnings. 13. Do not proceed to PCB layout. FINAL RESPONSE When finished, provide: - A concise summary of the implemented design. - The selected active-component MPNs. - The calculated REGF load. - The calculated LED currents and resistor dissipation. - The analog calibration range. - Comparator switching thresholds. - HOME_OUT voltage margins. - Any unresolved component-library or footprint issue. - Confirmation that the schematic editor is focused on the complete new circuit.
Get Free Expert Help
We want to get the prototype into your hands fast. Speak with one of Flux's in-house electrical engineers to review your project.
Collins, Ryan, Nico — real humans who've shipped real hardware