Go to Post It's too late to turn back - the only way is forward. Together - with a plan. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-07-2007, 17:17
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
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....
  #2   Spotlight this post!  
Unread 15-07-2007, 19:09
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
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
  #3   Spotlight this post!  
Unread 16-07-2007, 02:31
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
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.
  #4   Spotlight this post!  
Unread 16-07-2007, 13:34
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
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.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   Spotlight this post!  
Unread 18-07-2007, 00:25
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
Question Re: LMD18201

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.
  #6   Spotlight this post!  
Unread 18-07-2007, 07:38
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: LMD18201

Quote:
Originally Posted by Generalx5 View Post
I can't exceed 15mA because that could cause damage to the Chip.
?????
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.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 18-07-2007, 08:13
Gdeaver Gdeaver is online now
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,358
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
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.
  #8   Spotlight this post!  
Unread 18-07-2007, 17:46
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: LMD18201

Quote:
Originally Posted by Generalx5 View Post
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....
Nope, no problem at all.

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
__________________

I am N2IRZ - What's your callsign?
  #9   Spotlight this post!  
Unread 19-07-2007, 02:07
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
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.
  #10   Spotlight this post!  
Unread 19-07-2007, 07:16
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
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.
  #11   Spotlight this post!  
Unread 19-07-2007, 07:57
Gdeaver Gdeaver is online now
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,358
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: LMD18201

Thats why a microcontroller is needed. It can time the incoming hobby type PWM pulse and set up the hardware Fixed requency variable duty PWM. The micro also can monitor the status and current draw. Also, the micro could get it's commands by a SPI, I2c or async serial port. Take it one step further and add a PID control to the speed controller. The micro could also red sensors for velocity ( encoder or gear tooth sensor), a POT or non-contact absolute position sensor. To design an inteligent motor controler gets a little complicated.
  #12   Spotlight this post!  
Unread 19-07-2007, 08:02
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
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.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #13   Spotlight this post!  
Unread 19-07-2007, 18:56
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
Re: LMD18201

I tested the PWM outputs on the robot controler... I have the MINI RC with me, with 8 PWM outs each programmed from 0 - 255. Then I brought out my RC servos, 3 wires and plugged it into the Mini RC PWM outs. They responded accordingly, setting the servo arms at various locations. Since servos use RC PWMs to determine positions, wouldnt the PWM on the robot controller work as well?

On the data sheet, it says that a 50% duty cycle is zero or neutral, that would be 1.5ms pulse. I do believe our Robot controllers work within the 1 - 2ms pulse width correct?

This page contains a nice picture showing the RC PWM and the regular PWM (right side of method 3), could someone tell me which PWM type is in our robot controllers? The blue one or the red one?

http://www.superdroidrobots.com/product_info/RC.htm

Last edited by Generalx5 : 20-07-2007 at 04:45. Reason: last line there.
  #14   Spotlight this post!  
Unread 20-07-2007, 16:36
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: LMD18201

Get a pencil and paper and draw these waveforms:

Standard PWM waveforms, for simplicities sake, set the period to 1 ms
a) a 50% duty cycle square wave - this is the 'neutral' position, it is called square because it looks square
b) 90% on/ 10% off wave,
c) 10% on/ 90% off wave,


RC PWM waveforms.
If I remember right, the pulses can come as infrequently as 20 ms.
The width of the pulse varies between 1 to 2 ms, 1.5 ms being neutral.

So if you draw a nominal neutral RC PWM wave form, it could (but doesn't have to look exactly like this) look like a repeating waveform that is 1.5 ms on, 18.5 ms off. ( I may have my on/off logic sense inverted here so just flip it over)

That is WAY different than the neutral 50% square wave in (a) above.


Ed

PS - I just went and looked at the links for the waveform. If you read the paragraph above the waveforms it talks about the 20 ms. THe graph doesn't have the interpulse interval marked out. THe graph is a little misleading because it looks square'ish, but I can assure you that it isn't. Ask around and see if you can find someone with an oscilloscope and see if you can get them to help you 'see' these signals. Seeing is believing.



famous saying in engineering is "all you gotta do is......" then you run into reality.

Last edited by ebarker : 20-07-2007 at 16:40.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi