Jump to content
Electronics-Lab.com Community

Matd

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Matd's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello everyone, for a project I need to design 2 simple logic circuits. However, it's been a while since i followed some electronic courses so I could really use your help. This is what te first one is supposed to do: I have 2 switches, S1 and S2 (in blue), and an Input I1 to my lpt gate on my computer. When the sliders moves from left to right, I want to ground the pin connected to I1 in my lpt gate for a short time (sort of a grounding pulse), after that, the input to the lpt needs to be open (or high?) again. When the slider moves from right to left, nothing should happen and the input to the lpt gat should remain unchanged (left open). So the logic combination should be this I think Slide moves from left to right: S1=0, S2=0 -> I1=1 S1=1, S2=0 -> I1=1 S1=1, S2=1 -> I1=0 (short grounding pulse) S1=0, S2=1 -> I1=1 S1=0, S2=0 -> I1=1 (back at starting situation) Slide moves from right to left: S1=0, S2=0 -> I1=1 S1=0, S2=1 -> I1=1 (Slide moves in wrong direction) S1=1, S2=1 -> I1=1 S1=1, S2=0 -> I1=1 S1=0, S2=0 -> I1=1 (back at starting situation) Someone else already helped me a bit and proposed me the following circuit (using a 555 timer ic). He did point out that I should think about debouncing the switches I use depending on the types of switches. I'm using normal microswitches so do these need debouncing? Will this work for me? And what will the input I do in this case, will it give a short 5V pulse or a short grounding pulse? (because I can change the input for the pin on my lpt gate fairly easy in the software so it needs a 5V pulse instead of a grounding pulse). The second one is as follows I have 2 inductive ring sensors with a switching output of the NPN or PNP type (it does not matter which one to me, whatever is best and easiest for designing the circuit) and the same input I1 as in the previous circuit. when the first sensor detects a piece, it should start a timer. Now there are 2 possibilities. 1st case After some time t (which i think I can set using a potentiometer?), the second sensor still did not detect the part passing. The circuit should now change I1 (so ground pulse or 5V pulse). 2nd case The second sensor detects the part passing within the time t and stops and resets the timer. Nothing should happen now untill the first sensor detects another part and starts the cycle all over again. I hope all this is a bit clear for you? If not please do not hesitate to ask questions, i could really use your help. Thank you
×
  • Create New...