I want to control the speed of a little motor with the AXO !
Do i have to buy a driver ic?
How to drive a DC Motor
Axoloti can't handle the currents required for a motor. The most simple way would be to use a servo motor and apply a continuous rotation modification to it (google it, you will find plenty of information about this). Then you don't even need a driver IC. Alternatively, if you need a larger motor, you will need a motor driver chip. There are plenty of options from the arduino world - most of which will work with axoloti. If in doubt, post here.
Either way, you can use a gpio/out/pwm t*
objects to send out a signal that you can feed into your modified servo motor or your motor driver.
actually
i scavanged a motor rotator,
from a vibrator,
so wich driver ic,
would you recommend for me?
Actually you could drive a motor more directly, if you use the PWM signal to drive a transistor that is connected to a more direct power source, preferably on the same rail as the Axo power, then you should have no issues driving a motor. If you search the internet you will find some examples of what I am referring too, if you want the motor to turn in both directions, you will then want to research up about a H-Bridge, both options are easy to solder up. But no do not connect directly to the Axo.
yeah nice , but witch transistor ?
actually i only want to turn to one direction.
Speed and thrust , should be the parameters.
well speed is enough first...lol
I found this online.
something like this should get the job done. I think however the resulting signal will be inverted, which should be an easy fix with an inverting object in your patch.
<img src="/uploads/default/original/2X/0/08966c2ca21ef5cc185f3a0cdf319607fb467993.JPG" width="513" height="371">
"microcontroller" will be the Axo GPIO PWM out signal @ 3.3v.
vOUT goes to the motor.
If you don't have a 2N2222 just do a search for an equivalent. There should be many to choose from.
The PWM cycle will control both speed and thrust.
Not sure how big your motor is, the circuit may be overkill, but should work. I expect you should not have much issue with a slightly larger motor.
PWM output for cassette player motor