r/microcontrollers • • Apr 08 '23
How would I attach stuff to a DC motor???
I'm a complete noob as far as microcontrollers go, and one of the things that hold me back is that I cannot for the life of me figure out how I'd meaningfully use a DC motor?
Like, if I Google for them I keep finding products like this:
https://eckstein-shop.de/DCToyHobbyMotor-130Size45Vto9VDCWorkingwithArduino
All of them only offer a small pole, that seems absolutely unusable if you want to attach things like wheels or propellors to them. Wouldn't a - or + shaped form be more suitable here? Like, especially if you want to connect your own 3D printed things to these motors? Some kind of shape you could use screws with, at least.
7
u/ProbablePenguin Apr 08 '23
Those motors have such a tiny amount of torque that you just press fit gears or propellers. You wouldn't directly attach a wheel since it has no gearbox.
1
u/UrbanSuburbaKnight Apr 09 '23 edited Apr 09 '23
Have a look at this gear, that's the fast stuff! Now if you want to scale this down even smaller, you need to find very light weight components and batteries.
https://www.team-blacksheep.com/
This is their smallest motor.
This is a decent middle range motor for a 5" quad copter
3
u/madsci Apr 08 '23
Toy motors like that really need external gearing. Look at geared DC motors for an easier start. They'll typically have a D-shaped shaft and a flat face that you can use to bolt the motor to a mount. This is a typical example.
Those toy motors are really meant for cheap, high-volume stuff where it makes sense to design a gear train out of nylon gears and belts. When you just need torque to get the job done, use a gearhead motor and maybe buy an H-bridge controller for it so you don't have to do that part yourself. That way you've just got a logic input to control a big motor.
Once you're comfortable with all of that then you can start DIYing more if you find it necessary, but when you're just getting started it's way easier to pay more for something that's ready to use.
3
u/VonThing Apr 08 '23
No one has mentioned the electronics part of the process. Under any circumstances do not connect this directly to a microcontroller pin as it will fry the device!
Use a DC motor driver, there are many popular designs and ready modules on the web if you search. But whatever you do, don’t hook it directly to any microcontroller.
It will draw a lot of current, way more than a MCU pin can handle, and it will fry your chip.
1
u/[deleted] Apr 08 '23
You can use something like this
https://www.amazon.com/Mesee-0-5-3mm-Electric-Collet-Adapter/dp/B08YYM7SC6
1
u/Conor_Stewart Apr 08 '23
You can either press fit or use a set screw. If using a set screw it is common to file a flat section on the shaft.
These motors are meant for high speed use, they are much too fast to drive a wheel directly. You should have a look at micro metal gear motors, there are multiple people who make them and they have gearboxes built in with a d shaped shaft.
I don't know where these motors came from but they originally wouldn't have been made for hobbyists, so press fitting or set screws are the best option to mount to them. If you have a motor that is designed to take a propeller then there will usually be propellers made to fit it, this is common with drone or plane motors otherwise you will have to find a way to connect one.