I have a few devices with several modes that can be changed by cycling the power, and I'd like to do that with an Arduino, otherwise, I'd have to add WiFi or BT and then create some kind of server on the Arduino and a client on another device.
For example, I have an exterior motion-detect flood light with four modes. The first mode is off - you set that by turning the power switch off. The other modes are (1) always-on, (2) on-dusk-to-dawn, and (3) on-for-5-seconds-on-motion-detect. To cycle to the next mode, you turn it off and back on within 5 seconds or so. If it is off for more than 5 seconds, it comes on with the same mode it was powered off in. I do not think this device has any microcontroller, so I was wondering if any of you know of a simple circuit that do this.
I also have an exterior muti-color floodlight with 12 modes. Its operation is similar, but if it is off between 5 and 8 seconds, it returns to mode 1, and if it is more than 8 seconds it powers on in the same mode it was powered off in.
Any suggestions for timing how long the power was off?
Thanks,
Kevin