name = "steve/reflective-optical-sensor" version = "1.0.0" runtime = "steve" license = "MIT" summary = "Vishay reflective optical sensors with transistor output: CNY70, TCRT5000 and TCRT5000L, by part number." description = """Reflective optical sensors (an infrared emitter and a phototransistor side by side) for board layouts and enclosures, as Vishay draws them: the CNY70 cube with its two windows, and the TCRT5000 with two domed lenses, a divider, a locating peg and two mounting clips, with standard (TCRT5000) or long leads (TCRT5000L). The housing, each lens and each lead are their own solids. Dimensions from Vishay's data sheets. See the README.""" tags = ["optical-sensor", "reflective-sensor", "opto", "through-hole", "vishay", "electronics"] [parameters.part_number] type = "choice" default = "CNY70" choices = ["CNY70", "TCRT5000", "TCRT5000L"] label = "Part number" description = "Vishay part number: CNY70 7 x 7 x 6 cube; TCRT5000 10.2 x 5.8 with domed lenses and clips, leads 3.5 long; TCRT5000L the same with leads 15 long." [[presets]] id = "CNY70" title = "Vishay CNY70 reflective optical sensor (7 x 7 x 6 cube, leads 6 long)" params = { part_number = "CNY70" } aliases = ["Vishay CNY70", "CNY70", "CNY70 reflective sensor"] standard = "Vishay CNY70" [[presets]] id = "TCRT5000" title = "Vishay TCRT5000 reflective optical sensor (10.2 x 5.8, two domed lenses, clips, leads 3.5 long)" params = { part_number = "TCRT5000" } aliases = ["Vishay TCRT5000", "TCRT5000", "TCRT5000 reflective sensor"] standard = "Vishay TCRT5000" [[presets]] id = "TCRT5000L" title = "Vishay TCRT5000L reflective optical sensor (10.2 x 5.8, two domed lenses, clips, leads 15 long)" params = { part_number = "TCRT5000L" } aliases = ["Vishay TCRT5000L", "TCRT5000L", "TCRT5000L reflective sensor"] standard = "Vishay TCRT5000L"