Serial controlled variable speed motor

In summary: Serial data can be used to control the speed of a 12v dc motor using a 100k potentiometer. However, someone suggested using diodes to solve the problem of back EMF spikes. So with all this information considered, my question is now this: What modifications need to be made to the circuit in diagram (b) to make it safe to use so as to avoid any nasty back EMF and other potential harm to my computer when using serial data to control the MOSFET?
  • #1
mooseboi
6
0
Hello all, I am trying to create a circuit that allows me to use serial data to control the speed of a 12v dc motor I removed from an electric drill. So far I have successfully made the circuit in diagram (a) using a 100k pot to alter the speed. So the next problem to solve is how I can instead use serial data as the controller.

Diagram (a)
speed controller circuit with pot.jpg


Diagram (b)
mosfet circuit.jpg


Now, the creator of the circuit depicted in diagram (b) stated "I suppose with really beefy motors and really beefy motor power supplies, there might be some danger of getting the backEMF spikes onto the motherboard, causing problems, so ... don't do that." However, someone suggested using diodes to solve this problem of backEMF to protect the computer from spikes. So with all this information considered, my question is now this: What modifications need to be made to the circuit in diagram (b) to make it safe to use so to avoid any nasty backEMF and other potential harm to my computer when using serial data to control the MOSFET?

Many thanks,
Sam.
 
Last edited:
Engineering news on Phys.org
  • #2
You're not concerned about the low efficiency of the "series resistor" type of speed control? You could get considerably better efficiency were the MOSFET to be used as an on/off switch in a variable pulse-width switching controller. How many amps will the motor draw at full load?

You'll never want the controller to reverse the motor? If not, then a diode across the MOSFET and another across the motor terminals will catch inductive spikes and protect your MOSFET; the diodes oriented so as to be reverse-biased by the motor's power supply.

What exactly are you wanting your repurposed drill motor to do?
 
  • #4
The proper solution is a uP receiving RS-232 commands and then sending PWM to a motor controller like the TB6612

This board is a proper example:
http://www.robotshop.com/en/pololu-qik-dual-serial-motor-controller.html

Here is a board you can connect to an arduino:
https://www.sparkfun.com/products/9457

What you have proposed is essentially creating PWM (ON-OFF-ON-OFF) signals via the TX pin of the serial port. There are two ways to do that (from a control perspective). Send serial data patterns to produce the PWM ratios you desire (pulse density modulation), or use the firmware to manually toggle the Tx signal.

IN either case, the control will be unreliable to the extent that the firmware might be usurped for another task. Also, the degree of speed control is limited.

But, what you have shown can cause the motor to turn on and turn off at some rate. It does need a protection diode.
 
  • #5
Does it have to be RS232? The speed controllers used in model cars/planes use a simple pulse width scheme. Typically they need a 1-2mS long pulse repeated every 20mS. The duration of the pulse sets the speed so 1mS might be OFF and 2mS = Max speed.
 

Related to Serial controlled variable speed motor

1. What is a serial controlled variable speed motor?

A serial controlled variable speed motor is a type of motor that can be controlled and adjusted for speed through a serial communication protocol, such as RS-485 or Modbus. This allows for precise control of the motor's speed and direction.

2. How does a serial controlled variable speed motor work?

A serial controlled variable speed motor works by receiving commands through a serial communication protocol from a controller or computer. These commands specify the desired speed and direction, and the motor's internal control system adjusts the power supplied to the motor to achieve the specified speed.

3. What are the advantages of using a serial controlled variable speed motor?

There are several advantages to using a serial controlled variable speed motor. These include precise speed control, remote operation, and the ability to integrate with other systems and devices. Additionally, these motors are often more energy-efficient and have a longer lifespan compared to traditional motors.

4. What are some common applications for a serial controlled variable speed motor?

A serial controlled variable speed motor can be used in a variety of applications, including industrial automation, robotics, HVAC systems, and medical equipment. They are also commonly used in transportation, such as in electric vehicles and trains.

5. Are there any limitations to using a serial controlled variable speed motor?

While there are many benefits to using a serial controlled variable speed motor, there are also some limitations to consider. These may include higher initial costs, the need for a controller or computer to operate the motor, and potential compatibility issues with different communication protocols. It is important to carefully consider these factors when deciding if a serial controlled variable speed motor is the best option for a particular application.

Similar threads

Replies
17
Views
804
Replies
30
Views
1K
  • Electrical Engineering
Replies
11
Views
990
  • Electrical Engineering
Replies
26
Views
4K
Replies
18
Views
2K
  • Electrical Engineering
Replies
1
Views
2K
  • Electrical Engineering
Replies
14
Views
3K
Replies
3
Views
1K
  • Electrical Engineering
Replies
4
Views
2K
  • Electrical Engineering
Replies
6
Views
2K
Back
Top