Controlling dc gearmotors with micro programmable components

I am developing small 1/32 scale tractors. They are powered by a standard 9 volt battery and DC 6 volt 200 rpm gear motors. Motor model #AE19658, * ASIN ‏ : ‎ B09N6NXP4H. I need a path to be able turn the motor on and off, control the speed, (vary the voltage), length of time the motor runs in seconds. Preferably the motor would start at a very low speed and ramp up to full speed, run for several seconds then turn off. I'd like to be able to control either by logic programming or variable remote control, (RC). I have 2 areas to place all necessary components. One area is approximately 3 inches by 1 1/2 inches by 1 inch. The other compartment is where either one or two motors can be placed, it is 3 3/4 inches by 3 inches by 1 inch. See pictures.

jd A
motor

TT Motor:

  • Rated Voltage: 3-6V
  • Continuous No-Load Current: 150mA +/- 10%
  • Min. Operating Speed (3V): 90+/- 10% RPM
  • Min. Operating Speed (6V): 200+/- 10% RPM
  • Torque: 0.15Nm ~0.60Nm
  • Stall Torque (6V): 0.8kg.cm
  • Gear Ratio: 1:48
  • Body Dimensions: 70 x 22 x 18mm
  • Wires Length: 200mm 28 AWG
  • Product Weight: 29g / 1.02o

Thank you,
Algo63

Wow, that was quick! Thanks.
I am a beginner and not very familiar with electronics, could you supply a parts list please? I believe I can follow the schematic.
I will research the components on your parts list to figure out how they work together.

What is the question? What's stopping You?

Is it a PP3 fire alarm battery? If it is, change to 4 AA, or AAA. That battery will no deliver the current needed.

Those little motors will do quite OK on a 9V battery, but it's killing the battery, fast.

It'll run about as well on 2xAA or 2xAAA batteries. Much cheaper and they will last longer.

It does add a bit more complication selecting a suitable MOSFET, the ones that switch properly at those low voltages tend to only be available in SOT-23 or similar small packages.

The requirement of ramping up and down implies the use of a microcontroller, an 8 MHz Pro Mini will run great on 2xAA batteries, and smaller options are available of course but not as easy to work with.

I get it. The motor will turn but for a very short time. I wouldn't say PP3 batteries are cheap..... To me it looks like a very limited range using PP3 in any application.

In some model application motor, and/or batteries are placed in a second wagon etc. Then more powerful devices can be used.

So in millimeters that I'm used to
76.2 mm x 38.1 mm x 25.4 mm

95.2 mm x 76.2 mm x 25.4 mm

which is quite some space

What does variable remote-control mean?

best regards Stefan

You are correct on the conversion math.
"Variable remote control" would be using a handheld radio control transmitter, and a receiver would be mounted on the tractor. A tiny servo actuator would be connected to a potentiometer to control on/off and speed.
Also, acceptable would be an on-board programmable logic module, preprogrammed via laptop app or cellphone app. The app would have adjustments for on/off, ramp up time, length of "on" time, and maximum voltage. These motors are rated at 6 volts, but I have run them repeatedly for short lengths of 10-20 seconds without a problem, as long as you give the motors time to cool down.

To give you a good visual of what we are trying to replicate in a small scale, search tractor pulling on YouTube. Especially the Pro Stock and Super Stock classes.

The space you have is enough for a real small microcontroller and a small DC-pwm-module
and a small RC-receiver. The microcontroller can read in the RC-servro-signal and control the motor-speed. You will even be able to limit the motor-current to a safe level.
So there will be no need for a servo

best regards Stefan

1 Like

The batteries do just fine. We use 850Mah rechargeable. They weigh less than the 4 AA and take up far less space. Plus, we use Velcro to mount the batteries in different areas of the tractor, with no need for a battery carrier. Only 1 or 2 simple connectors. We have 18 volts available if needed.
If we need to, could we power the logic with a AAA battery, and the motors could suck on the 9 volt batteries?

That sounds promising! Please forgive me for being ignorant on electronics, I am mechanical, not electrical. I am taking this all in. The terms you are using have only entered my vocabulary in the last day or so. Somewhere in this thread was a 8 MHz Pro Mini controller mentioned, I'm looking for one of them, a DC-pwm-module, and a small RC receiver, correct? Will I need a separate supply battery for the controls, or can we tap into the 9 volt supply? I am not worried about battery life, because we use rechargeable 850Mah batteries, and can get several passes or cycles out of one charge.

You have a good idea there. My first choice is to have everything on the tractor, but if we can't find components that will fit on board the tractor, there is more than enough room on the sled.
88 and sled

motor is 6V * 0.165A =0.99W
SOT-23 is rated 1W.

Do you really want a extra RC remote control? It is possible sure.

There are small microcontrollers with WIFi and bluetooth onboard so you could use a android-app for controlling over WiFi or over bluetooth. Then a RC-receiver is not needed at all.

I have been running these motors at 18 volts, usually 2 motors powered by two 9 volt batteries in series.

I would MUCH rather use an app over bluetooth/wifi.
I thought I was dreaming yesterday, because I was imagining just what you are saying, now it's beginning to sound feasible.

What works for sure is a ESP32-nodeMCU-board
looks like this

But there is even a smaller Board with an ESP32
Seeeduino XIAO ESP32-S3

You have to make sure that it is a S3
not a C3

C3 is a completely and rather new microcontroller which means a lot of code does not yet work

I haven't tested a XIAO ESP32-S3 yet.
But I'm pretty sure that they work the same way as ESP32-nodeMCU

1 Like

For driving the motor you could use this tiny PWM-module

1 Like

Good! That changes things a lot.

You've by now got plenty of good advice. Good luck!

1 Like

Is there educational material available for the " Seeed XIAO ESP32-S3 or ESP32-nodeMCU-boards?" Then I don't have to bother you fellas with novice questions. I did see some kits on amazon, but I am not sure which one would be related to this application.