|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: LMD18201
When connecting the motor controler to a the micro outputs it can be a good idea to put some 10k resistors in line to protect against several failure modes. You'll have to set up the hardware regesters on the robot controler to generate a duty cycle PWM output.
|
|
#2
|
||||
|
||||
|
Re: LMD18201
10k to shut off the motor controller?
|
|
#3
|
||||
|
||||
|
Re: LMD18201
I just noticed something.....If I had the Direction Pin(3) hooked up the the PWM signal, and have the PWM Pin(5) hooked onto logic high, this way I use only PWM for direction and magnitude control. according to the Logic chart, I would be switching from (Source 1, Sink 2) to (Sink1 , Source 2) back and forth. Isn't that bad for the motor controller? I would be switching high currents at high frequencies.... ![]() |
|
#4
|
||||
|
||||
|
Re: LMD18201
The 10k resistors between the micro and the controller is not a problem. The input impedance of the controller is very high, therefore the nominal current through the resistor is negligible, therefore the nominal voltage drop across the resistor is negligible.
Any spikes/transients are essentially isolated by the 10k resistor. The is very much desired in order to protect the micro. High frequencies and high currents are basically relative matters. As for the switching waveforms I think (I'll investigate more) that is essentially correct. Ed |
|
#5
|
||||
|
||||
|
Re: LMD18201
http://www.centralsemi.com/pdf/cclm0035-5750.pdf
Above is the link to the datasheet of a CLD (Current limiting diode) Does the REGULATOR(1) DYNAMIC KNEE LIMITING TEMPERATURE CURRENT represent the output current? what about the input current? or ddoes that matter? Is there no restriction on the Input current? The data sheet doesnt say much about it. |
|
#6
|
|||||
|
|||||
|
Re: LMD18201
OK,
Reading the datasheet, there are two ways to control this device depending on the input PWM signal. If the PWM is direction encoded where a 50% duty cycle represents zero speed then you tie the speed PWM pin to logic high and use the direction PWM for your input. (see the applications section of the data sheet.) The Source 1 & 2 and Sink 1 & 2 refer to the output pairs. Note in the block diagram that the left output pair is labeled Out 1 and the right is labeled Out 2. Now if you look at the truth table, the "Active Output Drivers" refer to which FET in which output is conducting. "Source 1" referes to the upper transistor in the left side of the block diagram and "Sink 2" refers to the lower transistor in the right side of the block. "Source" generally means a connection to the positive power while "sink" refers to a connection to ground. Again in the applications section, the manufacturer refers to Pin 7 and "ground/sense" so that a user may insert a 0.1 ohm resistor at this pin and measure a voltage that is ground referenced and proportional to the current flowing through this resistor. In addition to normal speed control, this device also allows braking but in addition to turning on both "sink" transistors ( a normal way to brake), it allows a state where both "source" transistors can be turned on instead. This would allow some applications that may not be motor control. Since a motor is connected across the two outputs, the motor will turn in one direction when sink 1 and source 2 are turned on. It will reverse direction when the sink 2 and source 1 are turned on and it will brake when either the two source or two sink transistors are turned on. You need to look closely at the PWM data in this sheet to determine whether it meets your ability to generate a readable encoded PWM signal. Please note that even small motors have a very large start current. A motor that is not moving is by definition in stall and will draw stall current when starting. Even the little Johnson motors can draw 20-30 amps when starting, albeit for a very short time. |
|
#7
|
||||
|
||||
|
cool, So far I've designed everything onto the ExpressPCB program. Now comes the issue with current regulation on the LMD18201. I looked into Current Limiting Diodes for current regulation of about 13mA for the LMD18201, but the data sheets on the CLDs don't say what the limit input current is. That worries me because I don't know if thats even relevant. Are there other ways to supply low currents? I can't exceed 15mA because that could cause damage to the Chip.
![]() |
|
#8
|
|||||
|
|||||
|
Re: LMD18201
Quote:
The chip is rated for an output of 3 amps continuous and 6 amps peak. You should only have to fuse/breaker this for 6 amps to protect the circuitry. |
|
#9
|
|||
|
|||
|
Re: LMD18201
There is another chip that is popular for small brushed DC motors, the TI SN754410. Here is an app note that may help.http://kronosrobotics.com/an101/DAN101.shtml
And http://kronosrobotics.com/an101/AAN101.shtml The big mother of integrated motor controlers is the ST MIcro VNH2SP30-E. Here is the data sheet. http://www.st.com/stonline/products/...2/vnh2sp30.pdf This company sells some motor controller board products. http://www.pololu.com/products/elec.html#motocon Might help. |
|
#10
|
|||||
|
|||||
|
Re: LMD18201
Quote:
At high frequencies (over a few hundred Hz - the 18201 is rated up to a few tens of kHz) the motor sees this as an average voltage, thus effecting motor speed control. In other words, if you have full forward 75% of the time, and full reverse 25% of the time, the motor is seeing (75 - 25 =) 50% forward. No harm to the motor or the chip. However, converting R/C PWM to the EE's PWM (which this chip needs), is easy but needs to be done. See Here for one example, or get an NE544N or some other servo amplifier. Don |
|
#11
|
||||
|
||||
|
Re: LMD18201
No way! You mean the PWM signals from our robot controllers cant work directly with the LMD18201 chip? The spec sheet on page 6 right under the Logic Truth Table states the types of PWM signals. I am thinking that our robot controller is the Simple, locked anti-Phase PWM type. As apposed to the Sign/magnitude PWM type.
![]() it says that I can attache the PWM pin to logic High, and put in my PWM signal into the Direction pin. this way I only need a single PWM signal to indicate direction and magnitude. Last edited by Generalx5 : 19-07-2007 at 02:15. Reason: added last line there. |
|
#12
|
||||
|
||||
|
Re: LMD18201
Yes Way !!!
That is basically what I was talking about in my post about classical PWM versus RC PWM. RC PWM is its own wierd beast so you have to convert it. Annoying eh ? Ed Last edited by ebarker : 19-07-2007 at 07:18. |
|
#13
|
|||||
|
|||||
|
Re: LMD18201
General,
As I wrote above you need to examine the specifications for the devices you are using to insure compatability. You might want to check out these sites where there are kits for a PWM convertor and motor controller using the chip we are discussing. http://www.superdroidrobots.com/shop...asp?itemid=603 http://www.superdroidrobots.com/shop...asp?itemid=583 I have not done business with this site but came across it when doing research for this thread. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|