I have a way of controlling the USB part already, I am going to use the Velleman experimental USB board.This is a handy bit of kit, even though it is obviously far too large to use for a finished product, it will be ideal to test the prototype. It gives me a number of inputs / outputs, both digital and analogue as well as some sample software to enable us to test the theory of whether we can get it to work.
We do a bit of research and find that a great way to do the control is to use an Opto-isolator.

This makes them ideal for this type of job.
We can make up a circuit similar to the one above, where the two side are isolated by the opto-isolator (means we can't blow up the USB end) and we can then use the optoisolator to power a transistor, to regulate the two motors.
We sit down and do some calculations on what we are going to need to buy and we come up with.
1: A 2 channel opto-isolator TLP-624-2 (a channel to control each of the motors)
2: A couple of 560 ohm resistors to regulate the voltage into the optoisolator (R1 in the diagram)
3: A couple of transistors (BD136) these are to allow the power to the 2 motors. They are quite big transistors, but are spec up to 1.5amps and will cope if the motor is ever "jammed" and starts to pull more current than normal. (best to be safe than sorry)
4: 2 Diodes, to protect the transistors if the motors ever get wound backwards, and start generating a reverse current.
The other bit you may notice is the 8 pin socket for the optoisolator chip, this will make life much easy when soldering (and there is no danger in messing up the chip through heat damage)
We sit down and draw out the diagram and mark up what we gonna put on the board and where, then we leave it as it is getting late. (and the pub has opened)
We will start constuction... tomorrow.
No comments:
Post a Comment