The LM311 has 2 power inputs. These are labeled VCC and VEE. VCC, pin 8, is where the positive terminal of the voltage supply gets inserted into. This supply voltage can be as high as 36V. VEE, pin 4, is the pin we either connect to ground or to negative voltage. In this circuit, we simply connect VEE to ground. These 2 terminals complete the power path for the LM311 chip and gives it the power it needs to function.
The GND pin, pin 1, connects to ground. If you looked at the diagram of the internal components of the LM311, you would see that this pin is the emitter of the output transistor of the chip. So when we connect this pin to ground, we are grounding the emitter of the output. This pin must be grounded in order for the circuit to work properly. If not, the output will always be on, whether the noninverting input is greater than or less than the inverting input.
Next, we have the output pin of the chip. This is pin 7 of the chip. This pin is an open collector pin. It is the collector of the output transistor. So it must be connected to VCC and this is normally done through a pull-up resistor, but it depends on the load we are powering. For an LED, we definitely want a resistor as to limit current to the load.
Next, we have the input pins for the comparator. We now deal with the comparator that is internally within the chip. The comparator has 2 inputs and one output. One input, pin 2, is the noninverting terminal. The second input, pin 3, is the inverting terminal voltage. We will connect a reference voltage to the noninverting terminal. And we will attach a voltage divider circuit to the inverting terminal of the comparator. When the inverting terminal voltage is greater than the noninverting terminal voltage, then output is drawn high to VCC. When the inverting terminal voltage is lower than the noninverting terminal voltage, then the output is drawn low to VEE.
These are the only 5 pins we are going to connect. The other pins which control strobe capability and balance will be left unconnected; we will not use these features.
For our circuit, we will connect a potentiometer to the noninverting terminal. This will allow us to adjust the potentiometer to set a reference voltage level.
We will then connect a voltage divider circuit, consisting of a fixed resistor and a photoresistor, to the inverting terminal of the comparator.
How the circuit works is when the photoresistor is exposed to bright light, it has very low resistance. Thus, very little voltage falls across it (ohm's law tells us this). Therefore, the voltage at the inverting terminal will be less than at the noninverting terminal. So the load connected to the output will be off. However, when the photoresistor is exposed to darkness, its resistance increases dramatically, and so will the voltage that falls across it. Thus, the voltage the inverting terminal will now be greater than at the noninverting terminal, and so the load connected to the output will be turned on.
LM311 มีพลังงาน 2 อินพุต เหล่านี้เป็นป้าย VCC และองค์ VCC, pin 8 เป็นที่เทอร์มินัลบวกของแรงดันไฟฟ้าได้รับการแทรกลงใน แรงดันไฟฟ้านี้สามารถสูง 36V ฟัง 4, pin เป็น pin ที่เราจะเชื่อมต่อ กับกราวด์ หรือแรงดันลบ ในวงจรนี้ เราเพียงแค่เชื่อมต่อฟังกับพื้น เทอร์มินัลเหล่านี้ 2 เสร็จสมบูรณ์เส้นทางพลังงานสำหรับชิป LM311 และทำให้พลังงานที่จำเป็นต้องทำงานGND pin, pin 1 เชื่อมต่อกับพื้นดิน ถ้าคุณมองไดอะแกรมส่วนประกอบภายในของการ LM311 คุณจะเห็นว่า pin ตัวส่งของทรานซิสเตอร์เอาท์พุทของตัวชิป ดังนั้น เมื่อเราเชื่อมต่อหมุดนี้พื้นดิน เรามีกฟผตัวส่งของผลผลิต ขานี้ต้องต่อสายดินเพื่อให้วงจรทำงานได้อย่างถูกต้อง ถ้า ไม่ได้ มักจะแสดงผลบน ว่า noninverting อินพุตมีค่ามากกว่า หรือน้อยกว่าอินพุตสีตรงกันข้ามถัดไป เรามี pin ผลลัพธ์ของการชิพ ขา 7 ของชิพอยู่ การเปิดเก็บ pin pin ได้ รวบรวมของทรานซิสเตอร์เอาท์พุทได้ ดังนั้น จะต้องเชื่อมต่อกับ VCC และนี้ปกติจะทำผ่านตัวต้านทาน pull-up แต่ขึ้นอยู่กับโหลดที่เราจะเปิด LED เราแน่นอนต้องตัวต้านทานเพื่อจำกัดกระแสโหลดถัดไป เรามีหมุดสำหรับ comparator ที่ป้อนเข้า เราตอนนี้จัดการกับ comparator ที่อยู่ภายในภายในตัวชิป Comparator ที่มี 2 อินพุตและผลผลิตหนึ่ง ป้อนหนึ่ง pin 2 เป็นเทอร์มินัล noninverting อินพุตสอง pin 3 แรงดันไฟฟ้าที่สถานีสีตรงกันข้ามได้ เราจะเชื่อมต่อกับแรงดันอ้างอิงกับเทอร์มินัล noninverting และเราจะแนบวงจรแบ่งแรงดันไฟฟ้ากับเทอร์มินัลสีตรงกันข้ามของ comparator ที่ เมื่อแรงดันไฟฟ้าที่สถานีสีตรงกันข้ามมีมากกว่าแรงดันที่เทอร์มินัล noninverting แล้วผลผลิตจะออกสูงให้ VCC เมื่อแรงดันไฟฟ้าที่สถานีสีตรงกันข้ามจะต่ำกว่าแรงดันไฟฟ้าที่สถานี noninverting แล้วแสดงผลออกต่ำเพื่อฟังเหล่านี้เป็นหมุด 5 เรากำลังเชื่อมต่อ จะไม่เปลี่ยนหมุดที่ควบคุมความสามารถในการสะท้อนแสงแฟลชและความสมดุลกับ เราจะไม่ใช้คุณลักษณะเหล่านี้สำหรับวงจรของเรา เราจะเชื่อมต่อกับมิเตอร์กับเทอร์มินัล noninverting นี้จะช่วยให้เราปรับมิเตอร์ให้ตั้งระดับแรงดันอ้างอิงเราจะแล้วเชื่อมต่อวงจรแบ่งแรงดันไฟฟ้า ประกอบด้วยตัวต้านทานคงที่และการ photoresistor การเทอร์มินัลสีตรงกันข้ามของ comparator ที่How the circuit works is when the photoresistor is exposed to bright light, it has very low resistance. Thus, very little voltage falls across it (ohm's law tells us this). Therefore, the voltage at the inverting terminal will be less than at the noninverting terminal. So the load connected to the output will be off. However, when the photoresistor is exposed to darkness, its resistance increases dramatically, and so will the voltage that falls across it. Thus, the voltage the inverting terminal will now be greater than at the noninverting terminal, and so the load connected to the output will be turned on.
การแปล กรุณารอสักครู่..
