Hi,
I’m a complete n00b at all this so please have patience and hear me out
I’m trying to control two motors connected to the imp remotely. So far I’ve managed to get this working using http requests sent from an arduino Uno. I can reliably switch the motors on. I can also switch them off, by sending a second request, though this is a little flakey.
What I’d really like to be able to do is switch the motors on for a set period (just a few seconds) and then have them automatically stop, and stay stopped, until I trigger them to switch on again. I figure this should be straight forward enough, but realise that I probably need to send a subsequent HTTP request from the planner to reset the switch to value to 0, or ‘off’, if I’m to avoid having to do this manually.
This is where I’m stumped: I can start a motor; I can set the delay; but I can’t figure out how to send the request to turn the switch value back to 0. Until I do the motor stays on until I manually send another HTTP request.
I’ve tried getting back to basics using the Blinkomatic example on the devWiki. Again I can reliable start and stop an LED blinking using HTTP requests, but I’m still confused as to how to make the blinking stop automatically after a delay and reset the ‘Inhibit’ value to make sure it stays off.
Thoughts, tips, sympathy appreciated.
Dean