How can i modify the output voltage on this shield

Hello,

I am having trouble trying to get at least 6V out of this shield:

http://blushingboy.net/p/motorShieldV3/page/Example-DC-motor/

The output that i am getting is close to 3,6V.

This happens even when i power the arduino board from USB, 6V battery pack, 9V battery, the output voltage remains the same.

Does someone have an idea on how to modify the output of those 4 pins?

Thank you!

P.S.: The code that is on the board is from this thread : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274781174/0

I have fixed the problem from the software.

I have fixed the problem from the software

So tell us what you were doing wrong. This is helpful for others googling the problem.

The original problem in the software was that i was writing wrong the code. As I posted the final code is in that thread. From my point of view the software works fine.

I am trying to make a tank controlled by and arduino 2009 with a motor shield like in the link i posted.

My problem is that i have 2 motors that i stripped from a toy that was powered by 4 x 1.5V battery pack.

Now the arduino board is outputting 3,6V on the 4 pins that i use to connect the 2 motors.

Like i said before i tried powering with an external power supply of 5v@1,5Ah (AC to DC converter from a router), 6v@1Ah (4 x 1.5V battery pack like original power supply), and 9v(plain battery), but the output from the shield remains the same.

P.S.: I am using PWM and this happens at the value of 255.

My question is how can i modify the output voltage on those 4 pins that i use for the 2 motors. The target voltage is 6v.

My question is how can i modify the output voltage on those 4 pins that i use for the 2 motors. The target voltage is 6v.

You can't change the output voltage of the arduino, it is what ever the supply is. If you want more output then use a transistor:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html

I think you are wiring up the shield wrong, can you give a link to it?

I have a Motor Control Shield V3.

The shield is like this one: http://blushingboy.net/p/motorShieldV3/

I am trying to modify the output voltage on the actual shield (those 4 pins) not on arduino board.

I am mainly interested in how to do this software not hardware.

I am mainly interested in how to do this software not hardware.

Sorry software doesn't cut it here.

That link does not show a schematic so it is not too useful.

However if it is based on the L293 you need to connect pin 8 of that chip to the motor voltage. This is a different voltage than the logic supply voltage on pin 16 of this chip. So if the motor shield is designed correctly there should be a separate input for the motor voltage and the logic voltage. The motor voltage you supply should be the one you want the motors to use. If you have not got that voltage available then you need to regulate it from a higher voltage.

A schematic of the shield would help nail it.

You can find the schematic here: http://blushingboy.net/p/motorShieldV3/downloads/

In the .zip file.

From what i have read about this shield it gives @ the output the input voltage from the arduino board. But since this was tested and the output remains at 3.6V i'm starting to wonder.

That's a bad shield design, there are no diodes across the motor outputs. Also as you say the output voltage is limited to the Vcc across the 74HC logic.

As you are only seeing 3v3 output is this with the motors on or not? If it is with the motors on it could be that they are dragging the supply down. If you are measuring it with a voltmeter and are using PWM then the reading you get is meaningless (unless it is PWM at 255 - on all the time)

I measured it without the motors connected and the pwm at 255.

The result was 3.6V. The motors don't drag down the voltage, even when connected.

From my observations when switching from one to another of the 3 power supplies that i mentioned, the speed of the tank varied probably due to the difference of power. This means that the output is influenced by the input power supply, but i can't seem to change the voltage.

This means that the output is influenced by the input power supply, but i can't seem to change the voltage.

That doesn't add up, if the motor speed changes the voltage across it must have changed.

probably due to the difference of power.

Power is voltage times current, you can't change the current without changing the voltage.

So just to recap

  1. Where exactly are you connecting the external voltage to? (the shield or the arduino and what connection)
  2. It is a 5V arduino?
  3. Without the motor but with a load like a resistor (say 1K) you measure either 0V or 3.6V depending on what the program is doing to the input pins. This is measured between one motor output and ground.

Power is voltage times current, you can't change the current without changing the voltage.

Correct. But when you are powering the arduino board through the USB cable you are getting 5V@ a couple of 100mA (300 or 400 if i remember correctly). I connected to the arduino board an AC to DC converter from a router which gives 5V@1500mA. The converter was connected to the power port highlighted with red.

  1. arduino board --- red circle.
  2. i don't understand the question. It is a duemilanove arduino + motor shield v3 (like in picture).
  3. i cannot do this test right now because am @work. but i will do it as soon as i get hime.

The 4 pins highlighted with purple are the outputs for the 2 motors.

picture: http://www.picz.ro/show-image.php?id=f32f59b6f157afc6b4cf77d75d966bdb

I connected to the arduino board an AC to DC converter from a router which gives 5V@1500mA.

I don't care if the power supply is capable of supplying 1500 Amps it will not supply any more power to your motors because the voltage is still only 5V (after regulation). As long as your supply is capable of supplying the current you are drawing from it there is no difference.

So if you are putting the power through the DC input of the arduino you will only ever get 5V output no matter what power supply you use. The exception is when you use a power supply that has too little current capability and the voltage droops as a result.

So to sum up you want 6V output - you can't do it with this hardware without modifying it.

You only get 3.6V output - you defiantly should be getting 5v

BINGO
You are feeding 5V into the DC input jack, this needs at least 7V to work the regulator, that's why you are getting only 3.6V output, the arduino supply is only getting a smaller voltage (3.6V). You need to connect the external PSU output to the +5V line or connect a larger voltage to the input jack.

or connect a larger voltage to the input jack.

Already tried that with a 9v battery, no change.

You need to connect the external PSU output to the +5V line

Are you refering to this? (in yellow)

http://www.picz.ro/show-image.php?id=4494d863e221c89af9511399cc860997

Already tried that with a 9v battery, no change

Try again and check the voltage on the battery under load.
Was it a PP3, these are not too current capable.

Are you refering to this? (in yellow)

No the one labelled +5V on the arduino board. (it might be the same pin but the photo doesn't show it)

Was it a PP3, these are not too current capable.

Yes it was the cheapest i could find, it was for test purposes. Could be a problem? Should i try with another power supply, more pure and stable?

No the one labelled +5V on the arduino board. (it might be the same pin but the photo doesn't show it)

It is the same. So you are saying that if i will connect, let's say a 6V battery pack (4x1.5V) to this pin and GND i will have at the output of the 4 pins a 6V voltage or i will have to have a larger power supply >7V

Could be a problem? Should i try with another power supply, more pure and stable?

Yes it could. I would try.

So you are saying that if i will connect, let's say a 6V battery pack (4x1.5V) to this pin and GND i will have at the output of the 4 pins a 6V voltage

You will but you will also fry the Arduino. I was saying that if you had a 5V supply you should connect it here to give you a 5V powering of the arduino and not the 3.6V powering you are getting.

Thank you Mike!

You have been a real help.

Your welcome. :slight_smile: