I want to trigger an output based on a counter. For example I want a drive port to be turned off after a momentary switch is activated N times. Can this be accomplished?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I do not know the answer but maybe @n2585722 can provide some insight.I want to trigger an output based on a counter. For example I want a drive port to be turned off after a momentary switch is activated N times. Can this be accomplished?
Have you thought about using a 0-10v input like they do with the button boxes with 5 push button switches. There is a resistor ladder in the button box that change the voltage at that input. You can setup multiple inputs using the same 0-10v input and set a voltage for it to trigger at. here are some inputs I have setup for one of my 0-10v inputs on my X4. The first one for the bench light has a minimum on time of 30 minutes set. So that light will stay on for 30 minutes and then turn off unless I press the button again and then it will turn off. The others are set to least just 10 seconds unless you hold the button on.Crusso Kid and Danny,
Thanks for kicking this around. I'll explain more specifically what I need to do, perhaps that will stimulate some ideas.
Based on a custom product I'm making for my reef I need to be able to identify when a device has turned either 1/4, 1/2, 3/4 or all the way around. I plan on placing magnets on a rotating disc (90 deg increments) and then a stationary reed switch to detect when the magnets pass by. I'd like the controller to trigger an output based on the 1/4 intervals of rotation. There will be times I need to trigger the output on 1/4, 1/2, 3/4 or full rotation of the disc. I can do this with four reed switches and four different rings of magnets around the disc, but that requires more channels and clap trap than needed.
I have committed to the Hydros platform for a few reasons, but perhaps automation like this may not be practical with the Hydros.
Any thoughts are welcome.
I have my button boxes I made in my build thread on page 9 of the thread and it starts on post 163. The schematic I used is on post 167 but I connected what was in ground to the +5v and what was at +5 to the input connection. I also connected the common on the switches to ground. That also reversed the voltages at a particular switch. If you use Hall sensors and the output can ground in place of the switch it should work. Press on the "My Tank Thread" banner in one of my post to get to by build thread. The schematic is not mine but instead of drawing my own I posted it instead.Along those lines could you use something like hall sensors to trigger a voltage reading (1/4 for 1 volt, 1/2 for 2 volts and so on)
Hall sensors are great for triggering things at certain spots when something gets to a certain point. I have no clue if it's possible to equate those spots to specific voltages but I am sure if can be done somehow...