Shop OBEX P1 Docs P2 Docs Learn Events
Power Fluxuations — Parallax Forums

Power Fluxuations

morris4019morris4019 Posts: 145
edited 2009-07-09 02:37 in Robotics
Hi there,

···· So, below is the schematics that i've drawn up and used to build my MTE1 (Mobile Tracked Explorer). I have prototyped·everything and have yet to have any problems but one. I am seeing a little bit of power fluxuations. Here is what is happening. I plug the battery in and the bot waits 3 seconds and then goes forward, backward, 360 left and 360 right then stops. The first time through you notice by the end that the movement is visibly slower. The next time through the movement is even slower, and so on, until it can barely turn in circles. But when you unplug the battery for a few seconds it starts all over with a strong movement down to slow movement.

Any ideas? I've been scratching my head about this one for awhile. Also, of course i have already ordered my PCBs and cannot cancel the order, so hopefully the design isn't too back, or i can jump anything i need to fix.

[noparse]:)[/noparse]

Thanks
-Mike

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======

······ I'll try everything once [noparse]:)[/noparse]
962 x 591 - 26K
699 x 440 - 18K
606 x 262 - 9K
547 x 606 - 29K

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2009-06-30 02:54
    It looks as though the power for the motors is coming from the 5V regular. is this correct? I wouldn't recommend that unless they are very small motors and you wouldn't need a l298. A l298 can support upto 4A a 7805 can't handle that and will shutdown.
    Another comment l298 has a logic supply of 4.5 to 7 volts. It isn't spec for a logic supply of 3.3V, you may have relibility problems with that. The way you have numbered the l298 pins is confusing since it doesn't match the datasheets numbering.

    Post Edited (Timmoore) : 6/30/2009 3:03:45 AM GMT
  • morris4019morris4019 Posts: 145
    edited 2009-06-30 03:52
    Oh, sorry about the numbering of the l298. I had actually just used a 7pin and an 8 pin connector put together to get my connection for routing the PCB instead of creating a whole new component. I guess i should have created the component. I have used the l298 with no problems before, but for some reason, like you said, when connected to the 5v regulator i am not getting enough power. On my breadboard, i have put, instead of 5v, the entire 9v power source, straight from the battery (6 AA batteries) to the l298, and had great results, except for the fact that i would have random restarts of the propeller chip. It would go forward for 3 seconds, like it is suppose to, then stop (when it should have reversed), and restart and go forward all over again.

    I'm kind of bummed about the PCBs that i've ordered, for some reason when i prototyped this all on the breadboards, i never had a problem, that is why i ordered them. I'm going to see if i can talk them in to canceling my order. Cross your fingers.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • kwinnkwinn Posts: 8,697
    edited 2009-06-30 05:42
    I am so tempted to suggest using a flux capacitor to fix those darn power fluxuations. But I will resist.
  • morris4019morris4019 Posts: 145
    edited 2009-06-30 05:44
    The reason i chose the L298 was the simple fact that it was a full bridge. I needed exactly two motors, and i needed the capability of forward and reverse in a relatively small space. This is what i am working with, and have worked this design in a few projects without this trouble at all. A couple questions, the sense resistors on pins 1 and 15 of the L298, I have them connected directly to ground, because any resistor put in line here causes no movement to the motors. In the datasheet it lists the Vsense as 1 - 2 (or about) and measurements are in volts. It also talks about the sense resistor put in place to control current load. Why are they measuring in volts when talking about resistance? Also, if i was to run the l298 straight from the battery (9v) can't i limit the current being drawn from the l298 so that the voltage spike will not reset the prop?

    If anyone has any comments or suggestions i could use them fast. I believe i might be able to put my order, from batch PCB on hold only, MAYBE. But i will need to get updated gerbers to them.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-06-30 07:19
    So for now, until i can procure maybe a L293D (Would this be better suited for my application, my motors GM9 are rates 143:1, 3v unloaded 50mA, 6v unloaded 52mA?) I found that if i put in about an 1/8th of a second delay after switching enable pins to negative i get no restarts. So when changing direction I first pull enable pins all low, wait my 1/8th of second, change directions, then pull up enable pins to activate motors. Also, i've switch out the 5v regulator, for the L298 anyway (it is still needed for my object detection), and am using full battery power (9v). This seems to work, i even tore off some rubbber, that i had glued on the treads for traction. Even if i can't get my gerbers changed from batch PCB i believe i can solder on a few jump wires to correct my problem for the time being. I will wait until i get ahold of a few L293s or other motor drivers before i create a new PCB.

    Does anyone have any suggestions on motor drivers, preferably a dual full bridge like the 293 and 298?

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • TimmooreTimmoore Posts: 1,031
    edited 2009-06-30 16:39
    I have used the GM9 motor with L293D without problem. The motor noise is very bad though. I am running it from a 7.2V nimh battery (like http://www.lynxmotion.com/Product.aspx?productID=67&CategoryID=48) which is also connected to the prop proto. Read http://www.teamdelta.com/pdf/tde_an1.pdf for stuff to help motor noise. I tried a lower powered battery and had resets. You need a fairly powerful battery that can provide high current. Once I got the battery and noise sorted I have had no problem with the l293d and gm9 combination, the motors are run directly off the 7.2V battery.
    I haven't used l298 yet, but I am most of the way through building a robot with 2 l298 but it has bigger motors and uses a 12V battery, should have the basics going this weekend.
  • morris4019morris4019 Posts: 145
    edited 2009-06-30 17:13
    Cool, let me know how it works. It is just odd, because i have used this L298 with no problems, but now, after a redesign, i am having problems. Either way, it is now running, like you said, right off battery power at 9v with no resets. I just have to have some sort of pause between switching directions.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • TimmooreTimmoore Posts: 1,031
    edited 2009-06-30 18:18
    I dont have any pauses between switching directions. I do set the motor to coast when changing directions but without any delays.
    This is the code I use, you can see the check for direction change and set pwm to 0. Then change the direction pins and then set the new pwm value.

      repeat m from 0 to NumMotors-1
        if Motor & (|< m)                                   'for each motor command is for
          if (CurrentDirection[noparse][[/noparse]m] ^ (Speed & $8000)) OR (Braking[noparse][[/noparse]m] <> false)
            Braking[noparse][[/noparse]m] := false
            pwm.duty(PwmPin + PwmOffset[noparse][[/noparse]m], 0)              'set motor to coast if changing direction or was braked
          if (((Speed > 0) & |<m) ^ (Reverse & |<m))        'Calculate In Pins for correct direction
            SetIn(m, false, true)
          else
            SetIn(m, true, false)
          pwm.duty(PwmPin + PwmOffset[noparse][[/noparse]m], (||Speed)<#MAX_SPEED) 'set pwm duty cycle
          CurrentDirection[noparse][[/noparse]m] := Speed & $8000              'Save new direction
    
    



    Its probably a side effect of motor noise, if you can reduce the motor noise more, you can probably remove the delays - the delays are spreading the time of the major current switching.
    One other note - if you have servos as well, make sure your servo cables run well clear of the motor cables, the cross interference can be bad. You can get a lot of servo jitter.
  • morris4019morris4019 Posts: 145
    edited 2009-06-30 21:25
    I am not running any servos, but i am working right now on the tips from the teamdelta.com pdf you suggested. I've twisted the wires already and i am soldering on .1uf caps as shown in the figures. Also, and i hope i'm not getting these problems because of this, but as i am waiting for my PCBs (which i talked with them and they let me update the gerbers so to fix the problem and take out the 5v regulator and run completely off battery power for the motors), i am doing all of this on a breadboard attached to the top of the bot. I have not finished programming the movement yet, but have tested a variation of PHilsPWM object from the obex with my L298 and it works. For now, getting the mechanical portion working (the tracks on the motors) i am testing them without using PWM, i am just sending full power to the L298.

    After i know for sure my setup is working properly i would be finishing my program and implementing my PWM.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-03 02:48
    So today i upgraded my power source to 12v. Also, i have added 2 capacitors to each motor (one each to pos/neg and then together to the case), wrapped the motor wires together. My prop is abviously running off 3.3v. My object detection is running on 5v and the L298 and motors are wired up straight to the batt, around 11.5v. I am still seeing power fluxuations and still getting random restarts of the program.

    Anyone have any other ideas besides getting another motor driver. I have had no luck getting samples of the L293D, although i can get L298N/HN all day long. If anyone knows of an easier to find driver that would be nice to. It really is going to irritate me if i have to pay $12 shipping for a $1-2 part. I have taken apart and rebuilt this circuit many times now, but the funny thing is that I have used this exact setup before without any of these problems. I have never had random restarts like this and absolutely never had power fluxuations (visible changes to motor speed).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-03 17:01
    So, I'm very sorry to bring all this up again, but i am trying to better understand my problem so that it won't happen in the future. I'm been looking over the specs of my motor, and here they are:

    MOTOR INFO:

    MOTOR: GM9 (Gear Motor 9 @ solorbotics.com)
    RATIO : 143:1
    UNLOADED CURRENT (3v): 50mA
    UNLOADED CURRENT (6V): 52mA
    STALL CURRENT (3V) : 400mA
    STALL CURRENT (6V) : 700mA

    MY BOT INFO:

    3.3v Regulator (UA78M33C I beleive): Running to PROP, L298 Logic v, 3 indicator LEDs (5mm), EEPROM, 2 IR Emitters
    5v Regulator (7805): Running to IR Detectors
    (TRIED)2nd 5v Regulator (7805): Running only to L298 output v, and positive side of motor/diode setup. (I've treid running this second 5v regulator to make sure all current
    from this regulator went to motors).
    (TRIED)Instead of the 2nd 5v Regulator, running straight battery connection through a capacitor/forward biased diode to L298 output v and motor/diode setup. Both options
    yielded the same result, frequent brownouts.
    BATTERY: 12v (6x AAA batteries)



    First let me see if i understand everything correctly. Firstly, i have built a small stand, which allows me to run the bot without it moving around. The tracks are up off the table so i can test all functions. I realize that there is no load on the motors because it is sitting above ground. This would be the unloaded current i would assume. At this point i think the current through motors should be 5v (or battery v) @ 50-54mA. Now because i am now running straight off the battery voltage, about 12v Iam assuming the motor currents would go up by about another 400-600mA for stall current, is this correct?

    The L298 should put out a max of 2A per channel, but, it is my understanding that unless the motors would have to actually try pulling that much current right? So in my mind, the motors, running on around 11v (because of the v-drop after the forward biased diode) should be only drawing right over 1 amp per motor, which the L298 should be able to handle, and, since the connection is straight from the battery (not the regulator rated at 1.5A) should be able to handle as well right? Now lets say i was still running off the regulator, the motors @5v would be running about 600mA x 2 motors = 1.2A max, which should also be ok because the regulator is rated to 1.5A, right? This is where i run in to trouble, because theoretically it should work without a problem, and it has in the past. But now, after having to pull everything apart when reconstructing the chassis, i'm having the brownout problem.

    To help me, i have taken EVERYONES suggestions and ordered a few items. I have more 5v, 6v, 8v, 12v, and 15v regulators comming. I believe on this next redesign i will be using 2x 9v Battery packs = 18v regulated to whatever i will be using. Also, i have ordered 3 L293D's, which, i'm a little confused about, because looking at the datasheet it looks like max they will run 600mA per channel, which I will be running right on the verge of overheat and powerdown with my motors, but everyone seems to suggest them.

    Now to more questions, when i do my redesign (once i get all my parts in), running 18v, or 2 9v packs. Should i indeed run 18v? or should i run 2 seperate power blocks, one for logic (prop, logic side of L298/L293D) and one for motors? Being that my motors are geared down to 143:1, they run pretty slow, with limited climing power at 5v, I would at least like to run them at 8v. Now the 8v regulator suggests running voltage of +2, meaning i would need at least a 10.5v power supply for regulating my 8v, that was why i thought of using my 18v, plus the extra mAh.

    Well that was a mouthfull, i'm sure i have more questions, but hopefully soemone will answer some of these, or at least let me know if i'm understanding everything correctly.

    -Michael Morris

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • kwinnkwinn Posts: 8,697
    edited 2009-07-03 19:23
    The stall current of a motor is basically determined by the resistance of the motor windings and the wire and connections between the power source and the motor. If the voltage applied is 6V and the current is 700mA then that resistance is 6/0.7 = 8.57 ohms. At 12V the current would be 12/8.57 = 1.4A. Keep in mind that the manufacturers spec is obtained by measuring the voltage on the motor terminals not at the power source.

    Also, keep in mind that batteries and other power sources also have their own internal resistance. For the AAA batteries you are using that resistance is fairly high. They were intended for use in low current devices that are on for long periods of time like TV remote controls. You would be better of using AA or C cells designed for battery operated tools.

    The driver IC's need to be matched to the peak and continuous currents your motors will draw at the voltage your batteries provide. If you provide 12V batteries and the motor stall current is 1.4A then the IC needs to be able to handle that current.

    The battery voltage you use should be matched to the voltage you need to drive the motors. If the motors are rated for 12V then a 12V battery would be a good choice. The battery also has to be able to supply the current to drive the motors for a reasonable length of time. If your 2 motors need 2A each to move the robot, and you want the robot to be able to run for an hour on a charge you would need at least a 4AH battery. That is a battery that will put out 4Amps for 1 hour before needing to be recharged.

    You can use batteries with a higher voltage than the motors are rated for but you need control circuitry such as PWM to limit the current and power dissipation to levels that will not damage the motors and driver circuits.
  • kwinnkwinn Posts: 8,697
    edited 2009-07-03 20:47
    Morris, I have attached a block diagram of a basic power supply for applications that drive motors. The actual values of the components will vary depending on the input voltage and currents. For higher voltage inputs (12V and up) the +5V regulator is normally a switcher. If D2 is in the circuit it is usually a low forward voltage type, and the 3.3V regulator is an LDO (low drop out) type.

    I have built several systems using variations of this and they work very reliably.
  • morris4019morris4019 Posts: 145
    edited 2009-07-03 22:08
    Thank you kwinn, that makes a little more sense. And i can see from the schematic that you provided that I may have overlooked some things. Firstly, a question on the transformer. Am i right in thinking this when converting from AC to DC?

    I have been playing around with different setups, now, and when i added another 9v to the mix (17-18v) it seems to have enough power not to brown out. But i quickly realized that the AAA batteries will not suffice. I will be finding alternate solutions to the battery, but first, let me say that running the motors i have on straight 17v is a little fast, and may be damaging the motors i think. Like i said above i have some different regulators and a few L293s on the way. While testing, the motors have enough torque and speed to suffice what i want at about 8-9v. So, the 8v regulator or the 12v that is on the way will do for the motors, but i beleive i will have to use a seperate regulator for each motor correct? The regulator is still only rated to about 1.5A, which would be just over the current for one motor. I think that is my main problem, the regulation of power through the driver to the motors. The L298 and the L293 are pretty alike, except for current of course. The problem i see is that there is one power source for both channels. If i run 2 regulators (8v/12v @ 1.5A each) and run both outputs to the L298/L293 does the current add upon itself? Meaning I know that running with 8 or 12v I will need current for both motors, but they will cause one regulator to shut down, so can i run 2 of them to the L298/L293? That is the reason i keep getting confused when people tell me to use a different motor driver, the L298 specs say 2A per channel, whereas the L293 is saying 600mA per channel, which @ 8-12v would already be surpassed.

    Also, when i bumped up the voltage to the 18v there were no resets or brownouts until i visibly saw that the batteries were getting weak.

    -Michael Morris

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • kwinnkwinn Posts: 8,697
    edited 2009-07-03 23:23
    Referring to the block diagram I sent, the transformer is for when I want the power supply to run off 120 volts AC, such as the power supply on my workbench. The secondary winding will provide a suitable output (12V AC for my bench supply) which the bridge rectifier then converts to pulsating DC as input for the capacitors and regulators.

    If you need power for a robot or other portable device you substitute batteries for the transformer and bridge rectifier, which provides a smooth DC as input for the capacitors and regulators.

    In both cases the rest of the circuit is the same.

    In your case I would power the motors directly off a 9 or 12 volt battery pack. No regulators are required. That is what the L298 is for. It can be pulse width modulated to regulate the motor speed.

    In your application NiCad or NiMH AA cells may be the best choice. They are relatively inexpensive, easily obtained, and store a reasonable amount of energy ( 2 to 3 AH ). You would need 8 for 9.6V and 10 for 12V. The other option is a power tool battery of some type.

    With a battery pack instead of a transformer/rectifier you do not need C1 but it is a good idea to include it to reduce noise from the motor. C2 should be at least 1000uF. If you have a 12V battery pack C2 should have about 11.3V on it and the voltage can drop quite a bit before it affects the 5V regulator. A switching regulator is the best choice for the 5V regulator.

    D2 and C5 are not needed unless you are running servos or similar devices from the 5V supply. The 3.3V regulator can be a linear since it is only dropping 1.7V at relatively low current.
  • TimmooreTimmoore Posts: 1,031
    edited 2009-07-04 00:45
    I have 2x L298 partly working and some comments
    I am running off a 12V NiMH battery, the same as I use in another robot. The motors I am using I also use in the same other robot. I also use the prop protoboard in both robots. The differences are
    1. Motor controller 2x L298, MC33887
    2. 4 motors/2 motors - these motors are larger than the ones you are using 700ma non-load and 3.5A stall.
    3. Larger robot (16"x16")(l298,4 motors) / smaller robot (8"x4")

    The smaller robot using the MC33887 doesn't have reboot issues. The pwm control is very smooth, from pwm ratio to motor speed.
    The larger robot using 2x L298 I am seeing reboot issues, also the pwm control is very non-linear, the pwm ratio to motor speed has a large gap at the lower end where the motors dont run. The battery goes to the 2x l298 directly and in parallel to the prop proto power in.
    This was with a partly discharged battery, so I am recharging it and trying again.
    There is 1 easy fix for this problem - use 2 batteries, 1 for the motors and 1 for the electronics.
  • morris4019morris4019 Posts: 145
    edited 2009-07-04 01:04
    Well heres a nifty trick for making light up motors.... Accidentally run one motor on 15v! ;0

    Now i am rebuilding my one motor that now lights up when run (its also running visibly alot slower now). I soldered up a quick 15v battery using 3, 700mah rechargable 4.8v battery packs from handheld radios, intending to run my bot off of this, but forgot that one motor was disconnected.

    TIMMOORE, mine is having the same problems that you seem to be having with your small robot i think. After all these problems i'm having i'm going to try just using 2 batteries like your saying. I am kind of leery about using the L293 because of the current that my motors will run will be a little over what the L293 can put out each channel. That is why i went with the L298, i thought i was doing the right thing by going with what could put out the current i required, but now i'm having all these issues. If 2 batteries is what it's going to take then i'll do it. I just hate to put extra weight in this thing, and trying to find room for an extra few battery packs is gonna be tought too. I can't run these motors on 5v because it has no speed or torque to clime over things in its path. I've found that about 8v or 10v is gonna be good. I think i'll use the 8 or 10v regulator like i said and use this 15v battery that i made to just motors.

    Now using a second battery just for the motors includes the L298 correct. I will need to put the posotive battery to the motor/diode setup along with the Motor Output Voltage pin on the L298/L293 right?

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • TimmooreTimmoore Posts: 1,031
    edited 2009-07-04 01:17
    You connect l298 gnd to both battery -ve, the motor battery is connected to l298 Vs (pin 4) and to the +ve side of the diodes, the l298 Vss (pin 9) is 5V.
    Look at figure 6 the bidirectional dc motor control in the l298 data sheet.
  • morris4019morris4019 Posts: 145
    edited 2009-07-04 01:31
    Ya i know that part, i've just never used the 298 with 2 different power sources, just wanted to make sure that i include the Vs pin as well. Am i right in saying that basically forward direction (or DirA) gets fed by +pos from L298, and reverse (DirB) gets fed through the diode setup, correct?

    Oh, and BTW, I must have damaged some windings in the motor because it sparks and carries on, but the brushes are perfect, a little scorched but i wiped that off and put some more of the grease on them. I'm going to contact Solarbotics because i'm sure that is not suppose to happen and get some more motors. I even tried to get it to happen to another spare motor (same gm9 standard motor, without gear reduction) and i can't get it to spark and act like that one.

    -Michael Morris

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-04 23:08
    Is there a way to use 2 regulators, say 2 8v (1.5A) regulators to alllow 3 amps to be available for the motors? Can i hooke both regulator outputs to the same pin to allow for 3A of current?

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-05 00:37
    So I've drawn up a quick circuit that should address what everyone was talking about and their suggestions. I've used a seperate battery for the motors, going to its own 5v regulator, then to the L298 and motors. But, if i ever want to run higher than 5v, the motors will need more current than the regulators can put out. What is the solution then?

    Most of the regulators are spec'd at like 1A to 1.5A

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
    1193 x 612 - 102K
  • John AbshierJohn Abshier Posts: 1,116
    edited 2009-07-05 02:27
    I don't run the motors on regulated power. I pick a battery to match the needs of the motor. Ususally NiMH. Four AA would give 2+ amphours at near 5 volts. I don't know if Bean (Hitt Consulting) on the forum has any more of the 5 battery holders. I often use 7.2 volt RC car batteries. On most of my robots I use separate batteries for the electronics and motors.

    John Abshier
  • morris4019morris4019 Posts: 145
    edited 2009-07-05 18:47
    OK, i've done a little research, and instead of trying to cut corners, i'm going to get exactly what is needed and make some quality battery packs. I've been price searching around and found very good batteries on radio shack, alot of AA 1.2v over 2000mAh each, but i you are definately paying for them because they run $6-7 each. I did find a website called zbattery.com that sells a 1.2v AA 1000mAh, /w solder tabs, for 1.59 each, which is very doable. I ran the numbers for 2 battery packs, that i will make the same because then it will be easier for recharging, this is what i came up with.

    My motors @ 5v will need 1.2aH roughly, and @ 8v will need roughly 2AH. I will buy enough batteries to first make 5v packs test them on the motors then if i need solder on a few more for 8v packs. Also, i will make a seperate battery pack, either 5v or 8v, for the electronics that will run the prop, object detections, etc. All the batteries required for both packs will still be under $30 + shipping, very very doable. Does this sound like the right way to go.

    Also, i do have to have some way of charging these packs back up. Does anyone have a reliable circuit for charging batteries through 110vac of the wall? I've never built a battery charger except for a small <9v charger using another 9v battery, which actually worked great.

    Again thank you everyone for all of your help and support, and sorry it takes me a little bit to understand the simple concepts that you are all relaying to me.

    -Michael Morris

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • TimmooreTimmoore Posts: 1,031
    edited 2009-07-06 02:10
    I got my l298 robot going. Its running off 1 12V Nimh battery, the 2x l298 and 4x motors run directly of the 12V, the prop is through a 5V regulator. With a fully charged battery I haven't had any power problems, with a very low battery I had problems. The motor specs say 700ma normal current but at least via the l298 rsense I am seeing 300-400ma per motor being normal. The 5V regulator runs warm but there is little current used so its not too warm.
  • morris4019morris4019 Posts: 145
    edited 2009-07-08 18:32
    So i ordered some batteries off of zbattery.com, "AA" at 1000mah each. But now that i'm looking at my robot, space it definately an issue. so i was testing some of motors again to see their resistance. I, for giggles, wired up a small motor that measured about 2.7ohm to 1 standard non-rechargable AA battery and i get great speed and torque.

    1.5v / 2.7 ohm = 555ma (which is about the same as the motor that came with my gearboxes running at 5v)

    being that space is an issue, would it be better for me to find small motors that are measuring about 2.5-3ohm so that i would use less batteries?

    The rechargable batteries that i got have solder tabs (for making a battery pack) and are 1.2v @1000mah. 2 of them would be 2.4v

    2.4 / 2.7ohm - 888mah
    ···················x···2 motors
    ················
    ··················· 1.777777mah (batteries max out at 2000mah/2A) PERFECT right?
    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]

    Post Edited (morris4019) : 7/8/2009 6:40:09 PM GMT
  • TimmooreTimmoore Posts: 1,031
    edited 2009-07-08 19:43
    Be careful, capacity says how long you can discharge at a rate not the discharge rate the battery can handle. What you will see is C used for capacity, discharge rate is often talked about in multiples of C, so in your example oyu have a battery with C=2000mah, the discharge rate is also C but you can have a discharge rate of .2C for example or 10C. The capacity doesn't say what discharge rates the battey can support only how long it would nominaly last, and that can change if you go over the rated discharged rate. See for an example of the issues http://www.powerstream.com/4_3.htm
    The manufactures should have the discharge rate curves as well.
  • morris4019morris4019 Posts: 145
    edited 2009-07-08 21:59
    Ok, i'm gonna check it out and see what i can find out about these batteries that i got. My main problem, as i said is space. It seems that i should run 2 battery packs, one for the motors & driver, and one for the prop and other electronics. I actually just got home and I recieved my L293D's via ups just a few minutes ago so that will free up a little space not having to use 8 diodes. But, 2 battery packs at 7x"AA"s is about 3/4 the actual size of the robot now, so i'm not sure where i can put these packs that get made. That is why i was toying around with using the lower resistance motors with only 2.4v (2 of the "AA" batteries, which i calculated to run for about an hour), but now that you bring this up, i guess it's back to the drawing board once again.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-08 22:05
    You know i'm looking at the "specs" section on my batteries, and i see what your talking about, but i can't make much sense on if it is actually giving me a discharge curve or anything. Here is the link:

    http://www.zbattery.com/NiCad-AA-1000mAh-Rechargeable-Battery-with-Solder-Tabs;jsessionid=0a01054f1f431dc48bf3bf214bc9b592e6984c111e5e.e3eTaxiNaN0Te34Pa38Ta38Ochn0

    I bought 14 of these, figuring i would at most make 2 packs of 7 or so.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
  • morris4019morris4019 Posts: 145
    edited 2009-07-09 02:37
    So here is what i've come up with. At the moment, i don't see any problem using 5x 1.2v "AA" (rated at 1000mah ea) = 6v @ 6Ah. For my motor driver, i could theoretically use either the L298 or the L293D (although i would be right at the maximum 600ma that it says NON - Repetative) The rest of my electronics use very little current, all at 3.3v and 5v. My motors are pulling a little under 600mah which means a total (for both motors) of 1.2Ah, which is a fifth of the capacity, which i would very much hope, according to what i've been reading, should be a perfectly fine discharge rate for 5v. Meaning, i would use regulated current from a seperate 5v regulator for my 1.2Ah (max output of regulator is 1.5Ah) for motors.

    -Mike

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ======

    ······ I'll try everything once [noparse]:)[/noparse]
Sign In or Register to comment.