Hi,
I'm building a large Zoetrope. 18 wooden artists mannequins are set around a 1.2 meter diameter disc. These get animated as the disc turns, and strobe lighting kicks in.
I'm hoping it ends up as a permanent build, to be started and stopped many times a day, running for a minute each time, over the course of years.
I have the lighting side under control, with magnets set on the disc under each mannequin, a reed switch that triggers for each 'frame', going to arduino, mosfet and LED white tape, with delayMicroseconds to adjust the pulse time of the strobing.
It's the control of the motor that I need some help with, a little bit of advice on...
The disc will be heavy-ish. So I bought this Chinese e-bike hub motor, with a speed controller and a thumb throttle, which apparently are everywhere in China (and can take the load of a heavy Westerner!)
http://www.petrolscooter.co.uk/front-wheel-e-bike-hub-motor-with-speed-controller-24v-250w.html
(That's about as much documentation as comes with it! lol)
The idea was: once the zoetrope was built, the disc and mannequins all in place, to set the final speed by physically fixing the thumb throttle at the desired position; then, to turn it on and off for one minute, at that set speed, using a relay at the power supply end. (I'm using a 24v 360w LED power supply instead of batteries).
However, I found that there's a safety feature with these controllers: you have to bring the throttle back down to the 'off' position, before you can get the motor going again. (I guess it's to prevent a situation where the thumb throttle is jammed, or the spring on it broken, where you go to fix a loose connection on the battery at the back of your bike and then find the bike runs away from you ..??)
So that was my idea of stopping and starting the thing, through powering on and off, out the window.
Next, I took the thumb throttle apart, and found that it works with a hall-effect sensor. Three wires go to the hall sensor: a supply of about 4.6V, a ground wire, and the signal wire.
The signal wire ranges from 0.8V when the throttle is in the 'off' position, to 3.6V when in the fully on position. The signal operates at about 20mA.
Basic making and breaking of this wire allows me to turn the motor on and off when the motor and power supply have power, and for the motor to turn on at the speed that I have pre-set with the thumb throttle. I'm back in business .. .I think...
So, I'm basically down to: how to switch this signal wire through the arduino, so that both the lighting and the motor can be controlled from the same arduino sketch.
I've tried using:
i) a N435 optocoupler.
and
ii) a standard electromagnetic relay rated for far heavier loads.
Both work, and work well. When I apply 5v to these, they get the motor running at the desired speed.
The output signal from the emitter of the optocoupler is near enough identical to the input at the collector, and this holds for all positions at the thumb throttle (0.8-3.6V)
I haven't tested the output on the relay (simply assuming that it becomes again one and the same 'wire' when the contacts are closed.)
However, during testing, every time I hear the relay click, and re-read the data sheet for the relay, I realise that there are only so many operations left on it! Am I likely to come anywhere near the electrical life limits of this relay (100,000) with such a light 'load'?
If both of these work well, is there a better of the two? (I'm sure of course there's an even better way, but I don't know about it because I'm not very experienced with any of this!)
I guess the very short question to my very long winded description is:
What's the most reliable way to make/break an (external) signal wire that runs 0.8v-3.6v at 20mA: an optocoupler with a 330ohm resistor in series, or mechanically switched with a suitable relay?
The optocoupler is here:
And the relay is here:
(This came in a module with flyback diode from Ciseco).
Thanks, if you are still reading this long-winded post ... But any help much appreciated.