PiJoy wrote:
Querty,
Glad to hear of another Arduino-for-kink developer is out there.
Hello PiJoy, is always a pleasure to reading from you. I use to visit
Milovana and you are one of those users that do always helps and explains things cristal clear.
The thing is that one user asked via pm for help to activate multiple relays with one Arduino to be used with the selfbondage programs. Trying to reply him I realised that only can program can acces to the Arduino at the same time (as you have explained perfectly on your post, I didn't know why but I figured it, thanks)
One of the possibilities I though it can work was to create the big executable (let's call it
Big.exe) that you talked about, one program that changes to HIGH or to LOW state the output of the pins on the Arduino depending on if there's a third process being executed. Sorry, my English is not as good as it should:
Before starting the selfbondage session you run
Big.exe, that will be the only one
talking to the Arduino.
Big.exe is looking for the active processes all the time. When you have to be punished by the main selfbondage program (because you have failed doing the blowjob, you have done noize, you have moved, etc...) the computer runs a third program (let's call it
pain.exe).
Pain.exe just triggers a function inside
Big.exe, so while
pain.exe is being executed the digital pin 9 (for example) will be set to HIGH and when
pain.exe is no longer working,
Big.exe turns that pin again to LOW state.
We can also launch at the same time a
pain2.exe that last 5, 10, 30 seconds and that triggers a function on
Big.exe that changes the state of another pin.
I think that that way we can have multiple programs interacting with the state of the pins of the Arduino (and just one program really
talking to the board) and it would be pretty modular (we will finish just having to launch
Big.exe and create simple .exes that just exists and after some time they exit themselves).
But I have to test it as soon as I get some free time in front of the computer
PiJoy wrote:
What language(s) did you code your PC programs in?
I work with Autoit (a VB alike language).
PiJoy wrote:
Hope this helps,
PiJoy
You can bet on that. Thanks a lot.