Shop OBEX P1 Docs P2 Docs Learn Events
Motor control chip options? — Parallax Forums

Motor control chip options?

ElectroHackElectroHack Posts: 13
edited 2008-07-22 00:46 in General Discussion
Hi,

I am a semi knowledgeable, and sort of a dreamer and builder.

I got this idea that I was going to take a Stamps in Class board and build a robot, a simple one, from ground up. For starters I was going to control it with a TV remote. I have plans to get some trackers and gear boxes for mobility.

My basic plan was to let the stamp handle things (like taking commands from me!) and let it communicate with other subsystems, such as motorcontrol, rather then doing the PWM itself.


Motor control is the topic of this question. I have put together 2 TLC555's in such a way that I do PWM with them, and I can control duty cycle thru a digitial Pot and a transistor, the pot communicating with the stamp, serially. I have also built a transistor bridge, which all works.

My question, does the TLC555 solution seem all to inelegant?·Is there a chip that provides a cleaner solution than this?

Thanks

Post Edited (ElectroHack) : 7/11/2008 12:49:10 AM GMT

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-07-10 01:40
    Since this is a learning experience, if it works it's elegant. As you grow more competent you will make your designs better with each learning step. Go forth and experiment!

    p.s. go to the pencil icon on the upper right of your post and add a subject line (your first lesson)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-07-12 15:55
    Actually, the 555 chips are a wonderful way to have an analog input converted to PWM.

    The question remains, do you want analog input do the job or digital. The motor controller final stage is primarily an H-bridge that decides direction by digital binary control. The PWM is often used to control the overall speed of the motor by its duty cycle.

    So, I guess you should be considering H-bridges next. For big electric motors, these are better off build from individual components as the amount of heat involved is more easily dissipated. Big MOSfets are quite popular as they switch the power on and off. This generates less heat than traditional transistors that can be in a half on mode.

    I guess you have the 555 PWM controled by the BasicStamp rather than directly transmiting PWM from the BasicStamp. This isn't bad as the BasicStamp may actually have more free time to do other things. PWM really requires a lot of the processing time in the BasicStamps as the device is running in fast loops. On the other hand, the digital potentiometer can be a set and forget device until you want to change it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PLEASE CONSIDER the following:

    Do you want a quickly operational black box solution or the knowledge included therein?······
    ···················· Tropically,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan

    Post Edited (Kramer) : 7/12/2008 4:05:53 PM GMT
  • Roy El-RayesRoy El-Rayes Posts: 7
    edited 2008-07-14 17:38
    I'm new at this, so I could be wrong, but would a SN754410 motor driver be good in this case? I'm using it now and it seems to work well.
  • Mike GreenMike Green Posts: 23,101
    edited 2008-07-14 17:49
    What's "good" for you? What's "this case"? If it seems to work well for you, what's your concern?
  • Roy El-RayesRoy El-Rayes Posts: 7
    edited 2008-07-14 20:20
    Uh, the OP asked about motor control and I explained how I did it. The OP asked if there's a chip that provides a cleaner solution, so I thought the SN754410 one does and chimed in.

    Is there something wrong with that?
  • ElectroHackElectroHack Posts: 13
    edited 2008-07-20 02:13
    Hi,

    I had been away from this thread for a bit. Thanks all for the input.

    My plan is as follows for building this robot

    I plan on buying one of these tread kits from the Robot Superstore as a base. (Tamiya 70108)·For directional control, I'll also be buying their dual motor kit.

    The electronics I have been working on to support this are as follows

    1 TLC555 running as a free multivibrator

    2 TLC555's triggered by the first TLC555. When the first 555 (pin 3) is low, these are triggered. So TLC#1 has a very high duty cycle (it's high with a very brief low pulse)

    2 Digital Pots control the timing on the dual 555's (the are controlled by my Basic Stamp) So this controls motor speed.

    The 555's feed into two optoisolators (1 per motor)

    2 bridges (which I built with NPN/PNP power transistors actuated by 2 3906's)

    Directional·rotation (for each motor) is handled·by a relay. (NO/NC) Input to the relay·is the PWM from the OptoIsolator.·The N/C side of the relay (each relay) goes to the forward side of each bridge, and the N/O side goes to the reversed side of the bridge.···

    It seems a little "Rube Goldbergish" ; My concern is that all of this stuff is taking up quite a bit of breadboard space, and I'm not sure it's all going to fit cleanly on my platform, so I opened up this question to the forum.

    I'll check out the·SN754410 motor driver and see what it can do for my projects.



    Thanks Again

    Patrick Casey
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2008-07-20 03:02
    Take a look at this

    The TLC393 consists of dual independent micropower voltage comparators designed to

    operate from a single supply.


    http://focus.ti.com/lit/ds/symlink/tlc393-q1.pdf

    The photo is on page 12

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them

    ·
    ·
    ·
    ·
    Sam

    Post Edited (sam_sam_sam) : 7/20/2008 3:14:05 AM GMT
    1392 x 2064 - 178K
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2008-07-20 09:32
    Take a good look at Parallax's Micro Dual Serial Motor Controller from Poulu. Very tiny and does exactly what you want with almost nothing to wire. It is $29.xx USD.

    Regardless of which way you want to go with the control circuitry, the final stage will be an H-bridge. In your situation, you need two - one for each motor. Tamiya is a good choice and Parallax actually uses their tracks on thier own bot.

    Building a lot of outboard circuitry will give your more available processing time for other things on your Basic Stamp. If you used the usual PWM to servo motors, much of your processing time would be tied up in control of the motors as they expect to be constantly updated. Your approach doesn't require that as you can set the digital pots and leave them in their settings until a correction is required.

    Another consideration with all the extra circuitry is how much power is it wasting. Batteries can only do so much and a robot can only manage a limited amount of weight. The BS2 uses very little power in standby mode while the BS2px uses quite a bit more, maybe 35 times as much.

    The tlc393 appears to provide the H-bridge and all the control in one package, but does it lead you back to constant PWM updates? There are other H-bridge ICs that don't. And you can use 2 half H-bridges in a package to make one full H-bridge.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    It's sunny and warm here. It is always sunny and warm here.... (unless a typhoon blows through).

    Tropically, G. Herzog [noparse][[/noparse] 黃鶴 ] in Taiwan

    Post Edited (Kramer) : 7/20/2008 5:33:32 PM GMT
  • ElectroHackElectroHack Posts: 13
    edited 2008-07-22 00:10
    Thanks, I'll check out the Micro Dual Serial Motor controller. I've built a bridge which I've tested out and it works pretty good. I used two transistor sets (TIP42 and TIP31 I think), but to your point, I'll need two of them. Of course if I can get rid of the 3 555's, two digital POTs and the optoIsolators, I may keep these. Just to put my touch on this little creation. I was getting really concerned that all of my "stuff" was going to be hard to fit on the tank platform that I was going to buy. The power issue was a concern too.

    My biggest thing, and sometimes it's a liability, is I like to figure out how things work, so I'll get some idea to do something and I take off to build it. Oftentimes, it's something that's already been built . . . . . but I have learned a lot doing this.

    With this little project, I'll probably control the robot with a TV controller (I bought the Parallax Ocilloscope and manual). Then when I get bored with that, I'll make it RC. Then maybe I'll put a camera on it and do a documentary about turtles or something (grin)
  • ElectroHackElectroHack Posts: 13
    edited 2008-07-22 00:46
    Kramer,

    As I read the documentation, it says that I can control a motor up to 9v. I plan on using the Tamiya double motor gearbox, (motors safe to 8.6V at .5 A) Technically, if I run 6Volts, I could get away with no bridge. The rating that they put on the gearbox say "safe up to 8.6v " . . . don't know if that per motor or total. My guess is per motor.

    I'm on the fence as to whether I would still need a bridge. First thought is if I have two motors running at 8.6 V, I'll need a pretty beefy battery pack. I guess I'll have to play some more.

    Thanx
Sign In or Register to comment.