Meeepster Posted February 20, 2018 Share Posted February 20, 2018 Hey guys, I have the following problem. I want to pump out a specific amount of liquid. In this example its polluted water. If the sensor above gets activated it should activate the pump until the sensor below is activated. If the sensor bellow is activated it should turn off the pump until the sensor above gets activated again. Could you guys tell me how I should wire this up to get it work like this? Sorry for my bad english. Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 It's called an SR latch. Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 an alternative way is to use a buffer and filter gate on one hydro sensor. You will be able to control the timed delay of when the the pump turns on and off. 28 minutes ago, Saturnus said: It's called an SR latch. I just tired this and the pump remands on even when both switches are off Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 14 minutes ago, Neotuck said: I just tired this and the pump remands on even when both switches are off As it should. That's the entire purpose. Top sensor is set to active "above" whatever Bottom sensor is set to active "below" whatever The Set Reset latch works by one sensor, in this case the bottom one turning active. It then remains active regard if the bottom sensor is active or not until the top sensor goes active. It then remains inactive until the bottom sensor goes active again. And so on, and so on. If it doesn't work, connect the pump to the NOT gate on the opposite side in exactly the same fashion. 14 minutes ago, Neotuck said: an alternative way is to use a buffer and filter gate on one hydro sensor. You will be able to control the timed delay of when the the pump turns on and off. Not entirely sure how that's supposed to be a substitute for an SR latch Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 4 minutes ago, Saturnus said: If it doesn't work, connect it to the NOT gate on the opposite side in exactly the same fashion. You are going to need to elaborate. In this picture the top sensor is set to above 1 kg and the bottom sensor is set to below 1 kg as you see in the picture there is no water yet the pump is on Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 6 minutes ago, Neotuck said: You are going to need to elaborate. In this picture the top sensor is set to above 1 kg and the bottom sensor is set to below 1 kg as you see in the picture there is no water yet the pump is on Connect the pump any of these places instead. An SR latch has an inverted side so you just connected it to any of the inverted points. Link to comment Share on other sites More sharing options...
llunak Posted February 20, 2018 Share Posted February 20, 2018 4 minutes ago, Neotuck said: You are going to need to elaborate. https://en.wikipedia.org/wiki/Flip-flop_(electronics)#Simple_set-reset_latches Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 4 minutes ago, llunak said: https://en.wikipedia.org/wiki/Flip-flop_(electronics)#Simple_set-reset_latches WE HAVE A WINNER! Now it works with both sensors set to above 1 kg. Hope this answers your question @Meepster Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 1 minute ago, Neotuck said: Now it works with both sensors set to above 1 kg. Hope this answers your question @Meepster No. You don't get it then. That's an AND OR latch. It is not a substitute for an SR latch in all cases as the trutth table is different. Get used to using the proper set up as I did above. Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 1 minute ago, Saturnus said: No. You don't get it then. That's an AND OR latch. It is not a substitute for an SR latch in all cases as the trutth table is different. Get used to using the proper set up as I did above. I filled it with water and the pump didn't turn on with the bottom sensor, but it did turn on with the top sensor. and the pump remained on until the bottom sensor was off HOW is that wrong? it's exactly what he asked for Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 @NeotuckLearn to use the tool that is an SR latch and it can do so much more... I erroneously posted the AND OR latch a long time ago when automation preview first came out but a lot people started using them as substitutes for SR latches, and couldn't figure out why their builds didn't work which result in me having to answer the same questions over and over. So my policy now is that it's better not to confuse people with short-cuts. https://forums.kleientertainment.com/topic/83723-useful-automation-gadgets/?tab=comments#comment-970441 Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 1 minute ago, Saturnus said: @NeotuckLearn to use the tool that is an SR latch and it can do so much more... Look I'm just trying to help a guy who was asking for help in the forum. I tried the SR latch and it didn't work, then I tried the AND OR latch and it did work. If the problem is I don't understand how the SR latch works then post a better picture. I copied it exactly ether way the AND OR latch works so why try to fix what isn't broken? Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 Just now, Neotuck said: I tried the SR latch and it didn't work it does work... just follow the instructions Link to comment Share on other sites More sharing options...
Kasuha Posted February 20, 2018 Share Posted February 20, 2018 Hysteresis loop can be implemented with single AND gate. Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 Just now, Kasuha said: Hysteresis loop can be implemented with single AND gate. Don't give people ideas, please... Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 7 minutes ago, Saturnus said: it does work... just follow the instructions alright I was able to figure it out but why make it so complicated? We would have skipped the hassle if your first picture showed this Link to comment Share on other sites More sharing options...
Kasuha Posted February 20, 2018 Share Posted February 20, 2018 25 minutes ago, Neotuck said: You can remove that OR gate, replace it just with the automation wire. It will work just as well. Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 3 minutes ago, Kasuha said: You can remove that OR gate, replace it just with the automation wire. It will work just as well. that's even better, thanks Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 Hey @Meeepster did any of these help? Link to comment Share on other sites More sharing options...
Kasuha Posted February 20, 2018 Share Posted February 20, 2018 1 minute ago, Saturnus said: Yep that's exactly it. Link to comment Share on other sites More sharing options...
Neotuck Posted February 20, 2018 Share Posted February 20, 2018 3 minutes ago, Saturnus said: Nice and compact, best one yet Link to comment Share on other sites More sharing options...
Saturnus Posted February 20, 2018 Share Posted February 20, 2018 3 minutes ago, Kasuha said: Yep that's exactly it. It only works because ONI automation is a bit wonky. I find it's better not to use it as you might start to think that's how it would work with real logic gates. Link to comment Share on other sites More sharing options...
Kasuha Posted February 20, 2018 Share Posted February 20, 2018 Just now, Saturnus said: It only works because ONI automation is a bit wonky. I find it's better not to use it as you might start to think that's how it would work with real logic gates. There's no issue with wired OR gates, you just need to add some resistance. Though nowadays, the simplest logic circuit is Arduino I guess... Link to comment Share on other sites More sharing options...
Hanro50 Posted February 20, 2018 Share Posted February 20, 2018 2 hours ago, Meeepster said: Hey guys, I have the following problem. I want to pump out a specific amount of liquid. In this example its polluted water. If the sensor above gets activated it should activate the pump until the sensor below is activated. If the sensor bellow is activated it should turn off the pump until the sensor above gets activated again. Could you guys tell me how I should wire this up to get it work like this? Sorry for my bad english. Couldn't you make a state cell by using two not gates connected into each other. The one switch connected to the input of one not gate and the other connected into the input of the other not gate. Then just connect the pump to the same not gate the uper sensor is connected to. Set the bottom sensor to go active if it has no liquid around it and the top one to go active it it has some liquid around it. This should active the pump till the bottom sensor doesn't detect pwater around itself anymore Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.