4 ms·
You're welcome to try. The problem is that the Rascal fetches a new image from the webcam after every click. In order to make sure that the bulbs have turned on
by pingswept 15y ago
You're welcome to try. The problem is that the Rascal fetches a new image from the webcam after every click. In order to make sure that the bulbs have turned on (or off) before the image is updated, Eerik added a 1 second delay in the loop. I think this makes it impossible to toggle the bulbs at more than around 0.5 Hz (1 second on, 1 second off).
If it weren't for the delay, you could hit 300 Hz or so. You could probably even dim the bulbs with PWM if you wanted.
- dmlorenzetti 15y agoTo kill a light bulb, it may well be more effective to cycle them at 0.5 than at 300 Hz, anyway-- you get more thermal cycling, and maybe even some interesting dynamics from the relay bouncing.