I haven't even bothered watching after "only DC motors can be used as a generator".
As far as I am aware, a motor can be of the following families:
- Permanent magnet DC brushed. DC back emf.
- Coiled stator DC brushed (as a separate winding, or internally wound as series or parallel). DC back emf IF the stator is powered. Single phase universal motors are a subset of series connection types for which, regardless of the polarity of the voltage, torque is always generated (needs moveable brushes or a different wiring to change direction though).
- Permanent magnet AC synchronous (three phases). Three phase AC back emf.
- Coiled rotor AC synchronous. I think those generally are not brushed but rather rectify the current induced by the stator. If brushed, no back emf unless the rotor is powered.
- DC brushless. This one is basically a permanent magnet AC synchronous with hall sensors built in, to be able to electronically switch the phases. The back emf is however square or trapezoidal to maximise flux linkage.
- Stepper motor (2, 3, 5 phases). Close to the PM AC synchronous in its construction, except that the motor is made to maximise the number of stable equilibrium positions of the rotor (many alternating magnetic poles at the rotor or variable reluctance). Back emf depends on how it's driven.
- AC asynchronous (3 phases). The rotor is a closed loop (a coil, or a squirrel cage made of bars) which creates its field from currents induced by the stator. Can only be used as a generator beyond the synchronous rpm (+voltage at stator). AC back emf (TBC).
- AC asynchronous (single phase). The motor cannot be self-started unless an out-of-phase auxiliary supply is created via a reacting capacitor, and fed to windings 90° from the main windings. Can only be used as a generator beyond the synchronous rpm (+voltage at stator). AC back emf (TBC).
There are many more (e.g. hybrids), but I think those represent 95% of the production. I'm sure I've missed a few important ones, please feel free to comment and I'll update the list.
The biggest clue to the type of a motor is the number of wires, but as you can see this is not enough. Some motors cannot generate power without an excitation, some not at all, and even if they do, the back emf is funny sometimes (trapezoidal for example) depending on its construction.
You could plan to try the various types of supplies on the motor, ramping up the voltage, and see if it does anything, but what's your "OK that's not it, better cut the power before I smoke it" point? If you don't know what type of motor it is, I assume you don't know anything about it. Including the voltage and current ratings, Max rpm. You could get that from eyeballing it, but there is no guarantee then.
For your specific problem though, if you are certain your motor is a DC bruhless but you don't know if the inverter+control circuit are integrated, look at the number of wires. Generally the motor does not have a circuit built in, and an ESC must be connected to it. You will have to identify which wires are the hall sensors.
ESC might or might not be used for current generation, it depends on how they are made. I don't think there can be any harm in hooking up a resistive load compatible with its current range at the input and test it.
Yes. One BLDC motor can be used as a generator to drive another.
However, this is only really useful for a quick test or demonstration of a motor. The generating motor only produces voltage while it's being turned. If the generator is turned too slowly, it may not generate enough voltage to overcome the friction or load of the motor. If the motors are of different sizes, use the larger one for the generator.
If you connect the three wires of the motor at random to the generator, then the motor will turn one way or the other. You can switch the direction by swapping any two phases, it doesn't matter which.
Best Answer
Since it is a small motor and you are thinking of using an L293D you could use the chip to brake the motor before reversing it. If you disable the pair of half-bridges that is driving the motor it will free-wheel (coast). If you drive both inputs low (or high) and keep the outputs enabled it will dynamically brake the motor through the H-bridge. This will cause a similar surge to when it starts up. If you either measure RPM (with an encoder or whatever) or wait a sufficient time for the motor to slow to near stop then you can apply reverse voltage without getting the double current startup surge you would otherwise get from 'plugging' the motor. Since the bridge is absorbing the surge from stopping and immediately afterward a surge from starting you should evaluate the capabilities and make sure it will be okay.
You could also use the remaining drivers in that chip to switch a dynamic braking resistor across the motor (which is easier on the H-bridge and the motor), but directly shorting it will stop the motor faster.